Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001247/0.001247, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00135/0.00135, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9195/0.9195, allocations: 177 MB / 204.1 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2622/0.2622, allocations: 34.24 MB / 294.8 MB, free: 0.6836 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.472e-06/1.472e-06, allocations: 0 / 442.1 MB, free: 1.582 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.495e-05/1.642e-05, allocations: 2.281 kB / 442.1 MB, free: 1.578 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.0009879/0.001004, allocations: 0.4894 MB / 442.6 MB, free: 1.09 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1686/0.1696, allocations: 1.351 MB / 444 MB, free: 43.24 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.128e-05/0.1696, allocations: 0 / 444 MB, free: 43.24 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.421e-05/0.1697, allocations: 0 / 444 MB, free: 43.24 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001885/0.1698, allocations: 17.61 kB / 444 MB, free: 43.24 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:466:3-498:12:writable] Warning: Pure function 'ModelicaTest.Utilities.Files' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0008017/0.1706, allocations: 260.8 kB / 444.2 MB, free: 43.24 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 4.448e-05/0.1707, allocations: 2.844 kB / 444.2 MB, free: 43.24 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.3e-05/0.1707, allocations: 6.062 kB / 444.2 MB, free: 43.24 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.882e-05/0.1707, allocations: 4.953 kB / 444.2 MB, free: 43.24 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.074e-05/0.1708, allocations: 3.031 kB / 444.2 MB, free: 43.24 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 6.903e-06/0.1708, allocations: 0 / 444.2 MB, free: 43.24 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001405/0.1722, allocations: 0.7152 MB / 445 MB, free: 43.21 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 6.563e-06/0.1722, allocations: 0 / 445 MB, free: 43.21 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.451e-05/0.1722, allocations: 2.562 kB / 445 MB, free: 43.21 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002167/0.1724, allocations: 212.8 kB / 445.2 MB, free: 43.2 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.1724, allocations: 2.594 kB / 445.2 MB, free: 43.2 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.1724, allocations: 0.5625 kB / 445.2 MB, free: 43.2 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.567e-06/0.1724, allocations: 1.094 kB / 445.2 MB, free: 43.2 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.0002317/0.1727, allocations: 318.4 kB / 445.5 MB, free: 42.88 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.294e-05/0.1727, allocations: 8.375 kB / 445.5 MB, free: 42.88 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.61e-05/0.1727, allocations: 35.25 kB / 445.5 MB, free: 42.84 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.043e-05/0.1727, allocations: 3.531 kB / 445.5 MB, free: 42.84 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.698e-05/0.1728, allocations: 105 kB / 445.6 MB, free: 42.71 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.236e-06/0.1728, allocations: 3.031 kB / 445.6 MB, free: 42.71 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.941e-06/0.1728, allocations: 384 / 445.6 MB, free: 42.71 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.03e-05/0.1729, allocations: 61.86 kB / 445.7 MB, free: 42.65 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.022e-06/0.1729, allocations: 192 / 445.7 MB, free: 42.65 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.192e-06/0.1729, allocations: 384 / 445.7 MB, free: 42.65 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.707e-06/0.1729, allocations: 6.75 kB / 445.7 MB, free: 42.64 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.605e-05/0.1729, allocations: 25.7 kB / 445.7 MB, free: 42.61 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.819e-05/0.173, allocations: 123.1 kB / 445.9 MB, free: 42.46 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.226e-05/0.173, allocations: 48.69 kB / 445.9 MB, free: 42.4 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.26e-05/0.173, allocations: 33.25 kB / 445.9 MB, free: 42.36 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.621e-06/0.173, allocations: 0 / 445.9 MB, free: 42.36 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.258e-05/0.173, allocations: 62.98 kB / 446 MB, free: 42.29 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 6.22e-07/0.173, allocations: 0 / 446 MB, free: 42.29 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001476/0.1732, allocations: 119.9 kB / 446.1 MB, free: 42.16 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.84e-05/0.1732, allocations: 91 kB / 446.2 MB, free: 42.06 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.486e-05/0.1733, allocations: 96.36 kB / 446.3 MB, free: 41.96 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.632e-06/0.1733, allocations: 25.7 kB / 446.3 MB, free: 41.93 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.24e-05/0.1733, allocations: 82.8 kB / 446.4 MB, free: 41.85 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.567e-05/0.1733, allocations: 1.375 kB / 446.4 MB, free: 41.85 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.982e-05/0.1733, allocations: 12.25 kB / 446.4 MB, free: 41.84 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.213e-05/0.1733, allocations: 314.2 kB / 446.7 MB, free: 41.52 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.215e-05/0.1734, allocations: 36.3 kB / 446.8 MB, free: 41.49 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.634e-06/0.1734, allocations: 29.95 kB / 446.8 MB, free: 41.45 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.52e-05/0.1734, allocations: 61.8 kB / 446.8 MB, free: 41.38 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.1734, allocations: 0 / 446.8 MB, free: 41.38 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.979e-05/0.1734, allocations: 92.73 kB / 446.9 MB, free: 41.29 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.242e-05/0.1735, allocations: 39.27 kB / 447 MB, free: 41.25 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.1735, allocations: 0 / 447 MB, free: 41.25 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.229e-05/0.1735, allocations: 0 / 447 MB, free: 41.25 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.62e-07/0.1735, allocations: 3.938 kB / 447 MB, free: 41.25 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.663e-06/0.1735, allocations: 2.781 kB / 447 MB, free: 41.25 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.509e-05/0.1735, allocations: 96 / 447 MB, free: 41.25 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.153e-06/0.1735, allocations: 4 kB / 447 MB, free: 41.24 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.294e-05/0.1735, allocations: 137.8 kB / 447.1 MB, free: 41.1 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.626e-06/0.1735, allocations: 3.953 kB / 447.1 MB, free: 41.09 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.051e-05/0.1736, allocations: 6.031 kB / 447.1 MB, free: 41.09 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.81e-07/0.1736, allocations: 0 / 447.1 MB, free: 41.09 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.1736, allocations: 3.938 kB / 447.1 MB, free: 41.09 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.084e-06/0.1736, allocations: 0 / 447.1 MB, free: 41.09 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.542e-05/0.1736, allocations: 123.1 kB / 447.3 MB, free: 40.93 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.61e-07/0.1736, allocations: 0 / 447.3 MB, free: 40.93 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.1e-07/0.1736, allocations: 0 / 447.3 MB, free: 40.93 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.81e-07/0.1736, allocations: 4 kB / 447.3 MB, free: 40.93 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.611e-06/0.1736, allocations: 2.875 kB / 447.3 MB, free: 40.93 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.2e-07/0.1736, allocations: 3.938 kB / 447.3 MB, free: 40.93 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.1736, allocations: 3.938 kB / 447.3 MB, free: 40.92 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.144e-05/0.1737, allocations: 121.4 kB / 447.4 MB, free: 40.79 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.076e-06/0.1737, allocations: 1.406 kB / 447.4 MB, free: 40.79 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.104e-05/0.1737, allocations: 5.844 kB / 447.4 MB, free: 40.79 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.491e-06/0.1737, allocations: 0 / 447.4 MB, free: 40.79 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.285e-05/0.1737, allocations: 3.938 kB / 447.4 MB, free: 40.79 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.112e-06/0.1737, allocations: 2.719 kB / 447.4 MB, free: 40.79 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.171e-05/0.1737, allocations: 81.97 kB / 447.5 MB, free: 40.71 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1737, allocations: 0 / 447.5 MB, free: 40.71 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001786/0.1739, allocations: 67.62 kB / 447.5 MB, free: 40.7 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.0005443/0.1744, allocations: 0.9005 MB / 448.4 MB, free: 40 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 8.012e-05/0.1745, allocations: 112.5 kB / 448.6 MB, free: 39.87 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.1745, allocations: 0 / 448.6 MB, free: 39.87 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.551e-05/0.1745, allocations: 86.84 kB / 448.6 MB, free: 39.78 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.973e-05/0.1746, allocations: 6.5 kB / 448.6 MB, free: 39.77 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002659/0.1749, allocations: 162.7 kB / 448.8 MB, free: 39.6 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.887e-05/0.1749, allocations: 57.92 kB / 448.9 MB, free: 39.53 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 9.448e-06/0.1749, allocations: 0 / 448.9 MB, free: 39.53 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.482e-05/0.175, allocations: 22.06 kB / 448.9 MB, free: 39.52 MB / 410.7 MB Notification: Performance of SimCode: time 4.71e-07/0.175, allocations: 0 / 448.9 MB, free: 39.52 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02186/0.1968, allocations: 3.23 MB / 452.1 MB, free: 38.42 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.858/7.054, allocations: 6.75 kB / 452.1 MB, free: 38.42 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_trunk_ModelicaTest_Utilities_TestFiles.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestFiles/TestFiles.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Failed to open simulation result ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles_res.csv: Error: Error opening file: ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles_res.csv " [Timeout remaining time 660] "" Variables in the reference:time,result Variables in the result: [Calling sys.exit(0), Time elapsed: 9.114439082331955]