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.001846/0.001846, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001872/0.001872, allocations: 214.3 kB / 23.73 MB, free: 4.16 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.573/1.573, allocations: 230.6 MB / 257.5 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] 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.2196/0.2196, allocations: 44.93 MB / 358.8 MB, free: 6.141 MB / 286.1 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: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002107/0.002107, allocations: 67.89 kB / 0.493 GB, free: 10.56 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.318/0.3201, allocations: 65.46 MB / 0.5569 GB, free: 7.34 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001645/0.3217, allocations: 492.2 kB / 0.5574 GB, free: 6.977 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006625/0.3224, allocations: 260.1 kB / 0.5577 GB, free: 6.797 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.167e-05/0.3224, allocations: 0 / 0.5577 GB, free: 6.797 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.205e-05/0.3224, allocations: 0 / 0.5577 GB, free: 6.797 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.521e-06/0.3224, allocations: 0 / 0.5577 GB, free: 6.797 MB / 398.1 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.0003282/0.3228, allocations: 63.75 kB / 0.5577 GB, free: 6.734 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.106e-05/0.3228, allocations: 4 kB / 0.5577 GB, free: 6.73 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.564e-05/0.3229, allocations: 0 / 0.5577 GB, free: 6.73 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.575e-05/0.3229, allocations: 0 / 0.5577 GB, free: 6.73 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.501e-05/0.3229, allocations: 0 / 0.5577 GB, free: 6.73 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.466e-06/0.3229, allocations: 0 / 0.5577 GB, free: 6.73 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001543/0.3231, allocations: 67.94 kB / 0.5578 GB, free: 6.664 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.564e-06/0.3231, allocations: 3.938 kB / 0.5578 GB, free: 6.66 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.238e-05/0.3231, allocations: 0 / 0.5578 GB, free: 6.66 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001285/0.3232, allocations: 55.67 kB / 0.5578 GB, free: 6.609 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.3232, allocations: 4 kB / 0.5578 GB, free: 6.605 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3232, allocations: 4 kB / 0.5578 GB, free: 6.602 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.719e-06/0.3232, allocations: 0 / 0.5578 GB, free: 6.602 MB / 398.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.0003289/0.3236, allocations: 282 kB / 0.5581 GB, free: 6.289 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.82e-05/0.3236, allocations: 12.03 kB / 0.5581 GB, free: 6.277 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.375e-05/0.3236, allocations: 34.73 kB / 0.5582 GB, free: 6.234 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.46e-05/0.3237, allocations: 0.9375 kB / 0.5582 GB, free: 6.234 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.337e-05/0.3237, allocations: 102.5 kB / 0.5583 GB, free: 6.109 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.001e-05/0.3237, allocations: 384 / 0.5583 GB, free: 6.109 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.875e-06/0.3237, allocations: 4.375 kB / 0.5583 GB, free: 6.105 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.406e-05/0.3238, allocations: 59.89 kB / 0.5583 GB, free: 6.035 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.507e-05/0.3239, allocations: 7.938 kB / 0.5583 GB, free: 6.027 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.252e-06/0.3239, allocations: 0 / 0.5583 GB, free: 6.027 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.3239, allocations: 4 kB / 0.5583 GB, free: 6.023 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.244e-05/0.3239, allocations: 29.69 kB / 0.5584 GB, free: 5.988 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001307/0.324, allocations: 120.8 kB / 0.5585 GB, free: 5.828 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.451e-05/0.3241, allocations: 44.31 kB / 0.5585 GB, free: 5.77 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.944e-05/0.3241, allocations: 34.5 kB / 0.5586 GB, free: 5.727 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.006e-05/0.3241, allocations: 4.062 kB / 0.5586 GB, free: 5.723 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.748e-05/0.3242, allocations: 60.2 kB / 0.5586 GB, free: 5.648 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.3242, allocations: 0 / 0.5586 GB, free: 5.648 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002002/0.3244, allocations: 126.7 kB / 0.5587 GB, free: 5.5 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.205e-05/0.3244, allocations: 77.11 kB / 0.5588 GB, free: 5.406 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.525e-05/0.3245, allocations: 93.81 kB / 0.5589 GB, free: 5.305 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.544e-05/0.3245, allocations: 29.7 kB / 0.5589 GB, free: 5.27 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.272e-05/0.3245, allocations: 80.14 kB / 0.559 GB, free: 5.188 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.396e-05/0.3245, allocations: 0 / 0.559 GB, free: 5.188 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.319e-05/0.3246, allocations: 21.7 kB / 0.559 GB, free: 5.16 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001405/0.3247, allocations: 310.8 kB / 0.5593 GB, free: 4.848 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.286e-05/0.3247, allocations: 25.7 kB / 0.5593 GB, free: 4.816 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.902e-05/0.3248, allocations: 25.7 kB / 0.5594 GB, free: 4.785 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.927e-05/0.3248, allocations: 68.39 kB / 0.5594 GB, free: 4.703 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.3248, allocations: 0 / 0.5594 GB, free: 4.703 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.483e-05/0.3249, allocations: 93.09 kB / 0.5595 GB, free: 4.594 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.703e-05/0.3249, allocations: 33.7 kB / 0.5596 GB, free: 4.555 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.3249, allocations: 3.938 kB / 0.5596 GB, free: 4.551 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.367e-05/0.325, allocations: 0 / 0.5596 GB, free: 4.551 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.32e-07/0.325, allocations: 0 / 0.5596 GB, free: 4.551 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.859e-06/0.325, allocations: 0 / 0.5596 GB, free: 4.551 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.576e-05/0.325, allocations: 3.938 kB / 0.5596 GB, free: 4.547 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.185e-06/0.325, allocations: 0 / 0.5596 GB, free: 4.547 MB / 398.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.0001026/0.3251, allocations: 143.6 kB / 0.5597 GB, free: 4.391 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.374e-06/0.3251, allocations: 0 / 0.5597 GB, free: 4.391 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.507e-05/0.3251, allocations: 6.938 kB / 0.5597 GB, free: 4.383 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.3251, allocations: 7.984 kB / 0.5597 GB, free: 4.375 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.3251, allocations: 0 / 0.5597 GB, free: 4.375 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-06/0.3251, allocations: 0 / 0.5597 GB, free: 4.375 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001055/0.3252, allocations: 120.7 kB / 0.5598 GB, free: 4.215 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.3252, allocations: 0 / 0.5598 GB, free: 4.215 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.268e-06/0.3252, allocations: 7.984 kB / 0.5598 GB, free: 4.207 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.193e-06/0.3252, allocations: 0 / 0.5598 GB, free: 4.207 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.258e-06/0.3252, allocations: 7.938 kB / 0.5598 GB, free: 4.199 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.91e-07/0.3252, allocations: 0 / 0.5598 GB, free: 4.199 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.3252, allocations: 3.938 kB / 0.5598 GB, free: 4.195 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000135/0.3254, allocations: 116.5 kB / 0.56 GB, free: 4.051 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.058e-06/0.3254, allocations: 0 / 0.56 GB, free: 4.051 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.607e-05/0.3254, allocations: 7.938 kB / 0.56 GB, free: 4.043 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.496e-06/0.3254, allocations: 0 / 0.56 GB, free: 4.043 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.048e-05/0.3254, allocations: 0 / 0.56 GB, free: 4.043 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.119e-06/0.3254, allocations: 4 kB / 0.56 GB, free: 4.039 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.531e-05/0.3255, allocations: 75.28 kB / 0.56 GB, free: 3.965 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3255, allocations: 0 / 0.56 GB, free: 3.965 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002289/0.3257, allocations: 31.95 kB / 0.5601 GB, free: 3.934 MB / 398.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.001064/0.3268, allocations: 0.8421 MB / 0.5609 GB, free: 3.133 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001464/0.3269, allocations: 118.8 kB / 0.561 GB, free: 2.992 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.492e-06/0.3269, allocations: 0 / 0.561 GB, free: 2.992 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.418e-05/0.327, allocations: 81.11 kB / 0.5611 GB, free: 2.895 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001222/0.3271, allocations: 3.984 kB / 0.5611 GB, free: 2.891 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003254/0.3274, allocations: 152.3 kB / 0.5612 GB, free: 2.695 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.813e-05/0.3275, allocations: 63.41 kB / 0.5613 GB, free: 2.613 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.711e-06/0.3275, allocations: 4 kB / 0.5613 GB, free: 2.609 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.482e-05/0.3275, allocations: 7.438 kB / 0.5613 GB, free: 2.602 MB / 398.1 MB Notification: Performance of SimCode: time 4.1e-07/0.3275, allocations: 0 / 0.5613 GB, free: 2.602 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02741/0.3549, allocations: 2.159 MB / 0.5634 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.22/11.58, allocations: 5.875 kB / 0.5634 GB, free: 0.5742 MB / 398.1 MB " [Timeout remaining time 648] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.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: 14.595952891744673]