Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.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.001027/0.001027, allocations: 71.77 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.00115/0.00115, allocations: 165.9 kB / 24.99 MB, free: 8.336 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.088/1.088, allocations: 177.1 MB / 205.3 MB, free: 5.637 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.2859/0.2859, allocations: 34.26 MB / 296 MB, free: 0.7891 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.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations") translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.473e-06/1.473e-06, allocations: 0 / 378 MB, free: 3.043 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.411e-05/1.558e-05, allocations: 4.141 kB / 378 MB, free: 3.039 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.0009014/0.000917, allocations: 492.9 kB / 378.5 MB, free: 2.555 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.00236/0.003277, allocations: 2.35 MB / 380.8 MB, free: 188 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.704e-05/0.003304, allocations: 0 / 380.8 MB, free: 188 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.355e-05/0.003317, allocations: 0 / 380.8 MB, free: 188 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.23e-06/0.003322, allocations: 0 / 380.8 MB, free: 188 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.001837/0.005159, allocations: 1.117 MB / 381.9 MB, free: 15.06 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 4.993e-05/0.005209, allocations: 0 / 381.9 MB, free: 15.06 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.216e-05/0.005241, allocations: 4 kB / 381.9 MB, free: 15.06 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.415e-05/0.005265, allocations: 4 kB / 381.9 MB, free: 15.05 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.4e-05/0.005289, allocations: 7.922 kB / 381.9 MB, free: 15.05 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 7.023e-06/0.005296, allocations: 0 / 381.9 MB, free: 15.05 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001047/0.006344, allocations: 0.9753 MB / 382.9 MB, free: 14.07 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 7.023e-06/0.006351, allocations: 0 / 382.9 MB, free: 14.07 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 2.255e-05/0.006373, allocations: 8 kB / 382.9 MB, free: 14.06 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005742/0.006947, allocations: 0.5377 MB / 383.5 MB, free: 13.52 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.023e-06/0.006949, allocations: 0 / 383.5 MB, free: 13.52 MB / 362.7 MB Notification: Performance of FrontEnd: time 8.82e-07/0.00695, allocations: 0 / 383.5 MB, free: 13.52 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.539e-06/0.006955, allocations: 4 kB / 383.5 MB, free: 13.52 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.000326/0.007281, allocations: 461.2 kB / 383.9 MB, free: 13.03 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.165e-05/0.007312, allocations: 12.03 kB / 383.9 MB, free: 13.02 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.733e-05/0.00735, allocations: 0.9375 kB / 383.9 MB, free: 13.02 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.994e-05/0.00741, allocations: 108.6 kB / 384 MB, free: 12.88 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.168e-05/0.007421, allocations: 4.375 kB / 384 MB, free: 12.88 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.236e-06/0.00743, allocations: 384 / 384 MB, free: 12.88 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.07e-05/0.00751, allocations: 63.95 kB / 384.1 MB, free: 12.8 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.761e-06/0.007516, allocations: 192 / 384.1 MB, free: 12.8 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.434e-06/0.007524, allocations: 384 / 384.1 MB, free: 12.8 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/0.007532, allocations: 7.922 kB / 384.1 MB, free: 12.8 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.769e-05/0.00755, allocations: 29.64 kB / 384.1 MB, free: 12.76 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.867e-05/0.007629, allocations: 108.6 kB / 384.2 MB, free: 12.62 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.368e-05/0.007672, allocations: 56.75 kB / 384.3 MB, free: 12.55 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.991e-05/0.007692, allocations: 37.48 kB / 384.3 MB, free: 12.5 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.387e-06/0.007695, allocations: 0 / 384.3 MB, free: 12.5 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.172e-05/0.007727, allocations: 59.09 kB / 384.4 MB, free: 12.43 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 5.11e-07/0.007728, allocations: 4 kB / 384.4 MB, free: 12.42 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001455/0.007873, allocations: 126.7 kB / 384.5 MB, free: 12.27 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.393e-05/0.007907, allocations: 81.05 kB / 384.6 MB, free: 12.18 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.933e-05/0.007946, allocations: 146.2 kB / 384.7 MB, free: 12.02 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.125e-06/0.007955, allocations: 25.7 kB / 384.8 MB, free: 11.99 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.437e-05/0.007979, allocations: 126.9 kB / 384.9 MB, free: 11.86 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.261e-05/0.007992, allocations: 352 / 384.9 MB, free: 11.86 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.103e-05/0.008013, allocations: 19.38 kB / 384.9 MB, free: 11.83 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001033/0.008116, allocations: 492.1 kB / 385.4 MB, free: 11.34 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.019e-05/0.008136, allocations: 25.7 kB / 385.4 MB, free: 11.31 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.622e-05/0.008152, allocations: 37.81 kB / 385.5 MB, free: 11.27 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.249e-05/0.008205, allocations: 67.09 kB / 385.5 MB, free: 11.18 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.008208, allocations: 4 kB / 385.5 MB, free: 11.18 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.523e-05/0.008273, allocations: 93 kB / 385.6 MB, free: 11.07 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.438e-05/0.008298, allocations: 33.69 kB / 385.6 MB, free: 11.03 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.488e-06/0.008302, allocations: 0 / 385.6 MB, free: 11.03 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.335e-05/0.008316, allocations: 0 / 385.6 MB, free: 11.03 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.152e-06/0.008317, allocations: 0 / 385.6 MB, free: 11.03 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.003e-06/0.008324, allocations: 7.938 kB / 385.7 MB, free: 11.02 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.648e-06/0.008333, allocations: 4.094 kB / 385.7 MB, free: 11.02 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.27e-06/0.008339, allocations: 0 / 385.7 MB, free: 11.02 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.998e-05/0.008409, allocations: 186.3 kB / 385.8 MB, free: 10.82 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.679e-06/0.008413, allocations: 0 / 385.8 MB, free: 10.82 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.253e-06/0.008421, allocations: 3 kB / 385.8 MB, free: 10.82 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.008422, allocations: 0 / 385.8 MB, free: 10.82 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.965e-06/0.008425, allocations: 0 / 385.8 MB, free: 10.82 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.008431, allocations: 7.922 kB / 385.8 MB, free: 10.81 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.863e-05/0.008489, allocations: 108.6 kB / 386 MB, free: 10.67 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.51e-07/0.00849, allocations: 0 / 386 MB, free: 10.67 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.00849, allocations: 0 / 386 MB, free: 10.67 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.062e-06/0.008491, allocations: 4 kB / 386 MB, free: 10.67 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.133e-06/0.008499, allocations: 0 / 386 MB, free: 10.67 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.0085, allocations: 4 kB / 386 MB, free: 10.66 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.008501, allocations: 3.938 kB / 386 MB, free: 10.66 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.77e-05/0.008579, allocations: 131.8 kB / 386.1 MB, free: 10.5 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.907e-06/0.008583, allocations: 0 / 386.1 MB, free: 10.5 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.222e-05/0.008595, allocations: 0 / 386.1 MB, free: 10.5 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.488e-06/0.0086, allocations: 7.938 kB / 386.1 MB, free: 10.49 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.361e-05/0.008613, allocations: 3.984 kB / 386.1 MB, free: 10.48 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.793e-06/0.008615, allocations: 0 / 386.1 MB, free: 10.48 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.135e-05/0.008646, allocations: 131.1 kB / 386.2 MB, free: 10.36 MB / 362.7 MB Notification: Performance of sort global known variables: time 4e-08/0.008646, allocations: 0 / 386.2 MB, free: 10.36 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004639/0.00911, allocations: 155.5 kB / 386.4 MB, free: 10.2 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.0005155/0.009626, allocations: 427.8 kB / 386.8 MB, free: 9.785 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 8.816e-05/0.009714, allocations: 122.4 kB / 386.9 MB, free: 9.637 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.373e-06/0.009715, allocations: 0 / 386.9 MB, free: 9.637 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.932e-05/0.009745, allocations: 92.78 kB / 387 MB, free: 9.523 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.673e-05/0.009831, allocations: 7.984 kB / 387 MB, free: 9.516 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001555/0.009987, allocations: 109.7 kB / 387.1 MB, free: 9.371 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.63e-05/0.01001, allocations: 55.34 kB / 387.2 MB, free: 9.297 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.559e-06/0.01002, allocations: 128 / 387.2 MB, free: 9.297 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.179e-05/0.01003, allocations: 16.5 kB / 387.2 MB, free: 9.281 MB / 362.7 MB Notification: Performance of SimCode: time 4.4e-07/0.01003, allocations: 0 / 387.2 MB, free: 9.281 MB / 362.7 MB Notification: Performance of Templates: time 0.005663/0.01569, allocations: 4.712 MB / 391.9 MB, free: 4.562 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.sim & ./ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/ComplexMath/TestComplexOperations/TestComplexOperations.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.44160736608319]