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.001076/0.001076, allocations: 75.59 kB / 21.18 MB, free: 3.391 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.001274/0.001274, allocations: 161.4 kB / 24.56 MB, free: 20 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 1.025/1.025, allocations: 177.2 MB / 205 MB, free: 5.281 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.2634/0.2634, allocations: 34.26 MB / 295.7 MB, free: 0.707 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.643e-06/1.643e-06, allocations: 0 / 378 MB, free: 2.711 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.484e-05/2.648e-05, allocations: 8.641 kB / 378 MB, free: 2.703 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.0011/0.001126, allocations: 485 kB / 378.5 MB, free: 2.227 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002551/0.003678, allocations: 2.361 MB / 380.8 MB, free: 15.84 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.184e-05/0.003699, allocations: 0 / 380.8 MB, free: 15.84 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 1.516e-05/0.003715, allocations: 0 / 380.8 MB, free: 15.84 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 6.372e-06/0.003721, allocations: 0 / 380.8 MB, free: 15.84 MB / 362.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.002078/0.005799, allocations: 1.125 MB / 382 MB, free: 14.71 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 5.177e-05/0.005851, allocations: 0 / 382 MB, free: 14.71 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.12e-05/0.005882, allocations: 4 kB / 382 MB, free: 14.71 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.489e-05/0.005907, allocations: 4 kB / 382 MB, free: 14.71 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.224e-05/0.005929, allocations: 0 / 382 MB, free: 14.71 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 7.774e-06/0.005937, allocations: 0 / 382 MB, free: 14.71 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001267/0.007205, allocations: 0.9909 MB / 383 MB, free: 13.71 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 1.072e-05/0.007215, allocations: 11.92 kB / 383 MB, free: 13.7 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 2.103e-05/0.007236, allocations: 0 / 383 MB, free: 13.7 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006023/0.007839, allocations: 0.5377 MB / 383.5 MB, free: 13.16 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.007842, allocations: 0 / 383.5 MB, free: 13.16 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.462e-06/0.007843, allocations: 0 / 383.5 MB, free: 13.16 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.629e-06/0.007848, allocations: 4 kB / 383.5 MB, free: 13.16 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.0003421/0.00819, allocations: 469.2 kB / 384 MB, free: 12.66 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.265e-05/0.008232, allocations: 8.031 kB / 384 MB, free: 12.65 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.944e-05/0.008272, allocations: 4.938 kB / 384 MB, free: 12.65 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.317e-05/0.008325, allocations: 104.6 kB / 384.1 MB, free: 12.52 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.028e-05/0.008335, allocations: 384 / 384.1 MB, free: 12.52 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.758e-06/0.008345, allocations: 384 / 384.1 MB, free: 12.52 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.012e-05/0.008435, allocations: 67.89 kB / 384.1 MB, free: 12.44 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.494e-06/0.008443, allocations: 4.125 kB / 384.2 MB, free: 12.44 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.347e-06/0.008452, allocations: 384 / 384.2 MB, free: 12.44 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.874e-06/0.00846, allocations: 7.938 kB / 384.2 MB, free: 12.43 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.973e-05/0.00848, allocations: 29.7 kB / 384.2 MB, free: 12.39 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.819e-05/0.008568, allocations: 104.6 kB / 384.3 MB, free: 12.26 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.669e-05/0.008615, allocations: 52.8 kB / 384.3 MB, free: 12.19 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.937e-05/0.008634, allocations: 37.38 kB / 384.4 MB, free: 12.14 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.188e-06/0.008638, allocations: 0 / 384.4 MB, free: 12.14 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.959e-05/0.008678, allocations: 71.09 kB / 384.5 MB, free: 12.05 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 8.01e-07/0.008679, allocations: 0 / 384.5 MB, free: 12.05 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001749/0.008853, allocations: 114.8 kB / 384.6 MB, free: 11.92 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.824e-05/0.008892, allocations: 81.05 kB / 384.6 MB, free: 11.82 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.441e-05/0.008936, allocations: 146.4 kB / 384.8 MB, free: 11.66 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.022e-05/0.008946, allocations: 25.7 kB / 384.8 MB, free: 11.63 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.174e-05/0.008978, allocations: 130.9 kB / 384.9 MB, free: 11.5 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.604e-05/0.008994, allocations: 352 / 384.9 MB, free: 11.5 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.374e-05/0.009018, allocations: 19.38 kB / 385 MB, free: 11.47 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001098/0.009128, allocations: 496.1 kB / 385.4 MB, free: 10.98 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.038e-05/0.009148, allocations: 25.7 kB / 385.5 MB, free: 10.95 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.154e-05/0.00916, allocations: 25.7 kB / 385.5 MB, free: 10.91 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.126e-05/0.009211, allocations: 71.02 kB / 385.6 MB, free: 10.83 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.009213, allocations: 0 / 385.6 MB, free: 10.83 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.478e-05/0.009278, allocations: 97.12 kB / 385.7 MB, free: 10.71 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.632e-05/0.009304, allocations: 33.7 kB / 385.7 MB, free: 10.68 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.009309, allocations: 0 / 385.7 MB, free: 10.68 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.362e-05/0.009323, allocations: 3.984 kB / 385.7 MB, free: 10.67 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.465e-06/0.009325, allocations: 0 / 385.7 MB, free: 10.67 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.781e-06/0.009331, allocations: 3.938 kB / 385.7 MB, free: 10.67 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.278e-05/0.009344, allocations: 4 kB / 385.7 MB, free: 10.66 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.091e-06/0.00935, allocations: 0 / 385.7 MB, free: 10.66 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.572e-05/0.009416, allocations: 182.3 kB / 385.9 MB, free: 10.47 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.59e-06/0.009421, allocations: 4.031 kB / 385.9 MB, free: 10.46 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.618e-06/0.009431, allocations: 7 kB / 385.9 MB, free: 10.46 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.744e-06/0.009432, allocations: 3.938 kB / 385.9 MB, free: 10.46 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.878e-06/0.009436, allocations: 0 / 385.9 MB, free: 10.46 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.00944, allocations: 7.922 kB / 385.9 MB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.625e-05/0.009496, allocations: 116.6 kB / 386 MB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.009497, allocations: 0 / 386 MB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.91e-07/0.009498, allocations: 4 kB / 386 MB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.153e-06/0.009499, allocations: 0 / 386 MB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.661e-06/0.009505, allocations: 0 / 386 MB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.82e-07/0.009506, allocations: 0 / 386 MB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.009506, allocations: 4 kB / 386 MB, free: 10.29 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.545e-05/0.009592, allocations: 127.8 kB / 386.1 MB, free: 10.13 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.562e-06/0.009598, allocations: 8 kB / 386.2 MB, free: 10.12 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.413e-05/0.009613, allocations: 0 / 386.2 MB, free: 10.12 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.08e-06/0.009618, allocations: 0 / 386.2 MB, free: 10.12 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.175e-05/0.009629, allocations: 0 / 386.2 MB, free: 10.12 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.066e-06/0.009632, allocations: 4 kB / 386.2 MB, free: 10.12 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.975e-05/0.009662, allocations: 123.1 kB / 386.3 MB, free: 10 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.009662, allocations: 0 / 386.3 MB, free: 10 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003288/0.009991, allocations: 159.5 kB / 386.4 MB, free: 9.844 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.0005946/0.01059, allocations: 426.3 kB / 386.9 MB, free: 9.43 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001139/0.0107, allocations: 126.5 kB / 387 MB, free: 9.277 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.0107, allocations: 0 / 387 MB, free: 9.277 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.455e-05/0.01074, allocations: 92.78 kB / 387.1 MB, free: 9.164 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000102/0.01084, allocations: 7.984 kB / 387.1 MB, free: 9.156 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002178/0.01106, allocations: 113.7 kB / 387.2 MB, free: 9.008 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.065e-05/0.01109, allocations: 51.36 kB / 387.2 MB, free: 8.938 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.4e-06/0.01109, allocations: 0 / 387.2 MB, free: 8.938 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.664e-05/0.01111, allocations: 8.5 kB / 387.2 MB, free: 8.93 MB / 362.7 MB Notification: Performance of SimCode: time 9.22e-07/0.01111, allocations: 0 / 387.2 MB, free: 8.93 MB / 362.7 MB Notification: Performance of Templates: time 0.006979/0.01809, allocations: 4.728 MB / 392 MB, free: 4.195 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.4903950351290405]