Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001289/0.001289, allocations: 80.8 kB / 21.5 MB, free: 2.996 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009238/0.0009238, allocations: 170.5 kB / 24.91 MB, free: 9.211 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9781/0.9781, allocations: 177.1 MB / 205.3 MB, free: 5.469 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.293/0.293, allocations: 34.27 MB / 296.1 MB, free: 0.7266 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions") translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.204e-06/2.204e-06, allocations: 0 / 325.2 MB, free: 7.695 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.611e-05/1.831e-05, allocations: 2.312 kB / 325.2 MB, free: 7.691 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001813/0.001831, allocations: 0.5217 MB / 325.8 MB, free: 7.168 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003845/0.005676, allocations: 2.373 MB / 328.1 MB, free: 4.773 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.356e-05/0.005699, allocations: 8 kB / 328.2 MB, free: 4.766 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.333e-05/0.005713, allocations: 0 / 328.2 MB, free: 4.766 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.094e-06/0.00572, allocations: 0 / 328.2 MB, free: 4.766 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.00265/0.00837, allocations: 1.074 MB / 329.2 MB, free: 3.688 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.89e-05/0.008419, allocations: 4 kB / 329.2 MB, free: 3.684 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.951e-05/0.008459, allocations: 7.984 kB / 329.2 MB, free: 3.676 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.856e-05/0.008487, allocations: 4 kB / 329.2 MB, free: 3.672 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.204e-05/0.008509, allocations: 0 / 329.2 MB, free: 3.672 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.284e-06/0.008517, allocations: 0 / 329.2 MB, free: 3.672 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001645/0.01016, allocations: 1.069 MB / 330.3 MB, free: 2.602 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.334e-06/0.01017, allocations: 0 / 330.3 MB, free: 2.602 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.32e-05/0.01018, allocations: 0 / 330.3 MB, free: 2.602 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007115/0.01089, allocations: 0.5383 MB / 330.8 MB, free: 2.062 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.873e-06/0.0109, allocations: 0 / 330.8 MB, free: 2.062 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.0109, allocations: 0 / 330.8 MB, free: 2.062 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.477e-06/0.0109, allocations: 0 / 330.8 MB, free: 2.062 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.0003553/0.01125, allocations: 353.5 kB / 331.2 MB, free: 1.688 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.0113, allocations: 12.03 kB / 331.2 MB, free: 1.676 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.752e-05/0.01132, allocations: 0.9375 kB / 331.2 MB, free: 1.676 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.035e-05/0.01139, allocations: 101.8 kB / 331.3 MB, free: 1.551 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.115e-05/0.0114, allocations: 4.375 kB / 331.3 MB, free: 1.547 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.151e-06/0.01141, allocations: 384 / 331.3 MB, free: 1.547 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.715e-05/0.01149, allocations: 55.91 kB / 331.4 MB, free: 1.48 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.993e-06/0.01149, allocations: 4.188 kB / 331.4 MB, free: 1.477 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.661e-06/0.0115, allocations: 384 / 331.4 MB, free: 1.477 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.01151, allocations: 3.938 kB / 331.4 MB, free: 1.473 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.846e-05/0.01152, allocations: 33.69 kB / 331.4 MB, free: 1.434 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.549e-05/0.0116, allocations: 57.05 kB / 331.5 MB, free: 1.363 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.779e-05/0.01165, allocations: 44.28 kB / 331.5 MB, free: 1.305 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.452e-05/0.01167, allocations: 34.66 kB / 331.5 MB, free: 1.262 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.096e-06/0.01168, allocations: 0 / 331.5 MB, free: 1.262 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.077e-05/0.01172, allocations: 60.2 kB / 331.6 MB, free: 1.188 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 8.92e-07/0.01172, allocations: 0 / 331.6 MB, free: 1.188 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001198/0.01184, allocations: 114.8 kB / 331.7 MB, free: 1.051 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.66e-05/0.01187, allocations: 77.11 kB / 331.8 MB, free: 0.957 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.735e-05/0.01191, allocations: 89.98 kB / 331.9 MB, free: 0.8555 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.072e-05/0.01192, allocations: 29.7 kB / 331.9 MB, free: 0.8203 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.29e-05/0.01194, allocations: 84.14 kB / 332 MB, free: 0.7344 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.661e-05/0.01196, allocations: 1.375 kB / 332 MB, free: 0.7344 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.638e-05/0.01199, allocations: 13.7 kB / 332 MB, free: 0.7148 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.327e-05/0.01208, allocations: 326.7 kB / 332.3 MB, free: 396 kB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.668e-05/0.0121, allocations: 25.7 kB / 332.3 MB, free: 364 kB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.562e-05/0.01211, allocations: 29.7 kB / 332.4 MB, free: 328 kB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.349e-05/0.01216, allocations: 64.2 kB / 332.4 MB, free: 248 kB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.01216, allocations: 0 / 332.4 MB, free: 248 kB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.835e-05/0.01223, allocations: 97.14 kB / 332.5 MB, free: 132 kB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.682e-05/0.01225, allocations: 29.7 kB / 332.6 MB, free: 96 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.468e-06/0.01226, allocations: 0 / 332.6 MB, free: 96 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.109e-05/0.01227, allocations: 0 / 332.6 MB, free: 96 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.503e-06/0.01227, allocations: 0 / 332.6 MB, free: 96 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.789e-06/0.01228, allocations: 4 kB / 332.6 MB, free: 92 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.193e-05/0.01229, allocations: 0 / 332.6 MB, free: 92 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.831e-06/0.01229, allocations: 3.938 kB / 332.6 MB, free: 88 kB / 298.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 8.046e-05/0.01237, allocations: 139.5 kB / 332.7 MB, free: 15.93 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.325e-06/0.01238, allocations: 4 kB / 332.7 MB, free: 15.93 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.684e-06/0.01239, allocations: 10.97 kB / 332.7 MB, free: 15.92 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.01239, allocations: 0 / 332.7 MB, free: 15.92 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.382e-06/0.01239, allocations: 0 / 332.7 MB, free: 15.92 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.0124, allocations: 0 / 332.7 MB, free: 15.92 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.638e-05/0.01245, allocations: 65.84 kB / 332.8 MB, free: 15.84 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.41e-07/0.01245, allocations: 0 / 332.8 MB, free: 15.84 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.31e-07/0.01245, allocations: 0 / 332.8 MB, free: 15.84 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.243e-06/0.01245, allocations: 0 / 332.8 MB, free: 15.84 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.807e-06/0.01246, allocations: 0 / 332.8 MB, free: 15.84 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.72e-07/0.01246, allocations: 4 kB / 332.8 MB, free: 15.84 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.01246, allocations: 0 / 332.8 MB, free: 15.84 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.442e-05/0.01254, allocations: 120.5 kB / 332.9 MB, free: 15.69 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.683e-06/0.01255, allocations: 4.328 kB / 332.9 MB, free: 15.68 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.208e-05/0.01256, allocations: 4 kB / 332.9 MB, free: 15.68 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.724e-06/0.01257, allocations: 0 / 332.9 MB, free: 15.68 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.146e-06/0.01258, allocations: 0 / 332.9 MB, free: 15.68 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.024e-06/0.01258, allocations: 0 / 332.9 MB, free: 15.68 MB / 314.7 MB Notification: Performance of sorting global known variables: time 6.442e-06/0.01259, allocations: 4.859 kB / 332.9 MB, free: 15.67 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01259, allocations: 3.938 kB / 332.9 MB, free: 15.67 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004421/0.01303, allocations: 159.5 kB / 333.1 MB, free: 15.51 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.0007388/0.01377, allocations: 430.2 kB / 333.5 MB, free: 15.1 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 9.349e-05/0.01386, allocations: 116.2 kB / 333.6 MB, free: 14.96 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.01386, allocations: 4.062 kB / 333.6 MB, free: 14.95 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 3.57e-05/0.0139, allocations: 89.95 kB / 333.7 MB, free: 14.84 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.181e-05/0.01395, allocations: 6.281 kB / 333.7 MB, free: 14.84 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001528/0.0141, allocations: 104.6 kB / 333.8 MB, free: 14.7 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.155e-05/0.01414, allocations: 55.34 kB / 333.9 MB, free: 14.63 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 6.341e-06/0.01414, allocations: 4 kB / 333.9 MB, free: 14.62 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.21e-05/0.01418, allocations: 55.38 kB / 333.9 MB, free: 14.57 MB / 314.7 MB Notification: Performance of SimCode: time 5.31e-07/0.01418, allocations: 0 / 333.9 MB, free: 14.57 MB / 314.7 MB Notification: Performance of Templates: time 0.007031/0.02122, allocations: 6.099 MB / 340 MB, free: 8.465 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.sim & ./ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.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: 2.9831241378560662]