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.001042/0.001042, allocations: 75.75 kB / 21.69 MB, free: 2.859 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.0011/0.0011, allocations: 161.6 kB / 24.99 MB, free: 9.289 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.042/1.042, allocations: 177.1 MB / 205.3 MB, free: 5.633 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.2567/0.2567, allocations: 34.26 MB / 296.1 MB, free: 0.6992 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 1.703e-06/1.703e-06, allocations: 3.938 kB / 378 MB, free: 3.008 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.003e-05/2.173e-05, allocations: 6.25 kB / 378 MB, free: 3 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.0009703/0.000992, allocations: 493 kB / 378.5 MB, free: 2.516 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.00243/0.003422, allocations: 2.346 MB / 380.8 MB, free: 152 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.617e-05/0.003448, allocations: 3.938 kB / 380.8 MB, free: 148 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.332e-05/0.003461, allocations: 0 / 380.8 MB, free: 148 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.911e-06/0.003467, allocations: 0 / 380.8 MB, free: 148 kB / 346.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.001572/0.005039, allocations: 1.121 MB / 381.9 MB, free: 15.02 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 4.811e-05/0.005087, allocations: 0 / 381.9 MB, free: 15.02 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.019e-05/0.005117, allocations: 0 / 381.9 MB, free: 15.02 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.692e-05/0.005144, allocations: 7.938 kB / 381.9 MB, free: 15.01 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.065e-05/0.005165, allocations: 0 / 381.9 MB, free: 15.01 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 7.564e-06/0.005172, allocations: 0 / 381.9 MB, free: 15.01 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009696/0.006142, allocations: 0.9753 MB / 382.9 MB, free: 14.04 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 7.303e-06/0.006149, allocations: 0 / 382.9 MB, free: 14.04 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 1.704e-05/0.006166, allocations: 0 / 382.9 MB, free: 14.04 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004636/0.00663, allocations: 0.5416 MB / 383.5 MB, free: 13.49 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.435e-06/0.006632, allocations: 4 kB / 383.5 MB, free: 13.49 MB / 362.7 MB Notification: Performance of FrontEnd: time 5.41e-07/0.006633, allocations: 0 / 383.5 MB, free: 13.49 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.148e-06/0.006637, allocations: 0 / 383.5 MB, free: 13.49 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.0003413/0.006978, allocations: 473.2 kB / 383.9 MB, free: 12.98 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.761e-05/0.007016, allocations: 12.03 kB / 383.9 MB, free: 12.97 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.757e-05/0.007054, allocations: 0.9375 kB / 383.9 MB, free: 12.97 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.09e-05/0.007114, allocations: 108.6 kB / 384 MB, free: 12.84 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.024e-05/0.007125, allocations: 384 / 384 MB, free: 12.84 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.598e-06/0.007134, allocations: 4.375 kB / 384.1 MB, free: 12.84 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.903e-05/0.007213, allocations: 55.95 kB / 384.1 MB, free: 12.77 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.172e-06/0.00722, allocations: 4.188 kB / 384.1 MB, free: 12.77 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.156e-06/0.007228, allocations: 384 / 384.1 MB, free: 12.77 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.063e-05/0.007238, allocations: 7.938 kB / 384.1 MB, free: 12.76 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.796e-05/0.007256, allocations: 25.7 kB / 384.1 MB, free: 12.73 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.626e-05/0.007343, allocations: 112.6 kB / 384.3 MB, free: 12.58 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.435e-05/0.007387, allocations: 56.75 kB / 384.3 MB, free: 12.51 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.794e-05/0.007405, allocations: 33.39 kB / 384.3 MB, free: 12.46 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.068e-06/0.007409, allocations: 8 kB / 384.3 MB, free: 12.46 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.224e-05/0.007441, allocations: 59.09 kB / 384.4 MB, free: 12.38 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.007442, allocations: 0 / 384.4 MB, free: 12.38 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001607/0.007603, allocations: 126.7 kB / 384.5 MB, free: 12.23 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.69e-05/0.00764, allocations: 85.05 kB / 384.6 MB, free: 12.13 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.098e-05/0.007681, allocations: 142.2 kB / 384.8 MB, free: 11.98 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000283/0.007964, allocations: 25.7 kB / 384.8 MB, free: 11.95 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.441e-05/0.007988, allocations: 126.9 kB / 384.9 MB, free: 11.82 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.637e-05/0.008005, allocations: 352 / 384.9 MB, free: 11.82 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.258e-05/0.008027, allocations: 19.38 kB / 384.9 MB, free: 11.79 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.9e-05/0.008126, allocations: 496.1 kB / 385.4 MB, free: 11.3 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.977e-05/0.008146, allocations: 29.69 kB / 385.4 MB, free: 11.26 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.265e-05/0.008159, allocations: 29.7 kB / 385.5 MB, free: 11.23 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.512e-05/0.008204, allocations: 67.28 kB / 385.5 MB, free: 11.14 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.008205, allocations: 4 kB / 385.5 MB, free: 11.14 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.198e-05/0.008257, allocations: 89 kB / 385.6 MB, free: 11.04 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.704e-05/0.008284, allocations: 43.72 kB / 385.7 MB, free: 10.99 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.369e-06/0.008288, allocations: 0 / 385.7 MB, free: 10.99 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.196e-05/0.0083, allocations: 0 / 385.7 MB, free: 10.99 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.52e-07/0.008301, allocations: 0 / 385.7 MB, free: 10.99 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.011e-06/0.008307, allocations: 3.938 kB / 385.7 MB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.288e-06/0.008317, allocations: 0 / 385.7 MB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.649e-06/0.008321, allocations: 4 kB / 385.7 MB, free: 10.98 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 6.134e-05/0.008383, allocations: 182.3 kB / 385.8 MB, free: 10.79 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.739e-06/0.008387, allocations: 4 kB / 385.9 MB, free: 10.78 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.654e-06/0.008395, allocations: 3 kB / 385.9 MB, free: 10.78 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.465e-06/0.008397, allocations: 3.984 kB / 385.9 MB, free: 10.78 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.008401, allocations: 0 / 385.9 MB, free: 10.78 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.008404, allocations: 3.938 kB / 385.9 MB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.373e-05/0.008458, allocations: 108.6 kB / 386 MB, free: 10.63 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.51e-07/0.008459, allocations: 0 / 386 MB, free: 10.63 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.8e-07/0.008459, allocations: 0 / 386 MB, free: 10.63 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.41e-07/0.00846, allocations: 0 / 386 MB, free: 10.63 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.031e-06/0.008466, allocations: 4 kB / 386 MB, free: 10.63 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.41e-07/0.008466, allocations: 0 / 386 MB, free: 10.63 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.92e-07/0.008467, allocations: 0 / 386 MB, free: 10.63 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.468e-05/0.008542, allocations: 143.7 kB / 386.1 MB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.366e-06/0.008545, allocations: 0 / 386.1 MB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.103e-05/0.008556, allocations: 0 / 386.1 MB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.569e-06/0.00856, allocations: 0 / 386.1 MB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.277e-05/0.008573, allocations: 7.984 kB / 386.1 MB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.333e-06/0.008575, allocations: 0 / 386.1 MB, free: 10.45 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.676e-05/0.008601, allocations: 123.1 kB / 386.2 MB, free: 10.32 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.008601, allocations: 4.031 kB / 386.2 MB, free: 10.32 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002792/0.008881, allocations: 163.5 kB / 386.4 MB, free: 10.16 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.0005169/0.009397, allocations: 417.6 kB / 386.8 MB, free: 9.75 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 9.302e-05/0.00949, allocations: 118.5 kB / 386.9 MB, free: 9.605 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.009492, allocations: 0 / 386.9 MB, free: 9.605 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.85e-05/0.009521, allocations: 96.72 kB / 387 MB, free: 9.488 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.225e-05/0.009613, allocations: 4 kB / 387 MB, free: 9.484 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001619/0.009775, allocations: 113.6 kB / 387.1 MB, free: 9.336 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.734e-05/0.009802, allocations: 55.34 kB / 387.2 MB, free: 9.262 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.34e-06/0.009808, allocations: 0 / 387.2 MB, free: 9.262 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.236e-05/0.00982, allocations: 8.625 kB / 387.2 MB, free: 9.254 MB / 362.7 MB Notification: Performance of SimCode: time 3.91e-07/0.00982, allocations: 8 kB / 387.2 MB, free: 9.246 MB / 362.7 MB Notification: Performance of Templates: time 0.005976/0.0158, allocations: 4.723 MB / 391.9 MB, free: 4.52 MB / 362.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.3224356318823993]