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.0009797/0.0009797, allocations: 80.8 kB / 21.5 MB, free: 2.992 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.001056/0.001056, allocations: 173.9 kB / 24.92 MB, free: 9.184 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.9204/0.9204, allocations: 177.1 MB / 205.3 MB, free: 5.492 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.2654/0.2654, allocations: 34.26 MB / 296.1 MB, free: 0.7188 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.474e-06/2.474e-06, allocations: 0 / 325.2 MB, free: 7.746 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.998e-05/3.245e-05, allocations: 7.781 kB / 325.2 MB, free: 7.738 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001178/0.001211, allocations: 499.5 kB / 325.7 MB, free: 7.25 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002529/0.00374, allocations: 2.362 MB / 328 MB, free: 4.867 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.208e-05/0.003762, allocations: 0 / 328 MB, free: 4.867 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.322e-05/0.003775, allocations: 0 / 328 MB, free: 4.867 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.793e-06/0.003782, allocations: 4 kB / 328 MB, free: 4.863 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.002032/0.005814, allocations: 1.151 MB / 329.2 MB, free: 3.711 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.511e-05/0.005859, allocations: 0 / 329.2 MB, free: 3.711 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.567e-05/0.005894, allocations: 0 / 329.2 MB, free: 3.711 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.963e-05/0.005924, allocations: 7.984 kB / 329.2 MB, free: 3.703 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.254e-05/0.005947, allocations: 0 / 329.2 MB, free: 3.703 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.823e-06/0.005953, allocations: 4 kB / 329.2 MB, free: 3.699 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001184/0.007137, allocations: 1.018 MB / 330.2 MB, free: 2.68 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.085e-06/0.007145, allocations: 0 / 330.2 MB, free: 2.68 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.354e-05/0.007159, allocations: 4 kB / 330.2 MB, free: 2.676 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005378/0.007696, allocations: 0.5343 MB / 330.8 MB, free: 2.141 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.007701, allocations: 4 kB / 330.8 MB, free: 2.137 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.62e-07/0.007701, allocations: 0 / 330.8 MB, free: 2.137 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.008e-06/0.007705, allocations: 0 / 330.8 MB, free: 2.137 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.0003015/0.008007, allocations: 337.5 kB / 331.1 MB, free: 1.777 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.166e-05/0.008039, allocations: 12.03 kB / 331.1 MB, free: 1.766 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.849e-05/0.008067, allocations: 0.9375 kB / 331.1 MB, free: 1.766 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.549e-05/0.008123, allocations: 113.7 kB / 331.2 MB, free: 1.629 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.208e-06/0.008132, allocations: 4.359 kB / 331.2 MB, free: 1.625 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.705e-06/0.00814, allocations: 384 / 331.2 MB, free: 1.625 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.432e-05/0.008204, allocations: 59.97 kB / 331.3 MB, free: 1.555 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.579e-06/0.008208, allocations: 192 / 331.3 MB, free: 1.555 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.21e-06/0.008214, allocations: 384 / 331.3 MB, free: 1.555 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.097e-06/0.008218, allocations: 3.938 kB / 331.3 MB, free: 1.551 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.379e-05/0.008232, allocations: 29.7 kB / 331.3 MB, free: 1.516 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.576e-05/0.008287, allocations: 57.05 kB / 331.4 MB, free: 1.445 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.096e-05/0.008328, allocations: 52.23 kB / 331.4 MB, free: 1.379 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.487e-05/0.008343, allocations: 30.56 kB / 331.5 MB, free: 1.34 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.387e-06/0.008346, allocations: 0 / 331.5 MB, free: 1.34 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.824e-05/0.008375, allocations: 60.33 kB / 331.5 MB, free: 1.266 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 7.12e-07/0.008375, allocations: 0 / 331.5 MB, free: 1.266 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001076/0.008483, allocations: 114.8 kB / 331.6 MB, free: 1.129 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.405e-05/0.008517, allocations: 81.11 kB / 331.7 MB, free: 1.031 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.92e-05/0.008546, allocations: 89.86 kB / 331.8 MB, free: 0.9297 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.576e-06/0.008555, allocations: 25.7 kB / 331.8 MB, free: 0.8984 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.67e-05/0.008572, allocations: 84.27 kB / 331.9 MB, free: 0.8125 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.5e-05/0.008587, allocations: 5.312 kB / 331.9 MB, free: 0.8086 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.019e-05/0.008607, allocations: 13.72 kB / 331.9 MB, free: 0.7891 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.913e-05/0.008686, allocations: 314.8 kB / 332.2 MB, free: 484 kB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.3e-05/0.008699, allocations: 25.7 kB / 332.3 MB, free: 452 kB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.092e-05/0.00871, allocations: 29.7 kB / 332.3 MB, free: 416 kB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.781e-05/0.008748, allocations: 68.19 kB / 332.3 MB, free: 332 kB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.492e-06/0.008749, allocations: 0 / 332.3 MB, free: 332 kB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.893e-05/0.008798, allocations: 81.11 kB / 332.4 MB, free: 232 kB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.653e-05/0.008825, allocations: 37.78 kB / 332.5 MB, free: 188 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.008829, allocations: 4 kB / 332.5 MB, free: 184 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.237e-06/0.008838, allocations: 0 / 332.5 MB, free: 184 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.286e-06/0.008841, allocations: 0 / 332.5 MB, free: 184 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.615e-06/0.008844, allocations: 3.938 kB / 332.5 MB, free: 180 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.129e-05/0.008855, allocations: 0 / 332.5 MB, free: 180 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.241e-06/0.008861, allocations: 3.938 kB / 332.5 MB, free: 176 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 6.175e-05/0.008923, allocations: 143.5 kB / 332.6 MB, free: 16 kB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.749e-06/0.008928, allocations: 0 / 332.6 MB, free: 16 kB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.363e-05/0.008942, allocations: 7 kB / 332.6 MB, free: 12 kB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-06/0.008944, allocations: 4 kB / 332.6 MB, free: 8 kB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.563e-06/0.008945, allocations: 0 / 332.6 MB, free: 8 kB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.008949, allocations: 3.984 kB / 332.6 MB, free: 4 kB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.227e-05/0.009001, allocations: 61.84 kB / 332.7 MB, free: 15.93 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.009002, allocations: 4 kB / 332.7 MB, free: 15.92 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.202e-06/0.009004, allocations: 4 kB / 332.7 MB, free: 15.92 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.82e-07/0.009005, allocations: 0 / 332.7 MB, free: 15.92 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.326e-06/0.009008, allocations: 0 / 332.7 MB, free: 15.92 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.31e-07/0.009008, allocations: 0 / 332.7 MB, free: 15.92 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.009009, allocations: 0 / 332.7 MB, free: 15.92 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.442e-05/0.009073, allocations: 116.4 kB / 332.8 MB, free: 15.77 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.749e-06/0.009078, allocations: 8.875 kB / 332.8 MB, free: 15.77 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.869e-06/0.009088, allocations: 0 / 332.8 MB, free: 15.77 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.37e-06/0.009093, allocations: 0 / 332.8 MB, free: 15.77 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.424e-06/0.009101, allocations: 0 / 332.8 MB, free: 15.77 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.467e-06/0.009104, allocations: 4 kB / 332.8 MB, free: 15.76 MB / 314.7 MB Notification: Performance of sorting global known variables: time 6.182e-06/0.009111, allocations: 4.859 kB / 332.8 MB, free: 15.75 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009111, allocations: 0 / 332.8 MB, free: 15.75 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003062/0.009417, allocations: 159.5 kB / 333 MB, free: 15.6 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.0005259/0.009943, allocations: 423.2 kB / 333.4 MB, free: 15.19 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 8.793e-05/0.01003, allocations: 119.6 kB / 333.5 MB, free: 15.04 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.01003, allocations: 0 / 333.5 MB, free: 15.04 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 2.782e-05/0.01006, allocations: 94.03 kB / 333.6 MB, free: 14.93 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 4.082e-05/0.0101, allocations: 7.922 kB / 333.6 MB, free: 14.92 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001353/0.01024, allocations: 116.5 kB / 333.7 MB, free: 14.77 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.565e-05/0.01026, allocations: 51.36 kB / 333.8 MB, free: 14.7 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 5.27e-06/0.01027, allocations: 0 / 333.8 MB, free: 14.7 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.497e-05/0.0103, allocations: 55.36 kB / 333.8 MB, free: 14.65 MB / 314.7 MB Notification: Performance of SimCode: time 4.61e-07/0.0103, allocations: 0 / 333.8 MB, free: 14.65 MB / 314.7 MB Notification: Performance of Templates: time 0.007085/0.01739, allocations: 6.099 MB / 339.9 MB, free: 8.547 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 -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: 3.084853853099048]