Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.000831/0.000831, allocations: 79.7 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.0008262/0.0008262, allocations: 174 kB / 23.94 MB, free: 0.6172 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.8725/0.8725, allocations: 177.1 MB / 204.3 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2607/0.2607, allocations: 32.78 MB / 293.5 MB, free: 1.203 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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_0_0_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexOperations,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.413e-06/1.413e-06, allocations: 0 / 439.5 MB, free: 4.301 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.592e-05/1.733e-05, allocations: 2.844 kB / 439.5 MB, free: 4.297 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.0009689/0.0009862, allocations: 489.5 kB / 440 MB, free: 3.824 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.002257/0.003244, allocations: 2.287 MB / 442.3 MB, free: 1.516 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.114e-05/0.003265, allocations: 0 / 442.3 MB, free: 1.516 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.174e-05/0.003276, allocations: 0 / 442.3 MB, free: 1.516 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 5.901e-06/0.003282, allocations: 4 kB / 442.3 MB, free: 1.512 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.00161/0.004892, allocations: 1.103 MB / 443.4 MB, free: 416 kB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 5.698e-05/0.004949, allocations: 3.984 kB / 443.4 MB, free: 412 kB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.538e-05/0.004994, allocations: 4 kB / 443.4 MB, free: 408 kB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.205e-05/0.005026, allocations: 0 / 443.4 MB, free: 408 kB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.731e-05/0.005054, allocations: 3.938 kB / 443.4 MB, free: 404 kB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 8.606e-06/0.005062, allocations: 3.938 kB / 443.4 MB, free: 400 kB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1805/0.1855, allocations: 0.9668 MB / 444.4 MB, free: 43.35 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.331e-05/0.1855, allocations: 3.188 kB / 444.4 MB, free: 43.35 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.854e-05/0.1856, allocations: 2.5 kB / 444.4 MB, free: 43.35 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004782/0.186, allocations: 0.5387 MB / 444.9 MB, free: 43.35 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.186, allocations: 2.969 kB / 444.9 MB, free: 43.35 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.512e-06/0.186, allocations: 0 / 444.9 MB, free: 43.35 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.937e-06/0.1861, allocations: 0 / 444.9 MB, free: 43.35 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.0002656/0.1863, allocations: 361.6 kB / 445.3 MB, free: 43.02 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.763e-05/0.1864, allocations: 11.5 kB / 445.3 MB, free: 43.02 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.804e-05/0.1864, allocations: 33.66 kB / 445.3 MB, free: 42.98 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.558e-05/0.1864, allocations: 0.9375 kB / 445.3 MB, free: 42.98 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.45e-05/0.1864, allocations: 109.1 kB / 445.4 MB, free: 42.86 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.628e-06/0.1864, allocations: 5.672 kB / 445.4 MB, free: 42.86 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.452e-06/0.1865, allocations: 384 / 445.4 MB, free: 42.86 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.919e-05/0.1865, allocations: 54.47 kB / 445.5 MB, free: 42.79 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.102e-06/0.1865, allocations: 1.688 kB / 445.5 MB, free: 42.79 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.186e-06/0.1865, allocations: 3.703 kB / 445.5 MB, free: 42.79 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.897e-06/0.1865, allocations: 4.5 kB / 445.5 MB, free: 42.79 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.632e-05/0.1866, allocations: 29.08 kB / 445.5 MB, free: 42.76 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.899e-05/0.1866, allocations: 119.9 kB / 445.7 MB, free: 42.61 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.066e-05/0.1867, allocations: 45.06 kB / 445.7 MB, free: 42.55 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.298e-05/0.1867, allocations: 36.11 kB / 445.7 MB, free: 42.51 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.733e-06/0.1867, allocations: 3.438 kB / 445.7 MB, free: 42.51 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.294e-05/0.1867, allocations: 58.83 kB / 445.8 MB, free: 42.44 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 5.91e-07/0.1867, allocations: 0 / 445.8 MB, free: 42.44 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.000135/0.1868, allocations: 130.7 kB / 445.9 MB, free: 42.31 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.188e-05/0.1869, allocations: 77.11 kB / 446 MB, free: 42.22 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.307e-05/0.1869, allocations: 93.12 kB / 446.1 MB, free: 42.12 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.368e-06/0.1869, allocations: 30.42 kB / 446.1 MB, free: 42.09 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.192e-06/0.1869, allocations: 80.14 kB / 446.2 MB, free: 42.01 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.369e-05/0.1869, allocations: 0 / 446.2 MB, free: 42.01 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.841e-05/0.1869, allocations: 18.81 kB / 446.2 MB, free: 41.99 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.505e-05/0.1869, allocations: 314.1 kB / 446.5 MB, free: 41.68 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.207e-06/0.187, allocations: 28.86 kB / 446.6 MB, free: 41.65 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.072e-06/0.187, allocations: 32.77 kB / 446.6 MB, free: 41.62 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.546e-05/0.187, allocations: 60.92 kB / 446.6 MB, free: 41.55 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.263e-06/0.187, allocations: 0 / 446.6 MB, free: 41.55 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 2.898e-05/0.187, allocations: 89.66 kB / 446.7 MB, free: 41.45 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.947e-05/0.187, allocations: 34.55 kB / 446.8 MB, free: 41.42 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.187, allocations: 0 / 446.8 MB, free: 41.42 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.127e-05/0.1871, allocations: 6 kB / 446.8 MB, free: 41.42 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.563e-06/0.1871, allocations: 3.938 kB / 446.8 MB, free: 41.42 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.133e-06/0.1871, allocations: 0 / 446.8 MB, free: 41.42 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.456e-05/0.1871, allocations: 3.375 kB / 446.8 MB, free: 41.42 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.587e-06/0.1871, allocations: 2.969 kB / 446.8 MB, free: 41.42 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.602e-05/0.1871, allocations: 137.9 kB / 446.9 MB, free: 41.27 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.477e-06/0.1871, allocations: 3.094 kB / 446.9 MB, free: 41.27 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.054e-05/0.1871, allocations: 3 kB / 446.9 MB, free: 41.27 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.82e-07/0.1871, allocations: 3.156 kB / 446.9 MB, free: 41.27 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.1871, allocations: 3.938 kB / 446.9 MB, free: 41.27 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.484e-06/0.1872, allocations: 0 / 446.9 MB, free: 41.27 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.765e-05/0.1872, allocations: 119.3 kB / 447 MB, free: 41.11 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-07/0.1872, allocations: 0 / 447 MB, free: 41.11 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.4e-07/0.1872, allocations: 0 / 447 MB, free: 41.11 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.81e-07/0.1872, allocations: 0 / 447 MB, free: 41.11 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.633e-06/0.1872, allocations: 2.906 kB / 447 MB, free: 41.11 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.61e-07/0.1872, allocations: 2.938 kB / 447.1 MB, free: 41.11 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.1872, allocations: 3.938 kB / 447.1 MB, free: 41.11 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.939e-05/0.1872, allocations: 119.9 kB / 447.2 MB, free: 40.98 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.236e-06/0.1873, allocations: 0 / 447.2 MB, free: 40.98 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.157e-05/0.1873, allocations: 6.359 kB / 447.2 MB, free: 40.98 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.94e-06/0.1873, allocations: 3.938 kB / 447.2 MB, free: 40.98 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.306e-05/0.1873, allocations: 3.938 kB / 447.2 MB, free: 40.98 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.573e-06/0.1873, allocations: 7.031 kB / 447.2 MB, free: 40.98 MB / 410.7 MB Notification: Performance of sorting global known variables: time 8.836e-06/0.1873, allocations: 75.28 kB / 447.3 MB, free: 40.91 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1873, allocations: 0 / 447.3 MB, free: 40.91 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000262/0.1876, allocations: 156.3 kB / 447.4 MB, free: 40.88 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.0005239/0.1881, allocations: 0.9704 MB / 448.4 MB, free: 40.19 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 6.745e-05/0.1881, allocations: 111.9 kB / 448.5 MB, free: 40.07 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.153e-06/0.1881, allocations: 3.062 kB / 448.5 MB, free: 40.07 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.329e-05/0.1882, allocations: 87.27 kB / 448.6 MB, free: 39.97 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.752e-05/0.1882, allocations: 9.141 kB / 448.6 MB, free: 39.97 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000252/0.1885, allocations: 207.9 kB / 448.8 MB, free: 39.78 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.377e-05/0.1885, allocations: 58.3 kB / 448.9 MB, free: 39.7 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 5.38e-06/0.1885, allocations: 2.75 kB / 448.9 MB, free: 39.7 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.151e-05/0.1885, allocations: 8.5 kB / 448.9 MB, free: 39.7 MB / 410.7 MB Notification: Performance of SimCode: time 5.41e-07/0.1885, allocations: 0 / 448.9 MB, free: 39.7 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01589/0.2044, allocations: 6.382 MB / 455.2 MB, free: 38.36 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.256/7.46, allocations: 11.66 kB / 455.3 MB, free: 38.35 MB / 410.7 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.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_0_0_ModelicaTest_ComplexMath_TestComplexOperations.fmu > ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexOperations/TestComplexOperations.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Failed to open simulation result ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations_res.csv: Error: Error opening file: ModelicaTest_4.0.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.439786759205163]