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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001075/0.001074, allocations: 114.4 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001062/0.001062, allocations: 183.8 kB / 18.71 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.33/1.33, allocations: 222.9 MB / 242.4 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2274/0.2274, allocations: 44.17 MB / 336.7 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001349/0.001349, allocations: 67.91 kB / 470 MB, free: 13.69 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3306/0.3319, allocations: 60.81 MB / 0.5184 GB, free: 3.277 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.00149/0.3335, allocations: 491.1 kB / 0.5189 GB, free: 2.988 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006042/0.3341, allocations: 259 kB / 0.5191 GB, free: 2.832 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.768e-05/0.3341, allocations: 0 / 0.5191 GB, free: 2.832 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.766e-05/0.3342, allocations: 1.062 kB / 0.5191 GB, free: 2.832 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.181e-06/0.3342, allocations: 4 kB / 0.5191 GB, free: 2.828 MB / 382.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.0003554/0.3345, allocations: 53.28 kB / 0.5192 GB, free: 2.801 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.825e-05/0.3346, allocations: 0.9688 kB / 0.5192 GB, free: 2.801 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.442e-05/0.3347, allocations: 6.594 kB / 0.5192 GB, free: 2.797 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.544e-05/0.3347, allocations: 0 / 0.5192 GB, free: 2.797 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.05e-05/0.3347, allocations: 4.953 kB / 0.5192 GB, free: 2.793 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.596e-06/0.3347, allocations: 0 / 0.5192 GB, free: 2.793 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001546/0.3349, allocations: 66.03 kB / 0.5192 GB, free: 2.77 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.975e-06/0.3349, allocations: 1.281 kB / 0.5192 GB, free: 2.77 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.072e-05/0.3349, allocations: 0 / 0.5192 GB, free: 2.77 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001311/0.3351, allocations: 57.08 kB / 0.5193 GB, free: 2.75 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.349e-06/0.3351, allocations: 5.219 kB / 0.5193 GB, free: 2.746 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3351, allocations: 0 / 0.5193 GB, free: 2.746 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.879e-06/0.3351, allocations: 0 / 0.5193 GB, free: 2.746 MB / 382.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.0002629/0.3354, allocations: 358 kB / 0.5196 GB, free: 2.355 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.812e-05/0.3354, allocations: 10.5 kB / 0.5197 GB, free: 2.355 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.084e-05/0.3354, allocations: 31.41 kB / 0.5197 GB, free: 2.316 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.579e-05/0.3355, allocations: 2.156 kB / 0.5197 GB, free: 2.316 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.863e-05/0.3355, allocations: 169.7 kB / 0.5198 GB, free: 2.113 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.806e-06/0.3355, allocations: 4.375 kB / 0.5199 GB, free: 2.109 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.759e-06/0.3355, allocations: 5.5 kB / 0.5199 GB, free: 2.105 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.467e-05/0.3356, allocations: 29.88 kB / 0.5199 GB, free: 2.074 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.605e-06/0.3356, allocations: 5.156 kB / 0.5199 GB, free: 2.07 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.853e-06/0.3357, allocations: 0 / 0.5199 GB, free: 2.07 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.057e-06/0.3357, allocations: 0 / 0.5199 GB, free: 2.07 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.779e-05/0.3357, allocations: 2.969 kB / 0.5199 GB, free: 2.07 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.628e-05/0.3358, allocations: 144.2 kB / 0.52 GB, free: 1.883 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 2.952e-05/0.3358, allocations: 20.5 kB / 0.5201 GB, free: 1.855 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.248e-05/0.3358, allocations: 14.77 kB / 0.5201 GB, free: 1.84 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.087e-06/0.3358, allocations: 5.219 kB / 0.5201 GB, free: 1.836 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.106e-05/0.3359, allocations: 58.12 kB / 0.5201 GB, free: 1.766 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 9.52e-07/0.3359, allocations: 0 / 0.5201 GB, free: 1.766 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001523/0.336, allocations: 64.25 kB / 0.5202 GB, free: 1.699 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.616e-05/0.3361, allocations: 78.98 kB / 0.5203 GB, free: 1.605 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.621e-05/0.3361, allocations: 89.86 kB / 0.5203 GB, free: 1.508 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.661e-06/0.3361, allocations: 26.86 kB / 0.5204 GB, free: 1.477 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.037e-05/0.3361, allocations: 88.8 kB / 0.5205 GB, free: 1.387 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.852e-05/0.3361, allocations: 1.156 kB / 0.5205 GB, free: 1.387 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.309e-05/0.3362, allocations: 16.61 kB / 0.5205 GB, free: 1.367 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.866e-05/0.3362, allocations: 311.5 kB / 0.5208 GB, free: 1.055 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.357e-06/0.3362, allocations: 1.156 kB / 0.5208 GB, free: 1.055 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.592e-06/0.3362, allocations: 2.031 kB / 0.5208 GB, free: 1.055 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.191e-05/0.3363, allocations: 64.27 kB / 0.5208 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.3363, allocations: 4 kB / 0.5208 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.353e-05/0.3363, allocations: 63.72 kB / 0.5209 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.193e-05/0.3364, allocations: 32.8 kB / 0.5209 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.3364, allocations: 5.531 kB / 0.5209 GB, free: 0.875 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.541e-05/0.3364, allocations: 0 / 0.5209 GB, free: 0.875 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.653e-06/0.3364, allocations: 0.7031 kB / 0.5209 GB, free: 0.875 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/0.3364, allocations: 0 / 0.5209 GB, free: 0.875 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.425e-05/0.3364, allocations: 4.625 kB / 0.5209 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.771e-06/0.3364, allocations: 1.281 kB / 0.5209 GB, free: 0.8711 MB / 382.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 4.802e-05/0.3365, allocations: 139.5 kB / 0.5211 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.676e-06/0.3365, allocations: 5.109 kB / 0.5211 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.12e-05/0.3365, allocations: 15.61 kB / 0.5211 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-06/0.3365, allocations: 1.188 kB / 0.5211 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.3365, allocations: 0.7969 kB / 0.5211 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.265e-06/0.3366, allocations: 0 / 0.5211 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.171e-05/0.3366, allocations: 150 kB / 0.5212 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.3366, allocations: 0 / 0.5212 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.162e-06/0.3366, allocations: 0.7031 kB / 0.5212 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.3366, allocations: 1.094 kB / 0.5212 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.762e-06/0.3366, allocations: 7.938 kB / 0.5213 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.3366, allocations: 1.906 kB / 0.5213 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.3366, allocations: 0 / 0.5213 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.818e-05/0.3367, allocations: 88.72 kB / 0.5213 GB, free: 416 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.627e-05/0.3367, allocations: 82.72 kB / 0.5214 GB, free: 316 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.289e-05/0.3368, allocations: 5.953 kB / 0.5214 GB, free: 312 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.345e-06/0.3368, allocations: 0 / 0.5214 GB, free: 312 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.071e-05/0.3368, allocations: 9.031 kB / 0.5214 GB, free: 304 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.847e-06/0.3368, allocations: 1.531 kB / 0.5214 GB, free: 304 kB / 382.1 MB Notification: Performance of sorting global known variables: time 1.205e-05/0.3368, allocations: 79.22 kB / 0.5215 GB, free: 224 kB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3368, allocations: 0 / 0.5215 GB, free: 224 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.000237/0.3371, allocations: 26 kB / 0.5215 GB, free: 216 kB / 382.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.0008127/0.3379, allocations: 0.8002 MB / 0.5223 GB, free: 15.52 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001067/0.338, allocations: 62.16 kB / 0.5224 GB, free: 15.45 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.338, allocations: 0 / 0.5224 GB, free: 15.45 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.113e-05/0.3381, allocations: 58.91 kB / 0.5224 GB, free: 15.38 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001247/0.3382, allocations: 3.422 kB / 0.5224 GB, free: 15.38 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003165/0.3385, allocations: 110.4 kB / 0.5225 GB, free: 15.25 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002398/0.3388, allocations: 0.676 MB / 0.5232 GB, free: 14.55 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.132e-06/0.3388, allocations: 0 / 0.5232 GB, free: 14.55 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.408e-05/0.3388, allocations: 12.75 kB / 0.5232 GB, free: 14.54 MB / 398.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3388, allocations: 0 / 0.5232 GB, free: 14.54 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01877/0.3576, allocations: 1.622 MB / 0.5248 GB, free: 14.06 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.858/8.215, allocations: 10.02 kB / 0.5248 GB, free: 14.05 MB / 398.1 MB (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) 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) Reference file matches