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.0008387/0.0008387, allocations: 79.69 kB / 20.67 MB, free: 3.891 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.001653/0.001653, allocations: 170 kB / 23.95 MB, free: 0.6133 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 0.902/0.902, allocations: 177.1 MB / 204.3 MB, free: 5.719 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.2546/0.2546, allocations: 34.25 MB / 294.9 MB, free: 0.7266 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: "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexOperations,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexOperations,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.312e-06/1.312e-06, allocations: 0 / 442.1 MB, free: 1.711 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.072e-05/1.203e-05, allocations: 2.281 kB / 442.1 MB, free: 1.707 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.0008976/0.0009096, allocations: 476.1 kB / 442.6 MB, free: 1.246 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1715/0.1724, allocations: 2.28 MB / 444.9 MB, free: 43.15 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.008e-05/0.1725, allocations: 0 / 444.9 MB, free: 43.15 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.488e-05/0.1725, allocations: 3.156 kB / 444.9 MB, free: 43.15 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 6.703e-06/0.1725, allocations: 0.7188 kB / 444.9 MB, free: 43.15 MB / 410.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.001636/0.1741, allocations: 1.108 MB / 446 MB, free: 42.77 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 5.396e-05/0.1742, allocations: 6.188 kB / 446 MB, free: 42.77 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.014e-05/0.1742, allocations: 4 kB / 446 MB, free: 42.77 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.081e-05/0.1742, allocations: 2.781 kB / 446 MB, free: 42.77 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.379e-05/0.1743, allocations: 3.188 kB / 446 MB, free: 42.77 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 8.666e-06/0.1743, allocations: 0 / 446 MB, free: 42.77 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009094/0.1752, allocations: 0.9806 MB / 447 MB, free: 42.62 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 8.787e-06/0.1752, allocations: 3.469 kB / 447 MB, free: 42.62 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.06e-05/0.1752, allocations: 0 / 447 MB, free: 42.62 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004107/0.1756, allocations: 0.5342 MB / 447.5 MB, free: 42.39 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.1756, allocations: 0 / 447.5 MB, free: 42.39 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.1756, allocations: 3.938 kB / 447.5 MB, free: 42.39 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.56e-06/0.1756, allocations: 0 / 447.5 MB, free: 42.39 MB / 410.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.0003179/0.1759, allocations: 365.9 kB / 447.9 MB, free: 42.04 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.017e-05/0.176, allocations: 8.531 kB / 447.9 MB, free: 42.04 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.164e-05/0.176, allocations: 30.75 kB / 447.9 MB, free: 42 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.518e-05/0.176, allocations: 3.781 kB / 447.9 MB, free: 42 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.544e-05/0.1761, allocations: 112.9 kB / 448 MB, free: 41.87 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.729e-06/0.1761, allocations: 384 / 448 MB, free: 41.87 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.185e-06/0.1761, allocations: 4.688 kB / 448 MB, free: 41.87 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.7e-05/0.1762, allocations: 54.84 kB / 448.1 MB, free: 41.81 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.161e-06/0.1762, allocations: 192 / 448.1 MB, free: 41.81 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.126e-06/0.1762, allocations: 4.125 kB / 448.1 MB, free: 41.8 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.599e-06/0.1762, allocations: 0 / 448.1 MB, free: 41.8 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.736e-05/0.1762, allocations: 28.67 kB / 448.1 MB, free: 41.77 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.398e-05/0.1763, allocations: 123.5 kB / 448.2 MB, free: 41.62 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.834e-05/0.1763, allocations: 47 kB / 448.3 MB, free: 41.56 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.671e-05/0.1763, allocations: 37.34 kB / 448.3 MB, free: 41.52 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.212e-06/0.1763, allocations: 0 / 448.3 MB, free: 41.52 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.606e-05/0.1764, allocations: 62.58 kB / 448.4 MB, free: 41.45 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 9.01e-07/0.1764, allocations: 0 / 448.4 MB, free: 41.45 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001642/0.1765, allocations: 119.2 kB / 448.5 MB, free: 41.31 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.457e-05/0.1766, allocations: 80.3 kB / 448.6 MB, free: 41.22 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.244e-05/0.1766, allocations: 93.12 kB / 448.7 MB, free: 41.12 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.968e-06/0.1766, allocations: 29.64 kB / 448.7 MB, free: 41.09 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.292e-06/0.1766, allocations: 85.39 kB / 448.8 MB, free: 41 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.479e-05/0.1766, allocations: 0 / 448.8 MB, free: 41 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.131e-05/0.1766, allocations: 20.69 kB / 448.8 MB, free: 40.98 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.644e-05/0.1766, allocations: 310.8 kB / 449.1 MB, free: 40.67 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.023e-05/0.1767, allocations: 25.7 kB / 449.1 MB, free: 40.64 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.537e-06/0.1767, allocations: 28.42 kB / 449.2 MB, free: 40.61 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.788e-05/0.1767, allocations: 62.45 kB / 449.2 MB, free: 40.54 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.1767, allocations: 0 / 449.2 MB, free: 40.54 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.381e-05/0.1767, allocations: 89.45 kB / 449.3 MB, free: 40.44 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.331e-05/0.1768, allocations: 38.67 kB / 449.4 MB, free: 40.4 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.747e-06/0.1768, allocations: 0 / 449.4 MB, free: 40.4 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.124e-05/0.1768, allocations: 8.031 kB / 449.4 MB, free: 40.39 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.32e-07/0.1768, allocations: 3.938 kB / 449.4 MB, free: 40.39 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.1768, allocations: 3.203 kB / 449.4 MB, free: 40.39 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.311e-05/0.1768, allocations: 2.781 kB / 449.4 MB, free: 40.39 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.933e-06/0.1768, allocations: 0 / 449.4 MB, free: 40.39 MB / 410.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 4.406e-05/0.1768, allocations: 134.5 kB / 449.5 MB, free: 40.25 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.078e-06/0.1768, allocations: 5.859 kB / 449.5 MB, free: 40.25 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.869e-06/0.1769, allocations: 7 kB / 449.5 MB, free: 40.24 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.1769, allocations: 6.844 kB / 449.5 MB, free: 40.23 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.1769, allocations: 0 / 449.5 MB, free: 40.23 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.1769, allocations: 4 kB / 449.5 MB, free: 40.23 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.374e-05/0.1769, allocations: 119.6 kB / 449.6 MB, free: 40.07 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.51e-07/0.1769, allocations: 0 / 449.6 MB, free: 40.07 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.21e-07/0.1769, allocations: 3.281 kB / 449.6 MB, free: 40.07 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.81e-07/0.1769, allocations: 1.594 kB / 449.6 MB, free: 40.07 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.39e-06/0.1769, allocations: 0 / 449.6 MB, free: 40.07 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.1769, allocations: 6.656 kB / 449.7 MB, free: 40.07 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.31e-07/0.1769, allocations: 0 / 449.7 MB, free: 40.07 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.001e-05/0.177, allocations: 115.4 kB / 449.8 MB, free: 39.94 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.558e-06/0.177, allocations: 1.312 kB / 449.8 MB, free: 39.94 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.025e-05/0.177, allocations: 6.688 kB / 449.8 MB, free: 39.94 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.4e-06/0.177, allocations: 7.969 kB / 449.8 MB, free: 39.93 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.125e-05/0.177, allocations: 0 / 449.8 MB, free: 39.93 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.194e-06/0.177, allocations: 3 kB / 449.8 MB, free: 39.93 MB / 410.7 MB Notification: Performance of sorting global known variables: time 8.446e-06/0.177, allocations: 75.28 kB / 449.9 MB, free: 39.86 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.177, allocations: 0 / 449.9 MB, free: 39.86 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002843/0.1773, allocations: 159.2 kB / 450 MB, free: 39.81 MB / 410.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.0005962/0.1779, allocations: 0.963 MB / 451 MB, free: 39.06 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 7.678e-05/0.178, allocations: 112.6 kB / 451.1 MB, free: 38.93 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.333e-06/0.178, allocations: 0 / 451.1 MB, free: 38.93 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.407e-05/0.178, allocations: 87.19 kB / 451.2 MB, free: 38.84 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.372e-05/0.1781, allocations: 14.88 kB / 451.2 MB, free: 38.82 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002622/0.1783, allocations: 207.8 kB / 451.4 MB, free: 38.63 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.488e-05/0.1783, allocations: 57.34 kB / 451.4 MB, free: 38.56 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 4.879e-06/0.1784, allocations: 0 / 451.4 MB, free: 38.56 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.506e-05/0.1784, allocations: 11.44 kB / 451.5 MB, free: 38.55 MB / 410.7 MB Notification: Performance of SimCode: time 8.92e-07/0.1784, allocations: 0 / 451.5 MB, free: 38.55 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01989/0.1983, allocations: 6.39 MB / 457.8 MB, free: 37.18 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.973/7.171, allocations: 0.5 kB / 457.8 MB, free: 37.18 MB / 410.7 MB " [Timeout remaining time 653] (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_4_1_0_ModelicaTest_ComplexMath_TestComplexOperations.fmu > ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations_res.csv","/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] "Error: Failed to open simulation result ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations_res.csv: Error: Error opening file: ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations_res.csv " [Timeout remaining time 660] "" Variables in the reference:time,result Variables in the result: [Calling sys.exit(0), Time elapsed: 9.190573177300394]