Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001329/0.001329, allocations: 107.9 kB / 19.8 MB, free: 2.5 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001425/0.001425, allocations: 186.8 kB / 22.97 MB, free: 5.59 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.445/1.445, allocations: 225.6 MB / 251.6 MB, free: 13.3 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2354/0.2354, allocations: 44.93 MB / 351.6 MB, free: 12.19 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations") translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001972/0.001972, allocations: 75.88 kB / 495.2 MB, free: 1.863 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4592/0.4612, allocations: 64.25 MB / 0.5464 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001804/0.463, allocations: 479.5 kB / 0.5468 GB, free: 13.01 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004384/0.4674, allocations: 2.319 MB / 0.5491 GB, free: 11.2 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.32e-05/0.4674, allocations: 1.156 kB / 0.5491 GB, free: 11.2 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.913e-05/0.4675, allocations: 0 / 0.5491 GB, free: 11.2 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.204e-06/0.4675, allocations: 0 / 0.5491 GB, free: 11.2 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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.003458/0.4709, allocations: 1.132 MB / 0.5502 GB, free: 10.42 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.104e-05/0.471, allocations: 9.719 kB / 0.5502 GB, free: 10.41 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.875e-05/0.471, allocations: 1.25 kB / 0.5502 GB, free: 10.41 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.613e-05/0.4711, allocations: 9.906 kB / 0.5502 GB, free: 10.41 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.409e-05/0.4711, allocations: 0 / 0.5502 GB, free: 10.41 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.254e-06/0.4711, allocations: 0 / 0.5502 GB, free: 10.41 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001855/0.4729, allocations: 0.99 MB / 0.5512 GB, free: 9.934 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.122e-05/0.473, allocations: 1.062 kB / 0.5512 GB, free: 9.934 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.597e-05/0.473, allocations: 0 / 0.5512 GB, free: 9.934 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007022/0.4737, allocations: 421 kB / 0.5516 GB, free: 9.688 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.9e-06/0.4737, allocations: 1.125 kB / 0.5516 GB, free: 9.688 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.4737, allocations: 4 kB / 0.5516 GB, free: 9.684 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.58e-06/0.4737, allocations: 0 / 0.5516 GB, free: 9.684 MB / 398.1 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.0005564/0.4742, allocations: 436.7 kB / 0.552 GB, free: 9.238 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.417e-05/0.4743, allocations: 9.906 kB / 0.552 GB, free: 9.238 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.889e-05/0.4743, allocations: 0.9375 kB / 0.552 GB, free: 9.238 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000144/0.4745, allocations: 161.8 kB / 0.5522 GB, free: 9.043 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.393e-05/0.4745, allocations: 4.312 kB / 0.5522 GB, free: 9.039 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.025e-05/0.4745, allocations: 1.312 kB / 0.5522 GB, free: 9.039 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001274/0.4746, allocations: 40.17 kB / 0.5522 GB, free: 8.996 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.938e-06/0.4746, allocations: 0 / 0.5522 GB, free: 8.996 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.037e-06/0.4746, allocations: 1.25 kB / 0.5522 GB, free: 8.996 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.027e-06/0.4746, allocations: 0 / 0.5522 GB, free: 8.996 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.901e-05/0.4747, allocations: 1.406 kB / 0.5522 GB, free: 8.996 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001791/0.4748, allocations: 147 kB / 0.5523 GB, free: 8.805 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.265e-05/0.4749, allocations: 19.92 kB / 0.5524 GB, free: 8.777 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.613e-05/0.4749, allocations: 6.203 kB / 0.5524 GB, free: 8.77 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.546e-06/0.4749, allocations: 8.969 kB / 0.5524 GB, free: 8.762 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.232e-05/0.475, allocations: 61.39 kB / 0.5524 GB, free: 8.688 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.223e-06/0.475, allocations: 0 / 0.5524 GB, free: 8.688 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002119/0.4752, allocations: 63.17 kB / 0.5525 GB, free: 8.621 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.648e-05/0.4753, allocations: 82.2 kB / 0.5526 GB, free: 8.523 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.91e-05/0.4753, allocations: 93.86 kB / 0.5527 GB, free: 8.422 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.058e-05/0.4753, allocations: 25.7 kB / 0.5527 GB, free: 8.391 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.934e-05/0.4754, allocations: 85.42 kB / 0.5528 GB, free: 8.305 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.947e-05/0.4754, allocations: 0 / 0.5528 GB, free: 8.305 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.32e-05/0.4754, allocations: 15.94 kB / 0.5528 GB, free: 8.285 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001513/0.4756, allocations: 315.9 kB / 0.5531 GB, free: 7.969 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.121e-05/0.4756, allocations: 1.062 kB / 0.5531 GB, free: 7.969 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.298e-06/0.4756, allocations: 5.188 kB / 0.5531 GB, free: 7.965 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.389e-05/0.4757, allocations: 63.58 kB / 0.5531 GB, free: 7.891 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.055e-06/0.4757, allocations: 4 kB / 0.5532 GB, free: 7.887 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.000102/0.4758, allocations: 62.09 kB / 0.5532 GB, free: 7.82 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.016e-05/0.4758, allocations: 39.03 kB / 0.5533 GB, free: 7.781 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.4758, allocations: 1.062 kB / 0.5533 GB, free: 7.781 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.695e-05/0.4759, allocations: 0 / 0.5533 GB, free: 7.781 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.483e-06/0.4759, allocations: 0 / 0.5533 GB, free: 7.781 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.661e-06/0.4759, allocations: 1.188 kB / 0.5533 GB, free: 7.781 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.511e-05/0.4759, allocations: 0 / 0.5533 GB, free: 7.781 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.434e-06/0.4759, allocations: 1.125 kB / 0.5533 GB, free: 7.781 MB / 398.1 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 0.0001017/0.476, allocations: 133.7 kB / 0.5534 GB, free: 7.637 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.238e-05/0.476, allocations: 13.17 kB / 0.5534 GB, free: 7.625 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.633e-05/0.476, allocations: 11.08 kB / 0.5534 GB, free: 7.613 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.303e-06/0.476, allocations: 8.938 kB / 0.5534 GB, free: 7.605 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.476, allocations: 0 / 0.5534 GB, free: 7.605 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.746e-06/0.476, allocations: 8.938 kB / 0.5534 GB, free: 7.598 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001241/0.4762, allocations: 146.8 kB / 0.5536 GB, free: 7.406 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.71e-07/0.4762, allocations: 0 / 0.5536 GB, free: 7.406 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.02e-07/0.4762, allocations: 1.156 kB / 0.5536 GB, free: 7.406 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/0.4762, allocations: 3.938 kB / 0.5536 GB, free: 7.402 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.045e-05/0.4762, allocations: 1.25 kB / 0.5536 GB, free: 7.402 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.71e-07/0.4762, allocations: 4 kB / 0.5536 GB, free: 7.398 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.4762, allocations: 0 / 0.5536 GB, free: 7.398 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001115/0.4763, allocations: 90.27 kB / 0.5537 GB, free: 7.297 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.937e-05/0.4763, allocations: 77.11 kB / 0.5537 GB, free: 7.203 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.003e-05/0.4764, allocations: 6.219 kB / 0.5537 GB, free: 7.199 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.285e-06/0.4764, allocations: 0 / 0.5537 GB, free: 7.199 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.648e-05/0.4764, allocations: 5.297 kB / 0.5537 GB, free: 7.195 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.615e-06/0.4764, allocations: 4.031 kB / 0.5537 GB, free: 7.191 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.878e-05/0.4764, allocations: 76.69 kB / 0.5538 GB, free: 7.117 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4764, allocations: 0 / 0.5538 GB, free: 7.117 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005039/0.4769, allocations: 139.1 kB / 0.554 GB, free: 7.074 MB / 398.1 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.0009052/0.4778, allocations: 381.1 kB / 0.5543 GB, free: 6.855 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000118/0.478, allocations: 57.03 kB / 0.5544 GB, free: 6.793 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.478, allocations: 0 / 0.5544 GB, free: 6.793 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.664e-05/0.478, allocations: 54.78 kB / 0.5544 GB, free: 6.73 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001225/0.4781, allocations: 4.031 kB / 0.5544 GB, free: 6.73 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002429/0.4784, allocations: 86.19 kB / 0.5545 GB, free: 6.629 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000424/0.4788, allocations: 0.6738 MB / 0.5552 GB, free: 5.93 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 8.065e-06/0.4788, allocations: 1.281 kB / 0.5552 GB, free: 5.93 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.856e-05/0.4788, allocations: 8.531 kB / 0.5552 GB, free: 5.922 MB / 398.1 MB Notification: Performance of SimCode: time 2.71e-07/0.4788, allocations: 0 / 0.5552 GB, free: 5.922 MB / 398.1 MB Notification: Performance of Templates: time 0.009781/0.4886, allocations: 4.299 MB / 0.5594 GB, free: 2.164 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.sim & ./ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexOperations/TestComplexOperations.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.609243325889111]