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.000768/0.000768, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009891/0.001757, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.001077/0.001077, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001327/0.002405, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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 1.04/1.04, allocations: 177.2 MB / 189.6 MB, free: 5.309 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09553/1.135, allocations: 53.64 MB / 243.3 MB, free: 15.58 MB / 250.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.2576/0.2576, allocations: 34.25 MB / 278.2 MB, free: 15.3 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02288/0.2804, allocations: 13.1 MB / 291.3 MB, free: 7.371 MB / 282.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 1.583e-06/1.583e-06, allocations: 0 / 292.6 MB, free: 6.344 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.322e-05/1.48e-05, allocations: 7.438 kB / 292.6 MB, free: 6.336 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.0009136/0.0009284, allocations: 0.5278 MB / 293.1 MB, free: 5.812 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002233/0.003161, allocations: 2.373 MB / 295.5 MB, free: 3.418 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.213e-05/0.003173, allocations: 0 / 295.5 MB, free: 3.418 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.888e-06/0.003177, allocations: 0 / 295.5 MB, free: 3.418 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 7.21e-07/0.003178, allocations: 0 / 295.5 MB, free: 3.418 MB / 282.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.001605/0.004782, allocations: 1.085 MB / 296.6 MB, free: 2.328 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 5.667e-05/0.004839, allocations: 4 kB / 296.6 MB, free: 2.324 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.07e-05/0.00487, allocations: 0 / 296.6 MB, free: 2.324 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.342e-05/0.004903, allocations: 11.92 kB / 296.6 MB, free: 2.312 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.25e-05/0.004926, allocations: 4 kB / 296.6 MB, free: 2.309 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.412e-06/0.004932, allocations: 0 / 296.6 MB, free: 2.309 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001182/0.006115, allocations: 1.046 MB / 297.6 MB, free: 1.262 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 8.285e-06/0.006123, allocations: 0 / 297.6 MB, free: 1.262 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.44e-05/0.006137, allocations: 8.438 kB / 297.6 MB, free: 1.254 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004567/0.006594, allocations: 451 kB / 298.1 MB, free: 0.8125 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.506e-05/0.006609, allocations: 4 kB / 298.1 MB, free: 0.8086 MB / 282.7 MB Notification: Performance of FrontEnd: time 8.02e-07/0.00661, allocations: 0 / 298.1 MB, free: 0.8086 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.397e-05/0.006624, allocations: 0 / 298.1 MB, free: 0.8086 MB / 282.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.0003886/0.007012, allocations: 401.5 kB / 298.5 MB, free: 396 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.761e-05/0.00705, allocations: 12.02 kB / 298.5 MB, free: 384 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.883e-05/0.007089, allocations: 0.9375 kB / 298.5 MB, free: 384 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.074e-05/0.00716, allocations: 105.8 kB / 298.6 MB, free: 252 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.116e-05/0.007171, allocations: 4.312 kB / 298.6 MB, free: 248 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.695e-06/0.007178, allocations: 384 / 298.6 MB, free: 248 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.345e-05/0.007272, allocations: 67.97 kB / 298.7 MB, free: 168 kB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.772e-06/0.007279, allocations: 192 / 298.7 MB, free: 168 kB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.991e-06/0.007285, allocations: 384 / 298.7 MB, free: 168 kB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.007292, allocations: 7.875 kB / 298.7 MB, free: 160 kB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.698e-05/0.007319, allocations: 33.69 kB / 298.7 MB, free: 120 kB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.36e-05/0.007382, allocations: 61.03 kB / 298.8 MB, free: 44 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.916e-05/0.007431, allocations: 48.25 kB / 298.8 MB, free: 15.98 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.539e-05/0.007447, allocations: 30.56 kB / 298.8 MB, free: 15.94 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.549e-06/0.007451, allocations: 4.062 kB / 298.8 MB, free: 15.94 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.473e-05/0.007486, allocations: 60.27 kB / 298.9 MB, free: 15.86 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.123e-06/0.007487, allocations: 0 / 298.9 MB, free: 15.86 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001141/0.007601, allocations: 114.8 kB / 299 MB, free: 15.73 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.499e-05/0.007636, allocations: 77.11 kB / 299.1 MB, free: 15.63 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.84e-05/0.007665, allocations: 89.86 kB / 299.2 MB, free: 15.54 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.324e-06/0.007672, allocations: 25.7 kB / 299.2 MB, free: 15.5 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.879e-05/0.007691, allocations: 80.14 kB / 299.3 MB, free: 15.42 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.578e-05/0.007707, allocations: 8 kB / 299.3 MB, free: 15.41 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.276e-05/0.007729, allocations: 17.64 kB / 299.3 MB, free: 15.39 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.832e-05/0.007798, allocations: 314.8 kB / 299.6 MB, free: 15.07 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.243e-05/0.00781, allocations: 33.83 kB / 299.7 MB, free: 15.04 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.015e-05/0.00782, allocations: 25.7 kB / 299.7 MB, free: 15 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.72e-05/0.007857, allocations: 60.27 kB / 299.7 MB, free: 14.93 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.007859, allocations: 0 / 299.7 MB, free: 14.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.551e-05/0.007904, allocations: 89.09 kB / 299.8 MB, free: 14.82 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.241e-05/0.007937, allocations: 32.05 kB / 299.9 MB, free: 14.79 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/0.007942, allocations: 4 kB / 299.9 MB, free: 14.79 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.055e-06/0.00795, allocations: 0 / 299.9 MB, free: 14.79 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.528e-06/0.007955, allocations: 4 kB / 299.9 MB, free: 14.78 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.236e-06/0.007958, allocations: 4.031 kB / 299.9 MB, free: 14.78 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.476e-05/0.007973, allocations: 4.688 kB / 299.9 MB, free: 14.77 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.384e-06/0.00798, allocations: 3.938 kB / 299.9 MB, free: 14.77 MB / 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 5.808e-05/0.008038, allocations: 143.5 kB / 300 MB, free: 14.61 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.596e-06/0.008042, allocations: 0 / 300 MB, free: 14.61 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.754e-06/0.00805, allocations: 3 kB / 300 MB, free: 14.61 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.001e-06/0.008051, allocations: 0 / 300 MB, free: 14.61 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.102e-06/0.008052, allocations: 0 / 300 MB, free: 14.61 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.294e-06/0.008054, allocations: 4 kB / 300 MB, free: 14.61 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.628e-05/0.0081, allocations: 69.84 kB / 300.1 MB, free: 14.52 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.21e-07/0.008101, allocations: 0 / 300.1 MB, free: 14.52 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.71e-07/0.008102, allocations: 7.938 kB / 300.1 MB, free: 14.52 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.444e-06/0.008109, allocations: 15.91 kB / 300.1 MB, free: 14.5 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.21e-07/0.00811, allocations: 0 / 300.1 MB, free: 14.5 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.687e-06/0.008113, allocations: 0 / 300.1 MB, free: 14.5 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.41e-07/0.008114, allocations: 0 / 300.1 MB, free: 14.5 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.008114, allocations: 0 / 300.1 MB, free: 14.5 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.877e-05/0.008183, allocations: 120.4 kB / 300.2 MB, free: 14.35 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.055e-05/0.008193, allocations: 0 / 300.2 MB, free: 14.35 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.448e-06/0.008198, allocations: 0 / 300.2 MB, free: 14.35 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.336e-06/0.008206, allocations: 0 / 300.2 MB, free: 14.35 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.823e-06/0.008208, allocations: 4.031 kB / 300.2 MB, free: 14.35 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.123e-06/0.008215, allocations: 8.859 kB / 300.2 MB, free: 14.34 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.008215, allocations: 0 / 300.2 MB, free: 14.34 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002962/0.008511, allocations: 151.6 kB / 300.4 MB, free: 14.19 MB / 298.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.0005708/0.009082, allocations: 422.9 kB / 300.8 MB, free: 13.78 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001181/0.0092, allocations: 119.7 kB / 300.9 MB, free: 13.64 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.009204, allocations: 0 / 300.9 MB, free: 13.64 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.402e-05/0.009238, allocations: 85.97 kB / 301 MB, free: 13.53 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 6.158e-05/0.0093, allocations: 11.88 kB / 301 MB, free: 13.52 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001788/0.009479, allocations: 124.9 kB / 301.1 MB, free: 13.36 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.616e-05/0.009515, allocations: 59.48 kB / 301.2 MB, free: 13.29 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.074e-06/0.009522, allocations: 0 / 301.2 MB, free: 13.29 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.745e-05/0.009559, allocations: 51.38 kB / 301.2 MB, free: 13.23 MB / 298.7 MB Notification: Performance of SimCode: time 8.22e-07/0.00956, allocations: 0 / 301.2 MB, free: 13.23 MB / 298.7 MB Notification: Performance of Templates: time 0.006657/0.01622, allocations: 6.1 MB / 307.3 MB, free: 7.133 MB / 298.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 -ignoreHideResult -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.9792811274528503]