Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001398/0.001398, allocations: 88.73 kB / 21.5 MB, free: 2.984 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001581/0.001581, allocations: 164.2 kB / 24.91 MB, free: 8.762 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9848/0.9848, allocations: 177 MB / 205.2 MB, free: 5.043 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2519/0.2519, allocations: 34.86 MB / 296.6 MB, free: 480 kB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations") translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 325.9 MB, free: 7.227 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.329e-05/2.488e-05, allocations: 2.312 kB / 325.9 MB, free: 7.223 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001711/0.001736, allocations: 496.3 kB / 326.3 MB, free: 6.742 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003828/0.005564, allocations: 2.374 MB / 328.7 MB, free: 4.348 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.518e-05/0.005589, allocations: 0 / 328.7 MB, free: 4.348 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.395e-05/0.005603, allocations: 0 / 328.7 MB, free: 4.348 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.362e-06/0.00561, allocations: 0 / 328.7 MB, free: 4.348 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/ComplexMath.mo:4:3-189:23:writable] Warning: Pure function 'ModelicaTest.ComplexMath.ComplexFunctions' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.002769/0.008378, allocations: 1.137 MB / 329.9 MB, free: 3.207 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.925e-05/0.008427, allocations: 3.984 kB / 329.9 MB, free: 3.203 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.771e-05/0.008475, allocations: 4.609 kB / 329.9 MB, free: 3.199 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.39e-05/0.008509, allocations: 4 kB / 329.9 MB, free: 3.195 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.294e-05/0.008532, allocations: 0 / 329.9 MB, free: 3.195 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.734e-06/0.00854, allocations: 0 / 329.9 MB, free: 3.195 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001379/0.009918, allocations: 1.022 MB / 330.9 MB, free: 2.172 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.504e-06/0.009926, allocations: 0 / 330.9 MB, free: 2.172 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.36e-05/0.00994, allocations: 4 kB / 330.9 MB, free: 2.168 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000464/0.0104, allocations: 0.5338 MB / 331.4 MB, free: 1.633 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.01041, allocations: 4 kB / 331.4 MB, free: 1.629 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.01041, allocations: 4 kB / 331.4 MB, free: 1.625 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.286e-06/0.01041, allocations: 0 / 331.4 MB, free: 1.625 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.000265/0.01068, allocations: 337.5 kB / 331.8 MB, free: 1.266 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.957e-05/0.01071, allocations: 8.031 kB / 331.8 MB, free: 1.258 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.425e-05/0.01073, allocations: 8.906 kB / 331.8 MB, free: 1.25 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.344e-05/0.01079, allocations: 109.8 kB / 331.9 MB, free: 1.117 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.375e-06/0.01079, allocations: 384 / 331.9 MB, free: 1.117 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.412e-06/0.0108, allocations: 384 / 331.9 MB, free: 1.117 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.005e-05/0.01086, allocations: 63.91 kB / 331.9 MB, free: 1.043 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.41e-06/0.01087, allocations: 192 / 331.9 MB, free: 1.043 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.338e-06/0.01087, allocations: 384 / 332 MB, free: 1.043 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.057e-06/0.01087, allocations: 3.938 kB / 332 MB, free: 1.039 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.409e-05/0.01089, allocations: 29.7 kB / 332 MB, free: 1.004 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.407e-05/0.01094, allocations: 61.03 kB / 332 MB, free: 0.9258 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.741e-05/0.01098, allocations: 48.3 kB / 332.1 MB, free: 0.8633 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.362e-05/0.01099, allocations: 30.56 kB / 332.1 MB, free: 0.8242 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.875e-06/0.011, allocations: 0 / 332.1 MB, free: 0.8242 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.989e-05/0.01103, allocations: 60.33 kB / 332.2 MB, free: 0.75 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 4.71e-07/0.01103, allocations: 7.938 kB / 332.2 MB, free: 0.7422 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.000112/0.01114, allocations: 110.8 kB / 332.3 MB, free: 0.6094 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.136e-05/0.01117, allocations: 81.11 kB / 332.4 MB, free: 0.5117 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.648e-05/0.0112, allocations: 89.86 kB / 332.5 MB, free: 424 kB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.583e-06/0.0112, allocations: 25.7 kB / 332.5 MB, free: 392 kB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.728e-05/0.01122, allocations: 80.14 kB / 332.6 MB, free: 308 kB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.516e-05/0.01124, allocations: 5.375 kB / 332.6 MB, free: 304 kB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.871e-05/0.01125, allocations: 13.72 kB / 332.6 MB, free: 284 kB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.449e-05/0.01134, allocations: 318.8 kB / 332.9 MB, free: 15.96 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.405e-05/0.01135, allocations: 25.7 kB / 332.9 MB, free: 15.93 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.109e-05/0.01136, allocations: 33.83 kB / 333 MB, free: 15.89 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.14e-05/0.01141, allocations: 68.14 kB / 333 MB, free: 15.8 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.01141, allocations: 0 / 333 MB, free: 15.8 MB / 314.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.301e-05/0.01146, allocations: 85.09 kB / 333.1 MB, free: 15.7 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.896e-05/0.01149, allocations: 29.7 kB / 333.1 MB, free: 15.67 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.94e-06/0.01149, allocations: 4 kB / 333.1 MB, free: 15.66 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.147e-05/0.01151, allocations: 0 / 333.1 MB, free: 15.66 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.597e-06/0.01151, allocations: 0 / 333.1 MB, free: 15.66 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.986e-06/0.01151, allocations: 0 / 333.1 MB, free: 15.66 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.312e-05/0.01153, allocations: 96 / 333.1 MB, free: 15.66 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.011e-06/0.01153, allocations: 7.938 kB / 333.1 MB, free: 15.66 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.319e-05/0.01159, allocations: 135.5 kB / 333.3 MB, free: 15.51 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.612e-06/0.0116, allocations: 3.984 kB / 333.3 MB, free: 15.5 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.065e-05/0.01161, allocations: 3 kB / 333.3 MB, free: 15.5 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.402e-06/0.01161, allocations: 4 kB / 333.3 MB, free: 15.5 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.342e-06/0.01161, allocations: 0 / 333.3 MB, free: 15.5 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.01162, allocations: 0 / 333.3 MB, free: 15.5 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.237e-05/0.01167, allocations: 74.52 kB / 333.4 MB, free: 15.41 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.51e-07/0.01167, allocations: 0 / 333.4 MB, free: 15.41 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.71e-07/0.01167, allocations: 0 / 333.4 MB, free: 15.41 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.01167, allocations: 8 kB / 333.4 MB, free: 15.4 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.027e-06/0.01168, allocations: 0 / 333.4 MB, free: 15.4 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.81e-07/0.01168, allocations: 0 / 333.4 MB, free: 15.4 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.81e-07/0.01168, allocations: 0 / 333.4 MB, free: 15.4 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.384e-05/0.01175, allocations: 112.5 kB / 333.5 MB, free: 15.26 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.821e-06/0.01176, allocations: 8.344 kB / 333.5 MB, free: 15.25 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.142e-05/0.01177, allocations: 0 / 333.5 MB, free: 15.25 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.653e-06/0.01178, allocations: 3.984 kB / 333.5 MB, free: 15.25 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.333e-06/0.01178, allocations: 0 / 333.5 MB, free: 15.25 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.737e-06/0.01179, allocations: 4 kB / 333.5 MB, free: 15.25 MB / 314.7 MB Notification: Performance of sorting global known variables: time 5.881e-06/0.01179, allocations: 8.891 kB / 333.5 MB, free: 15.23 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01179, allocations: 0 / 333.5 MB, free: 15.23 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002732/0.01207, allocations: 155.5 kB / 333.7 MB, free: 15.08 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005605/0.01263, allocations: 429 kB / 334.1 MB, free: 14.67 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 8.744e-05/0.01271, allocations: 119.6 kB / 334.2 MB, free: 14.52 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.01272, allocations: 0 / 334.2 MB, free: 14.52 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 2.768e-05/0.01274, allocations: 89.95 kB / 334.3 MB, free: 14.41 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 4.506e-05/0.01279, allocations: 3.938 kB / 334.3 MB, free: 14.41 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001398/0.01293, allocations: 108.9 kB / 334.4 MB, free: 14.27 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.725e-05/0.01296, allocations: 59.34 kB / 334.4 MB, free: 14.19 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 4.439e-06/0.01296, allocations: 4.125 kB / 334.4 MB, free: 14.19 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.13e-05/0.01299, allocations: 51.38 kB / 334.5 MB, free: 14.14 MB / 314.7 MB Notification: Performance of SimCode: time 5.21e-07/0.01299, allocations: 0 / 334.5 MB, free: 14.14 MB / 314.7 MB Notification: Performance of Templates: time 0.006643/0.01963, allocations: 6.095 MB / 340.6 MB, free: 8.047 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.sim & ./ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/ComplexMath/TestComplexOperations/TestComplexOperations.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0555670829489827]