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.001963/0.001963, allocations: 113.1 kB / 20.43 MB, free: 1.457 MB / 14.72 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.002461/0.002461, allocations: 215.7 kB / 23.75 MB, free: 4.668 MB / 14.72 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.491/1.491, allocations: 230.6 MB / 257.5 MB, free: 7.992 MB / 206.1 MB " [Timeout remaining time 178] 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.2554/0.2554, allocations: 46.93 MB / 360.9 MB, free: 4.246 MB / 286.1 MB " [Timeout remaining time 179] 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 0.002102/0.002102, allocations: 67.89 kB / 0.4966 GB, free: 7.418 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5178/0.5199, allocations: 66.03 MB / 0.5611 GB, free: 4.426 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001837/0.5218, allocations: 481 kB / 0.5616 GB, free: 3.953 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003914/0.5257, allocations: 2.454 MB / 0.5639 GB, free: 1.48 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.433e-05/0.5257, allocations: 0 / 0.5639 GB, free: 1.48 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.035e-05/0.5257, allocations: 4 kB / 0.564 GB, free: 1.477 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.252e-06/0.5257, allocations: 0 / 0.564 GB, free: 1.477 MB / 398.1 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.002921/0.5286, allocations: 1.16 MB / 0.5651 GB, free: 324 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.251e-05/0.5287, allocations: 4 kB / 0.5651 GB, free: 320 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.836e-05/0.5287, allocations: 0 / 0.5651 GB, free: 320 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.648e-05/0.5288, allocations: 0 / 0.5651 GB, free: 320 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.099e-05/0.5288, allocations: 4 kB / 0.5651 GB, free: 316 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.112e-06/0.5288, allocations: 0 / 0.5651 GB, free: 316 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001805/0.5306, allocations: 1.034 MB / 0.5661 GB, free: 15.27 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.035e-05/0.5306, allocations: 4 kB / 0.5661 GB, free: 15.27 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.626e-05/0.5306, allocations: 7.938 kB / 0.5661 GB, free: 15.26 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006703/0.5313, allocations: 445.5 kB / 0.5665 GB, free: 14.83 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.5313, allocations: 0 / 0.5665 GB, free: 14.83 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.5313, allocations: 0 / 0.5665 GB, free: 14.83 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.249e-05/0.5313, allocations: 0 / 0.5665 GB, free: 14.83 MB / 414.1 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.0005616/0.5319, allocations: 367.3 kB / 0.5669 GB, free: 14.44 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.33e-05/0.5319, allocations: 8.031 kB / 0.5669 GB, free: 14.43 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.541e-05/0.532, allocations: 4.875 kB / 0.5669 GB, free: 14.43 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001027/0.5321, allocations: 106.5 kB / 0.567 GB, free: 14.3 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.949e-06/0.5321, allocations: 384 / 0.567 GB, free: 14.3 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.524e-05/0.5321, allocations: 384 / 0.567 GB, free: 14.3 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001161/0.5322, allocations: 45.94 kB / 0.567 GB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.016e-05/0.5322, allocations: 0 / 0.567 GB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.518e-06/0.5322, allocations: 0 / 0.567 GB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.5322, allocations: 4 kB / 0.5671 GB, free: 14.24 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.015e-05/0.5322, allocations: 0 / 0.5671 GB, free: 14.24 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001495/0.5324, allocations: 120.7 kB / 0.5672 GB, free: 14.08 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.461e-05/0.5324, allocations: 14.58 kB / 0.5672 GB, free: 14.06 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.409e-05/0.5325, allocations: 4.859 kB / 0.5672 GB, free: 14.05 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.06e-05/0.5325, allocations: 4.094 kB / 0.5672 GB, free: 14.05 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.334e-05/0.5325, allocations: 72.12 kB / 0.5673 GB, free: 13.96 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 9.92e-07/0.5325, allocations: 4 kB / 0.5673 GB, free: 13.96 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002083/0.5327, allocations: 63.39 kB / 0.5673 GB, free: 13.88 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.369e-05/0.5328, allocations: 77.11 kB / 0.5674 GB, free: 13.79 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.991e-05/0.5329, allocations: 93.81 kB / 0.5675 GB, free: 13.69 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.836e-05/0.5329, allocations: 25.7 kB / 0.5675 GB, free: 13.66 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.92e-05/0.5329, allocations: 84.08 kB / 0.5676 GB, free: 13.57 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.858e-05/0.533, allocations: 7.969 kB / 0.5676 GB, free: 13.56 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.009e-05/0.533, allocations: 17.72 kB / 0.5676 GB, free: 13.54 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001563/0.5331, allocations: 315 kB / 0.5679 GB, free: 13.22 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.298e-05/0.5332, allocations: 0 / 0.5679 GB, free: 13.22 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.041e-05/0.5332, allocations: 4 kB / 0.5679 GB, free: 13.22 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.193e-05/0.5332, allocations: 64.2 kB / 0.568 GB, free: 13.14 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.5332, allocations: 0 / 0.568 GB, free: 13.14 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.178e-05/0.5333, allocations: 63.39 kB / 0.568 GB, free: 13.07 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.108e-05/0.5334, allocations: 37.64 kB / 0.5681 GB, free: 13.02 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.5334, allocations: 0 / 0.5681 GB, free: 13.02 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.454e-05/0.5334, allocations: 4.094 kB / 0.5681 GB, free: 13.02 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.72e-07/0.5334, allocations: 0 / 0.5681 GB, free: 13.02 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.27e-06/0.5334, allocations: 0 / 0.5681 GB, free: 13.02 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.438e-05/0.5334, allocations: 0 / 0.5681 GB, free: 13.02 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.866e-06/0.5334, allocations: 4 kB / 0.5681 GB, free: 13.02 MB / 414.1 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 0.0001082/0.5335, allocations: 131.5 kB / 0.5682 GB, free: 12.87 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.19e-05/0.5335, allocations: 11.86 kB / 0.5682 GB, free: 12.86 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.119e-05/0.5335, allocations: 3 kB / 0.5682 GB, free: 12.86 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-06/0.5335, allocations: 4 kB / 0.5682 GB, free: 12.85 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.5336, allocations: 4 kB / 0.5682 GB, free: 12.85 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.5336, allocations: 3.938 kB / 0.5682 GB, free: 12.84 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.458e-05/0.5336, allocations: 116.8 kB / 0.5683 GB, free: 12.69 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.145e-06/0.5337, allocations: 4 kB / 0.5683 GB, free: 12.68 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.5337, allocations: 0 / 0.5683 GB, free: 12.68 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.54e-06/0.5337, allocations: 11.92 kB / 0.5684 GB, free: 12.67 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.721e-06/0.5337, allocations: 0 / 0.5684 GB, free: 12.67 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.92e-07/0.5337, allocations: 0 / 0.5684 GB, free: 12.67 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.5337, allocations: 0 / 0.5684 GB, free: 12.67 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001127/0.5338, allocations: 90.84 kB / 0.5684 GB, free: 12.56 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.452e-06/0.5338, allocations: 3.984 kB / 0.5685 GB, free: 12.55 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.455e-05/0.5338, allocations: 3.938 kB / 0.5685 GB, free: 12.55 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.777e-06/0.5338, allocations: 0 / 0.5685 GB, free: 12.55 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.814e-05/0.5338, allocations: 4 kB / 0.5685 GB, free: 12.55 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.354e-06/0.5338, allocations: 0 / 0.5685 GB, free: 12.55 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.97e-05/0.5339, allocations: 75.28 kB / 0.5685 GB, free: 12.47 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.5339, allocations: 0 / 0.5685 GB, free: 12.47 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005045/0.5344, allocations: 159.5 kB / 0.5687 GB, free: 12.32 MB / 414.1 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.0008469/0.5352, allocations: 395.3 kB / 0.5691 GB, free: 11.93 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001135/0.5353, allocations: 63.41 kB / 0.5691 GB, free: 11.85 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.756e-06/0.5353, allocations: 0 / 0.5691 GB, free: 11.85 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.027e-05/0.5354, allocations: 51.41 kB / 0.5692 GB, free: 11.79 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001224/0.5355, allocations: 4 kB / 0.5692 GB, free: 11.79 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002652/0.5358, allocations: 88.98 kB / 0.5693 GB, free: 11.67 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000458/0.5362, allocations: 0.669 MB / 0.5699 GB, free: 10.98 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.57e-06/0.5362, allocations: 0 / 0.5699 GB, free: 10.98 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.313e-05/0.5362, allocations: 7.562 kB / 0.5699 GB, free: 10.97 MB / 414.1 MB Notification: Performance of SimCode: time 3.21e-07/0.5362, allocations: 4 kB / 0.5699 GB, free: 10.96 MB / 414.1 MB Notification: Performance of Templates: time 0.009145/0.5454, allocations: 4.618 MB / 0.5744 GB, free: 6.344 MB / 414.1 MB " [Timeout remaining time 659] 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.858371490845457]