Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001328/0.001328, allocations: 79.59 kB / 21.18 MB, free: 3.383 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.001013/0.001013, allocations: 161 kB / 24.56 MB, free: 12 kB / 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.9358/0.9358, allocations: 177.1 MB / 205 MB, free: 5.625 MB / 186.7 MB " [Timeout remaining time 179] 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.2462/0.2462, allocations: 32.81 MB / 294.3 MB, free: 1.297 MB / 266.7 MB " [Timeout remaining time 180] 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.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.0.0_ModelicaTest.ComplexMath.TestComplexFunctions") translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.966e-06/2.966e-06, allocations: 4 kB / 376 MB, free: 4.734 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.64e-05/2.937e-05, allocations: 2.312 kB / 376 MB, free: 4.73 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.004372/0.004401, allocations: 492.9 kB / 376.4 MB, free: 4.246 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.00604/0.01044, allocations: 2.353 MB / 378.8 MB, free: 1.871 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.332e-05/0.01046, allocations: 0 / 378.8 MB, free: 1.871 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.472e-05/0.01048, allocations: 0 / 378.8 MB, free: 1.871 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 7.995e-06/0.01049, allocations: 3.938 kB / 378.8 MB, free: 1.867 MB / 346.7 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.002617/0.0131, allocations: 1.125 MB / 379.9 MB, free: 0.7383 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001118/0.01322, allocations: 0 / 379.9 MB, free: 0.7383 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.243e-05/0.01325, allocations: 4 kB / 379.9 MB, free: 0.7344 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.778e-05/0.01328, allocations: 4 kB / 379.9 MB, free: 0.7305 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.245e-05/0.0133, allocations: 0 / 379.9 MB, free: 0.7305 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 7.934e-06/0.01331, allocations: 0 / 379.9 MB, free: 0.7305 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00128/0.01459, allocations: 0.9987 MB / 380.9 MB, free: 15.73 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 1.041e-05/0.0146, allocations: 0 / 380.9 MB, free: 15.73 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 2.257e-05/0.01462, allocations: 8 kB / 380.9 MB, free: 15.72 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006547/0.01527, allocations: 0.526 MB / 381.5 MB, free: 15.2 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.01528, allocations: 7.938 kB / 381.5 MB, free: 15.19 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.01528, allocations: 4 kB / 381.5 MB, free: 15.18 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.923e-06/0.01529, allocations: 0 / 381.5 MB, free: 15.18 MB / 362.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.0004685/0.01576, allocations: 473.1 kB / 381.9 MB, free: 14.68 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.98e-05/0.0158, allocations: 8.031 kB / 382 MB, free: 14.67 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.778e-05/0.01584, allocations: 0.9375 kB / 382 MB, free: 14.67 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.883e-05/0.01589, allocations: 108.6 kB / 382.1 MB, free: 14.54 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.105e-05/0.01591, allocations: 384 / 382.1 MB, free: 14.54 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.146e-05/0.01592, allocations: 384 / 382.1 MB, free: 14.54 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.332e-05/0.01601, allocations: 59.97 kB / 382.1 MB, free: 14.47 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/0.01602, allocations: 4.172 kB / 382.1 MB, free: 14.46 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.127e-06/0.01603, allocations: 4.375 kB / 382.1 MB, free: 14.46 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.596e-06/0.01604, allocations: 3.938 kB / 382.1 MB, free: 14.46 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.805e-05/0.01606, allocations: 25.7 kB / 382.2 MB, free: 14.43 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.891e-05/0.01615, allocations: 108.6 kB / 382.3 MB, free: 14.29 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.637e-05/0.01619, allocations: 56.73 kB / 382.3 MB, free: 14.21 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.884e-05/0.01621, allocations: 33.39 kB / 382.4 MB, free: 14.17 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.038e-06/0.01622, allocations: 0 / 382.4 MB, free: 14.17 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.68e-05/0.01625, allocations: 71.14 kB / 382.4 MB, free: 14.08 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.01625, allocations: 0 / 382.4 MB, free: 14.08 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001673/0.01642, allocations: 114.8 kB / 382.5 MB, free: 13.95 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.596e-05/0.01646, allocations: 85.17 kB / 382.6 MB, free: 13.84 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.003e-05/0.0165, allocations: 146.2 kB / 382.8 MB, free: 13.69 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.187e-06/0.01651, allocations: 25.7 kB / 382.8 MB, free: 13.66 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.601e-05/0.01653, allocations: 126.9 kB / 382.9 MB, free: 13.53 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.006e-05/0.01655, allocations: 8.344 kB / 382.9 MB, free: 13.52 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.237e-05/0.01657, allocations: 15.38 kB / 382.9 MB, free: 13.5 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001072/0.01668, allocations: 492.1 kB / 383.4 MB, free: 13 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.189e-05/0.0167, allocations: 29.7 kB / 383.4 MB, free: 12.97 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.418e-05/0.01672, allocations: 25.7 kB / 383.5 MB, free: 12.94 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.672e-05/0.01676, allocations: 67.16 kB / 383.5 MB, free: 12.86 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.01677, allocations: 0 / 383.5 MB, free: 12.86 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.388e-05/0.01683, allocations: 101 kB / 383.6 MB, free: 12.74 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.029e-05/0.01686, allocations: 36.3 kB / 383.7 MB, free: 12.7 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.01686, allocations: 0 / 383.7 MB, free: 12.7 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.562e-05/0.01688, allocations: 0 / 383.7 MB, free: 12.7 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.739e-06/0.01689, allocations: 4 kB / 383.7 MB, free: 12.7 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.212e-06/0.01689, allocations: 3.938 kB / 383.7 MB, free: 12.69 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.472e-05/0.01691, allocations: 0 / 383.7 MB, free: 12.69 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.865e-06/0.01691, allocations: 3.984 kB / 383.7 MB, free: 12.69 MB / 362.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 0.000104/0.01702, allocations: 186.3 kB / 383.9 MB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.222e-06/0.01702, allocations: 0 / 383.9 MB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.178e-05/0.01704, allocations: 3 kB / 383.9 MB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.01704, allocations: 0 / 383.9 MB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.01704, allocations: 4 kB / 383.9 MB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.01704, allocations: 3.938 kB / 383.9 MB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.334e-05/0.0171, allocations: 112.6 kB / 384 MB, free: 12.34 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.0171, allocations: 0 / 384 MB, free: 12.34 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.0171, allocations: 0 / 384 MB, free: 12.34 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.122e-06/0.0171, allocations: 0 / 384 MB, free: 12.34 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.975e-06/0.01711, allocations: 8 kB / 384 MB, free: 12.33 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.82e-07/0.01711, allocations: 4 kB / 384 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.01711, allocations: 0 / 384 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.365e-05/0.01719, allocations: 135.7 kB / 384.1 MB, free: 12.16 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.547e-06/0.0172, allocations: 0 / 384.1 MB, free: 12.16 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.381e-05/0.01721, allocations: 4 kB / 384.1 MB, free: 12.15 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.122e-06/0.01722, allocations: 0 / 384.1 MB, free: 12.15 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.116e-05/0.01723, allocations: 0 / 384.1 MB, free: 12.15 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.545e-06/0.01723, allocations: 0 / 384.1 MB, free: 12.15 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.874e-05/0.01726, allocations: 123.1 kB / 384.2 MB, free: 12.03 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01726, allocations: 0 / 384.2 MB, free: 12.03 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003575/0.01762, allocations: 159.5 kB / 384.4 MB, free: 11.88 MB / 362.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.0005881/0.0182, allocations: 434.7 kB / 384.8 MB, free: 11.45 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001041/0.01831, allocations: 126.5 kB / 385 MB, free: 11.3 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.402e-06/0.01831, allocations: 0 / 385 MB, free: 11.3 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.18e-05/0.01834, allocations: 92.73 kB / 385 MB, free: 11.19 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.831e-05/0.01844, allocations: 3.938 kB / 385 MB, free: 11.18 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000178/0.01862, allocations: 117.6 kB / 385.2 MB, free: 11.03 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.712e-05/0.01865, allocations: 51.36 kB / 385.2 MB, free: 10.96 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.079e-06/0.01865, allocations: 4 kB / 385.2 MB, free: 10.96 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.206e-05/0.01866, allocations: 8.5 kB / 385.2 MB, free: 10.95 MB / 362.7 MB Notification: Performance of SimCode: time 4.71e-07/0.01866, allocations: 128 / 385.2 MB, free: 10.95 MB / 362.7 MB Notification: Performance of Templates: time 0.006256/0.02492, allocations: 4.725 MB / 389.9 MB, free: 6.227 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.sim & ./ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.2373536420054734]