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.00154/0.00154, allocations: 77.97 kB / 21.42 MB, free: 3.074 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.001758/0.001758, allocations: 170.4 kB / 24.82 MB, free: 9.273 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.118/1.118, allocations: 177.1 MB / 205.3 MB, free: 5.508 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.3227/0.3227, allocations: 34.26 MB / 296.1 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 2.084e-06/2.084e-06, allocations: 0 / 378.4 MB, free: 2.438 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.69e-05/1.899e-05, allocations: 2.312 kB / 378.4 MB, free: 2.434 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.0009978/0.001017, allocations: 491.9 kB / 378.9 MB, free: 1.953 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002607/0.003624, allocations: 2.342 MB / 381.3 MB, free: 15.59 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.723e-05/0.003652, allocations: 0 / 381.3 MB, free: 15.59 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 1.442e-05/0.003666, allocations: 0 / 381.3 MB, free: 15.59 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 6.412e-06/0.003672, allocations: 0 / 381.3 MB, free: 15.59 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.001945/0.005617, allocations: 1.117 MB / 382.4 MB, free: 14.47 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 4.437e-05/0.005662, allocations: 4 kB / 382.4 MB, free: 14.46 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.924e-05/0.005691, allocations: 3.938 kB / 382.4 MB, free: 14.46 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.88e-05/0.00572, allocations: 0 / 382.4 MB, free: 14.46 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.988e-05/0.00574, allocations: 0 / 382.4 MB, free: 14.46 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 7.194e-06/0.005747, allocations: 0 / 382.4 MB, free: 14.46 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001119/0.006866, allocations: 0.9987 MB / 383.4 MB, free: 13.46 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 8.727e-06/0.006874, allocations: 3.984 kB / 383.4 MB, free: 13.46 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 1.136e-05/0.006886, allocations: 0 / 383.4 MB, free: 13.46 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004901/0.007376, allocations: 0.5377 MB / 383.9 MB, free: 12.92 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.663e-06/0.007378, allocations: 0 / 383.9 MB, free: 12.92 MB / 362.7 MB Notification: Performance of FrontEnd: time 5.81e-07/0.007378, allocations: 0 / 383.9 MB, free: 12.92 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.136e-06/0.007381, allocations: 0 / 383.9 MB, free: 12.92 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.0003087/0.00769, allocations: 465.2 kB / 384.4 MB, free: 12.42 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.042e-05/0.00773, allocations: 12.03 kB / 384.4 MB, free: 12.41 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.954e-05/0.00776, allocations: 4.938 kB / 384.4 MB, free: 12.41 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000335/0.008095, allocations: 112.6 kB / 384.5 MB, free: 12.27 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.147e-06/0.008104, allocations: 384 / 384.5 MB, free: 12.27 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.163e-06/0.008111, allocations: 12.25 kB / 384.5 MB, free: 12.26 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.261e-05/0.008174, allocations: 51.97 kB / 384.6 MB, free: 12.2 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.347e-06/0.008183, allocations: 192 / 384.6 MB, free: 12.2 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.849e-06/0.008188, allocations: 384 / 384.6 MB, free: 12.2 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.506e-06/0.008196, allocations: 7.938 kB / 384.6 MB, free: 12.19 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.63e-05/0.008213, allocations: 25.7 kB / 384.6 MB, free: 12.16 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.279e-05/0.008286, allocations: 89.27 kB / 384.7 MB, free: 12.04 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.627e-05/0.008322, allocations: 56.78 kB / 384.8 MB, free: 11.97 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.59e-05/0.008338, allocations: 41.33 kB / 384.8 MB, free: 11.92 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.598e-06/0.008342, allocations: 4.062 kB / 384.8 MB, free: 11.91 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.796e-05/0.00838, allocations: 63.09 kB / 384.9 MB, free: 11.84 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 6.51e-07/0.008381, allocations: 0 / 384.9 MB, free: 11.84 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001272/0.008508, allocations: 114.8 kB / 385 MB, free: 11.7 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.082e-05/0.008539, allocations: 77.11 kB / 385 MB, free: 11.61 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.85e-05/0.008577, allocations: 146.2 kB / 385.2 MB, free: 11.45 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.246e-06/0.008586, allocations: 25.7 kB / 385.2 MB, free: 11.42 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.703e-05/0.008613, allocations: 126.9 kB / 385.3 MB, free: 11.29 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.232e-05/0.008625, allocations: 4.453 kB / 385.3 MB, free: 11.29 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.038e-05/0.008645, allocations: 23.38 kB / 385.4 MB, free: 11.25 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001009/0.008746, allocations: 496.1 kB / 385.9 MB, free: 10.76 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.313e-05/0.008759, allocations: 29.64 kB / 385.9 MB, free: 10.72 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.473e-05/0.008774, allocations: 37.69 kB / 385.9 MB, free: 10.68 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.651e-05/0.008811, allocations: 59.09 kB / 386 MB, free: 10.61 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.008814, allocations: 4 kB / 386 MB, free: 10.6 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.912e-05/0.008863, allocations: 89.06 kB / 386.1 MB, free: 10.5 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.354e-05/0.008886, allocations: 37.69 kB / 386.1 MB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.008891, allocations: 0 / 386.1 MB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.147e-05/0.008902, allocations: 4.094 kB / 386.1 MB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.413e-06/0.008903, allocations: 0 / 386.1 MB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.925e-06/0.008906, allocations: 0 / 386.1 MB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.387e-06/0.008916, allocations: 3.938 kB / 386.1 MB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.841e-06/0.008922, allocations: 4 kB / 386.1 MB, free: 10.44 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.451e-05/0.008986, allocations: 182.2 kB / 386.3 MB, free: 10.25 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.819e-06/0.008991, allocations: 4 kB / 386.3 MB, free: 10.24 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.939e-06/0.009001, allocations: 3 kB / 386.3 MB, free: 10.24 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.22e-07/0.009002, allocations: 0 / 386.3 MB, free: 10.24 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.222e-06/0.009003, allocations: 3.938 kB / 386.3 MB, free: 10.24 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.009006, allocations: 7.984 kB / 386.3 MB, free: 10.23 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.634e-05/0.009053, allocations: 97.2 kB / 386.4 MB, free: 10.11 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.41e-07/0.009053, allocations: 4 kB / 386.4 MB, free: 10.11 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.5e-07/0.009053, allocations: 0 / 386.4 MB, free: 10.11 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.11e-07/0.009054, allocations: 0 / 386.4 MB, free: 10.11 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.447e-06/0.009057, allocations: 0 / 386.4 MB, free: 10.11 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.81e-07/0.009058, allocations: 0 / 386.4 MB, free: 10.11 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.21e-07/0.009058, allocations: 0 / 386.4 MB, free: 10.11 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.866e-05/0.009127, allocations: 127.8 kB / 386.5 MB, free: 9.945 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.801e-06/0.009133, allocations: 4 kB / 386.5 MB, free: 9.941 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.019e-05/0.009143, allocations: 4.031 kB / 386.5 MB, free: 9.938 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.098e-06/0.009147, allocations: 0 / 386.5 MB, free: 9.938 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.107e-06/0.009156, allocations: 7.922 kB / 386.5 MB, free: 9.93 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.284e-06/0.009158, allocations: 4 kB / 386.6 MB, free: 9.926 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.501e-05/0.009183, allocations: 119.2 kB / 386.7 MB, free: 9.809 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009183, allocations: 0 / 386.7 MB, free: 9.809 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000298/0.009481, allocations: 159.5 kB / 386.8 MB, free: 9.652 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.0004769/0.009958, allocations: 436.1 kB / 387.3 MB, free: 9.227 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 7.903e-05/0.01004, allocations: 122.5 kB / 387.4 MB, free: 9.078 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.233e-06/0.01004, allocations: 0 / 387.4 MB, free: 9.078 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.941e-05/0.01007, allocations: 92.78 kB / 387.5 MB, free: 8.965 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.029e-05/0.01015, allocations: 8.062 kB / 387.5 MB, free: 8.957 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001314/0.01028, allocations: 109.7 kB / 387.6 MB, free: 8.812 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.596e-05/0.01031, allocations: 55.36 kB / 387.6 MB, free: 8.738 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.298e-06/0.01031, allocations: 0 / 387.6 MB, free: 8.738 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.567e-05/0.01035, allocations: 78.12 kB / 387.7 MB, free: 8.66 MB / 362.7 MB Notification: Performance of SimCode: time 3.4e-07/0.01035, allocations: 0 / 387.7 MB, free: 8.66 MB / 362.7 MB Notification: Performance of Templates: time 0.007448/0.01779, allocations: 6.089 MB / 393.8 MB, free: 2.566 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.3673839271068573]