Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.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.0008455/0.0008455, allocations: 83.69 kB / 20.67 MB, free: 3.887 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.0008192/0.0008192, allocations: 170 kB / 23.95 MB, free: 0.6094 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.9126/0.9126, allocations: 177.1 MB / 204.3 MB, free: 5.73 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.2554/0.2554, allocations: 32.8 MB / 293.5 MB, free: 1.223 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.Utilities.TestInternal,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestInternal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestInternal,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestInternal",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 439.5 MB, free: 4.305 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.509e-05/2.67e-05, allocations: 7.828 kB / 439.6 MB, free: 4.297 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001262/0.001289, allocations: 489 kB / 440 MB, free: 3.82 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005395/0.001829, allocations: 259.3 kB / 440.3 MB, free: 3.566 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.659e-05/0.001855, allocations: 0 / 440.3 MB, free: 3.566 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 2.252e-05/0.001878, allocations: 3.938 kB / 440.3 MB, free: 3.562 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 8.877e-06/0.001887, allocations: 4 kB / 440.3 MB, free: 3.559 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:399:3-454:15:writable] Warning: Pure function 'ModelicaTest.Utilities.Internal' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0003719/0.002258, allocations: 55.75 kB / 440.3 MB, free: 3.504 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 7.958e-05/0.002338, allocations: 4 kB / 440.3 MB, free: 3.5 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.478e-05/0.002393, allocations: 3.984 kB / 440.4 MB, free: 3.496 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.641e-05/0.002429, allocations: 0 / 440.4 MB, free: 3.496 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.529e-05/0.002465, allocations: 7.938 kB / 440.4 MB, free: 3.488 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.204e-05/0.002477, allocations: 0 / 440.4 MB, free: 3.488 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000158/0.002635, allocations: 59.89 kB / 440.4 MB, free: 3.43 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 9.948e-06/0.002645, allocations: 0 / 440.4 MB, free: 3.43 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 3.196e-05/0.002677, allocations: 0 / 440.4 MB, free: 3.43 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001447/0.002821, allocations: 63.86 kB / 440.5 MB, free: 3.367 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.685e-06/0.002824, allocations: 0 / 440.5 MB, free: 3.367 MB / 410.7 MB Notification: Performance of FrontEnd: time 7.42e-07/0.002825, allocations: 4 kB / 440.5 MB, free: 3.363 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.472e-06/0.002831, allocations: 3.984 kB / 440.5 MB, free: 3.359 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.0002923/0.003123, allocations: 280 kB / 440.8 MB, free: 3.047 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/0.003165, allocations: 8.031 kB / 440.8 MB, free: 3.039 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.707e-05/0.003192, allocations: 34.75 kB / 440.8 MB, free: 2.996 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.596e-05/0.003218, allocations: 0.9375 kB / 440.8 MB, free: 2.996 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.884e-05/0.003277, allocations: 105.7 kB / 440.9 MB, free: 2.867 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.468e-06/0.003286, allocations: 384 / 440.9 MB, free: 2.867 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.665e-06/0.003294, allocations: 384 / 440.9 MB, free: 2.867 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.525e-05/0.003389, allocations: 67.91 kB / 441 MB, free: 2.789 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.913e-06/0.003396, allocations: 192 / 441 MB, free: 2.789 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.836e-06/0.003405, allocations: 384 / 441 MB, free: 2.789 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.172e-06/0.003411, allocations: 4.125 kB / 441 MB, free: 2.785 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.664e-05/0.003437, allocations: 33.69 kB / 441 MB, free: 2.746 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001054/0.003543, allocations: 112.8 kB / 441.1 MB, free: 2.594 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.634e-05/0.003589, allocations: 48.25 kB / 441.2 MB, free: 2.531 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.121e-05/0.00361, allocations: 34.56 kB / 441.2 MB, free: 2.488 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.614e-06/0.003618, allocations: 4.047 kB / 441.2 MB, free: 2.484 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.596e-05/0.003654, allocations: 64.25 kB / 441.3 MB, free: 2.406 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 1.093e-06/0.003655, allocations: 7.938 kB / 441.3 MB, free: 2.398 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001791/0.003834, allocations: 110.8 kB / 441.4 MB, free: 2.266 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.224e-05/0.003876, allocations: 81.05 kB / 441.5 MB, free: 2.168 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.089e-05/0.003917, allocations: 97.81 kB / 441.6 MB, free: 2.062 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.21e-05/0.003929, allocations: 29.7 kB / 441.6 MB, free: 2.027 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.084e-05/0.00395, allocations: 84.12 kB / 441.7 MB, free: 1.941 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.14e-05/0.003972, allocations: 7.922 kB / 441.7 MB, free: 1.934 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.152e-05/0.003993, allocations: 9.719 kB / 441.7 MB, free: 1.918 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.975e-05/0.004073, allocations: 314.8 kB / 442 MB, free: 1.602 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.08e-05/0.004094, allocations: 25.7 kB / 442 MB, free: 1.57 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.334e-05/0.004107, allocations: 29.83 kB / 442.1 MB, free: 1.535 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.368e-05/0.004151, allocations: 68.2 kB / 442.1 MB, free: 1.453 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.004153, allocations: 0 / 442.1 MB, free: 1.453 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.959e-05/0.004212, allocations: 89.09 kB / 442.2 MB, free: 1.348 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.827e-05/0.004241, allocations: 33.7 kB / 442.2 MB, free: 1.309 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.004245, allocations: 0 / 442.2 MB, free: 1.309 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.169e-05/0.004257, allocations: 0 / 442.2 MB, free: 1.309 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.303e-06/0.004258, allocations: 0 / 442.2 MB, free: 1.309 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.681e-06/0.004264, allocations: 3.938 kB / 442.2 MB, free: 1.305 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.311e-05/0.004277, allocations: 96 / 442.2 MB, free: 1.305 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.835e-06/0.004285, allocations: 8 kB / 442.2 MB, free: 1.297 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 6.66e-05/0.004351, allocations: 144.2 kB / 442.4 MB, free: 1.141 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.148e-06/0.004356, allocations: 0 / 442.4 MB, free: 1.141 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.18e-05/0.004367, allocations: 6.938 kB / 442.4 MB, free: 1.129 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-06/0.00437, allocations: 4 kB / 442.4 MB, free: 1.125 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.004375, allocations: 3.938 kB / 442.4 MB, free: 1.121 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.004377, allocations: 0 / 442.4 MB, free: 1.121 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.917e-05/0.004436, allocations: 116.8 kB / 442.5 MB, free: 0.9648 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.31e-07/0.004437, allocations: 0 / 442.5 MB, free: 0.9648 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.31e-07/0.004438, allocations: 0 / 442.5 MB, free: 0.9648 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.654e-06/0.004439, allocations: 11.94 kB / 442.5 MB, free: 0.9531 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.091e-06/0.004445, allocations: 0 / 442.5 MB, free: 0.9531 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.61e-07/0.004446, allocations: 0 / 442.5 MB, free: 0.9531 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.004448, allocations: 3.938 kB / 442.5 MB, free: 0.9492 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.676e-05/0.004524, allocations: 116.5 kB / 442.6 MB, free: 0.8047 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.258e-06/0.004529, allocations: 0 / 442.6 MB, free: 0.8047 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.133e-05/0.00454, allocations: 4 kB / 442.7 MB, free: 0.8008 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.36e-06/0.004545, allocations: 0 / 442.7 MB, free: 0.8008 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.211e-05/0.004557, allocations: 7.875 kB / 442.7 MB, free: 0.793 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.683e-06/0.004559, allocations: 0 / 442.7 MB, free: 0.793 MB / 410.7 MB Notification: Performance of sorting global known variables: time 2.062e-05/0.00458, allocations: 79.31 kB / 442.7 MB, free: 0.7148 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.00458, allocations: 0 / 442.7 MB, free: 0.7148 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001591/0.004739, allocations: 27.92 kB / 442.8 MB, free: 0.6875 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.1796/0.1843, allocations: 0.835 MB / 443.6 MB, free: 46.07 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001173/0.1844, allocations: 118.4 kB / 443.7 MB, free: 45.95 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.1844, allocations: 0 / 443.7 MB, free: 45.95 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.541e-05/0.1844, allocations: 83.14 kB / 443.8 MB, free: 45.86 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001012/0.1845, allocations: 9.078 kB / 443.8 MB, free: 45.86 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002642/0.1848, allocations: 144.9 kB / 443.9 MB, free: 45.7 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.681e-05/0.1848, allocations: 57.69 kB / 444 MB, free: 45.63 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 4.949e-06/0.1848, allocations: 3.938 kB / 444 MB, free: 45.62 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.444e-05/0.1848, allocations: 8.5 kB / 444 MB, free: 45.62 MB / 410.7 MB Notification: Performance of SimCode: time 1.653e-06/0.1848, allocations: 0 / 444 MB, free: 45.62 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01541/0.2002, allocations: 2.306 MB / 446.3 MB, free: 44.66 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.768/6.968, allocations: 0.5 kB / 446.3 MB, free: 44.66 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_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_Utilities_TestInternal.fmu > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Failed to open simulation result ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_res.csv: Error: Error opening file: ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_res.csv " [Timeout remaining time 660] "" Variables in the reference:time,result Variables in the result: [Calling sys.exit(0), Time elapsed: 9.03960585873574]