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.001028/0.001028, 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.001008/0.001008, allocations: 173.9 kB / 24.91 MB, free: 9.191 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 1.003/1.003, 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.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.2536/0.2536, allocations: 32.81 MB / 294.6 MB, free: 1.172 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 1.242e-06/1.242e-06, allocations: 0 / 323.2 MB, free: 9.727 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.406e-05/2.53e-05, allocations: 3.812 kB / 323.2 MB, free: 9.723 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001221/0.001246, allocations: 476.1 kB / 323.7 MB, free: 9.258 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002603/0.003849, allocations: 2.365 MB / 326 MB, free: 6.871 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.203e-05/0.003871, allocations: 4 kB / 326 MB, free: 6.867 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.263e-05/0.003884, allocations: 4 kB / 326 MB, free: 6.863 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.642e-06/0.00389, allocations: 0 / 326 MB, free: 6.863 MB / 298.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.002055/0.005945, allocations: 1.136 MB / 327.2 MB, free: 5.723 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.765e-05/0.005992, allocations: 4 kB / 327.2 MB, free: 5.719 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.299e-05/0.006025, allocations: 0 / 327.2 MB, free: 5.719 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.797e-05/0.006053, allocations: 0 / 327.2 MB, free: 5.719 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.354e-05/0.006077, allocations: 7.984 kB / 327.2 MB, free: 5.711 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.963e-06/0.006084, allocations: 0 / 327.2 MB, free: 5.711 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001316/0.0074, allocations: 1.022 MB / 328.2 MB, free: 4.688 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.137e-06/0.007409, allocations: 0 / 328.2 MB, free: 4.688 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.604e-05/0.007425, allocations: 0.625 kB / 328.2 MB, free: 4.688 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005996/0.008025, allocations: 0.5455 MB / 328.7 MB, free: 4.141 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.217e-06/0.008029, allocations: 0 / 328.7 MB, free: 4.141 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.00803, allocations: 0 / 328.7 MB, free: 4.141 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.957e-06/0.008034, allocations: 0 / 328.7 MB, free: 4.141 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.0005676/0.008601, allocations: 337.5 kB / 329.1 MB, free: 3.781 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.233e-05/0.008634, allocations: 16.03 kB / 329.1 MB, free: 3.766 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.589e-05/0.00866, allocations: 0.9375 kB / 329.1 MB, free: 3.766 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.173e-05/0.008711, allocations: 101.8 kB / 329.2 MB, free: 3.641 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.207e-06/0.008721, allocations: 384 / 329.2 MB, free: 3.641 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.346e-06/0.008729, allocations: 8.375 kB / 329.2 MB, free: 3.633 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.329e-05/0.008792, allocations: 55.95 kB / 329.3 MB, free: 3.566 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.711e-06/0.008798, allocations: 192 / 329.3 MB, free: 3.566 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.019e-06/0.008803, allocations: 4.375 kB / 329.3 MB, free: 3.562 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.51e-06/0.008808, allocations: 7.875 kB / 329.3 MB, free: 3.555 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.424e-05/0.008823, allocations: 29.7 kB / 329.3 MB, free: 3.52 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.142e-05/0.008884, allocations: 61.05 kB / 329.4 MB, free: 3.445 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.654e-05/0.008921, allocations: 40.28 kB / 329.4 MB, free: 3.391 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.619e-05/0.008937, allocations: 38.64 kB / 329.4 MB, free: 3.344 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.597e-06/0.00894, allocations: 0 / 329.4 MB, free: 3.344 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.755e-05/0.008968, allocations: 56.27 kB / 329.5 MB, free: 3.273 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 6.21e-07/0.008969, allocations: 0 / 329.5 MB, free: 3.273 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001024/0.009071, allocations: 114.8 kB / 329.6 MB, free: 3.137 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.312e-05/0.009104, allocations: 81.09 kB / 329.7 MB, free: 3.039 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.655e-05/0.009131, allocations: 89.86 kB / 329.8 MB, free: 2.941 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.695e-06/0.009138, allocations: 29.83 kB / 329.8 MB, free: 2.906 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.858e-05/0.009157, allocations: 88.14 kB / 329.9 MB, free: 2.816 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.611e-05/0.009173, allocations: 5.188 kB / 329.9 MB, free: 2.812 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.78e-05/0.009191, allocations: 9.719 kB / 329.9 MB, free: 2.797 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.638e-05/0.009267, allocations: 318.8 kB / 330.2 MB, free: 2.477 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.481e-05/0.009282, allocations: 25.7 kB / 330.2 MB, free: 2.445 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.245e-05/0.009294, allocations: 25.7 kB / 330.3 MB, free: 2.414 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.091e-05/0.009335, allocations: 68.19 kB / 330.3 MB, free: 2.332 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.009337, allocations: 3.938 kB / 330.3 MB, free: 2.328 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.851e-05/0.009386, allocations: 85.2 kB / 330.4 MB, free: 2.227 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.692e-05/0.009413, allocations: 33.7 kB / 330.4 MB, free: 2.188 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.009417, allocations: 0 / 330.4 MB, free: 2.188 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.205e-05/0.009429, allocations: 0 / 330.4 MB, free: 2.188 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.15e-06/0.009434, allocations: 3.984 kB / 330.5 MB, free: 2.184 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.555e-06/0.009437, allocations: 0 / 330.5 MB, free: 2.184 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.344e-05/0.00945, allocations: 4 kB / 330.5 MB, free: 2.18 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.633e-06/0.009457, allocations: 3.938 kB / 330.5 MB, free: 2.176 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 6.16e-05/0.009519, allocations: 135.5 kB / 330.6 MB, free: 2.027 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.05e-06/0.009524, allocations: 0 / 330.6 MB, free: 2.027 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.656e-06/0.009532, allocations: 7 kB / 330.6 MB, free: 2.023 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.233e-06/0.009534, allocations: 4 kB / 330.6 MB, free: 2.02 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.903e-06/0.009536, allocations: 0 / 330.6 MB, free: 2.02 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.009538, allocations: 0 / 330.6 MB, free: 2.02 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.538e-05/0.009584, allocations: 69.83 kB / 330.7 MB, free: 1.934 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.009586, allocations: 3.984 kB / 330.7 MB, free: 1.93 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.01e-07/0.009586, allocations: 0 / 330.7 MB, free: 1.93 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.042e-06/0.009587, allocations: 3.938 kB / 330.7 MB, free: 1.926 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.637e-06/0.009591, allocations: 0 / 330.7 MB, free: 1.926 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.91e-07/0.009591, allocations: 0 / 330.7 MB, free: 1.926 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.009592, allocations: 4 kB / 330.7 MB, free: 1.922 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.725e-05/0.009659, allocations: 116.5 kB / 330.8 MB, free: 1.777 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.959e-06/0.009664, allocations: 0.9688 kB / 330.8 MB, free: 1.777 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.188e-05/0.009676, allocations: 8 kB / 330.8 MB, free: 1.77 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.221e-06/0.009682, allocations: 0 / 330.8 MB, free: 1.77 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.846e-06/0.009691, allocations: 0 / 330.8 MB, free: 1.77 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.016e-06/0.009694, allocations: 3.984 kB / 330.8 MB, free: 1.766 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.213e-06/0.009701, allocations: 4.859 kB / 330.8 MB, free: 1.758 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009701, allocations: 0 / 330.8 MB, free: 1.758 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003173/0.01002, allocations: 159.5 kB / 331 MB, free: 1.602 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.0005382/0.01056, allocations: 426.9 kB / 331.4 MB, free: 1.191 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 8.935e-05/0.01065, allocations: 119.6 kB / 331.5 MB, free: 1.047 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.01065, allocations: 12 kB / 331.5 MB, free: 1.035 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.532e-05/0.01067, allocations: 81.97 kB / 331.6 MB, free: 0.9336 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 4.821e-05/0.01072, allocations: 7.938 kB / 331.6 MB, free: 0.9258 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001418/0.01086, allocations: 113.3 kB / 331.7 MB, free: 0.7812 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.402e-05/0.01089, allocations: 51.36 kB / 331.8 MB, free: 0.7109 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.919e-06/0.01089, allocations: 0 / 331.8 MB, free: 0.7109 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.629e-05/0.01093, allocations: 55.38 kB / 331.8 MB, free: 0.6562 MB / 298.7 MB Notification: Performance of SimCode: time 1.142e-06/0.01093, allocations: 0 / 331.8 MB, free: 0.6562 MB / 298.7 MB Notification: Performance of Templates: time 0.007616/0.01855, allocations: 6.097 MB / 337.9 MB, free: 10.56 MB / 314.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.1105290092527866]