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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001282/0.001282, allocations: 116.8 kB / 18.45 MB, free: 4.594 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001303/0.001303, allocations: 189.3 kB / 21.39 MB, free: 1.664 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.423/1.423, allocations: 222.9 MB / 247.1 MB, free: 4.191 MB / 190.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.3753/0.3753, allocations: 44.25 MB / 343.5 MB, free: 7.57 MB / 270.1 MB " [Timeout remaining time 179] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001997/0.001998, allocations: 67.03 kB / 478.8 MB, free: 24.88 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.1155, allocations: 60.83 MB / 0.527 GB, free: 13.68 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001713/0.1173, allocations: 485 kB / 0.5274 GB, free: 13.2 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006874/0.118, allocations: 259.6 kB / 0.5277 GB, free: 12.95 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.803e-05/0.118, allocations: 0 / 0.5277 GB, free: 12.95 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.446e-05/0.118, allocations: 0 / 0.5277 GB, free: 12.95 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.582e-06/0.1181, allocations: 0 / 0.5277 GB, free: 12.95 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.0003879/0.1185, allocations: 55.8 kB / 0.5277 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.1e-05/0.1185, allocations: 4 kB / 0.5278 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.11e-05/0.1186, allocations: 0 / 0.5278 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.14e-05/0.1186, allocations: 3.938 kB / 0.5278 GB, free: 12.88 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.51e-05/0.1186, allocations: 7.938 kB / 0.5278 GB, free: 12.88 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.804e-06/0.1187, allocations: 0 / 0.5278 GB, free: 12.88 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001728/0.1188, allocations: 63.95 kB / 0.5278 GB, free: 12.81 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.924e-06/0.1188, allocations: 4 kB / 0.5278 GB, free: 12.81 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.324e-05/0.1189, allocations: 3.984 kB / 0.5278 GB, free: 12.8 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000169/0.1191, allocations: 52.16 kB / 0.5279 GB, free: 12.75 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.1191, allocations: 7.938 kB / 0.5279 GB, free: 12.75 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.1191, allocations: 0 / 0.5279 GB, free: 12.75 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.739e-06/0.1191, allocations: 0 / 0.5279 GB, free: 12.75 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.0004345/0.1195, allocations: 357 kB / 0.5282 GB, free: 12.34 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.726e-05/0.1196, allocations: 8.031 kB / 0.5282 GB, free: 12.33 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.442e-05/0.1196, allocations: 30.75 kB / 0.5283 GB, free: 12.29 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.198e-05/0.1197, allocations: 12.92 kB / 0.5283 GB, free: 12.28 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001287/0.1198, allocations: 160.4 kB / 0.5284 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.228e-05/0.1198, allocations: 4.375 kB / 0.5284 GB, free: 12.08 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.288e-05/0.1198, allocations: 384 / 0.5284 GB, free: 12.08 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001127/0.12, allocations: 30.27 kB / 0.5285 GB, free: 12.05 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.211e-05/0.12, allocations: 3.938 kB / 0.5285 GB, free: 12.04 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.275e-06/0.12, allocations: 0 / 0.5285 GB, free: 12.04 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.12, allocations: 0 / 0.5285 GB, free: 12.04 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.103e-05/0.12, allocations: 3.938 kB / 0.5285 GB, free: 12.04 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001944/0.1202, allocations: 153.7 kB / 0.5286 GB, free: 11.84 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.201e-05/0.1203, allocations: 14.58 kB / 0.5286 GB, free: 11.82 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.019e-05/0.1203, allocations: 8.859 kB / 0.5286 GB, free: 11.8 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.856e-06/0.1203, allocations: 0 / 0.5286 GB, free: 11.8 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.979e-05/0.1204, allocations: 60.36 kB / 0.5287 GB, free: 11.73 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.332e-06/0.1204, allocations: 0 / 0.5287 GB, free: 11.73 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001955/0.1206, allocations: 71.27 kB / 0.5288 GB, free: 11.65 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.763e-05/0.1207, allocations: 81.23 kB / 0.5288 GB, free: 11.55 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.029e-05/0.1207, allocations: 89.86 kB / 0.5289 GB, free: 11.45 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.485e-05/0.1207, allocations: 25.7 kB / 0.529 GB, free: 11.42 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.659e-05/0.1208, allocations: 84.14 kB / 0.529 GB, free: 11.34 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.035e-05/0.1208, allocations: 0 / 0.529 GB, free: 11.34 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.224e-05/0.1209, allocations: 13.72 kB / 0.529 GB, free: 11.32 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000156/0.121, allocations: 310.8 kB / 0.5293 GB, free: 11 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.261e-05/0.121, allocations: 4 kB / 0.5293 GB, free: 11 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.729e-06/0.1211, allocations: 11.98 kB / 0.5294 GB, free: 10.99 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.49e-05/0.1211, allocations: 56.27 kB / 0.5294 GB, free: 10.92 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.468e-06/0.1211, allocations: 4 kB / 0.5294 GB, free: 10.91 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.037e-05/0.1212, allocations: 67.28 kB / 0.5295 GB, free: 10.84 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.75e-05/0.1213, allocations: 33.7 kB / 0.5295 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.066e-05/0.1213, allocations: 7.922 kB / 0.5295 GB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.531e-05/0.1213, allocations: 3.938 kB / 0.5295 GB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.72e-07/0.1213, allocations: 0 / 0.5295 GB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.909e-06/0.1213, allocations: 96 / 0.5295 GB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.643e-05/0.1214, allocations: 4 kB / 0.5295 GB, free: 10.78 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.133e-06/0.1214, allocations: 0 / 0.5295 GB, free: 10.78 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.0001073/0.1215, allocations: 135.5 kB / 0.5297 GB, free: 10.63 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.056e-05/0.1215, allocations: 3.953 kB / 0.5297 GB, free: 10.63 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.229e-05/0.1215, allocations: 7.062 kB / 0.5297 GB, free: 10.62 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.397e-06/0.1215, allocations: 4 kB / 0.5297 GB, free: 10.62 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.1215, allocations: 0 / 0.5297 GB, free: 10.62 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.1215, allocations: 0 / 0.5297 GB, free: 10.62 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001146/0.1217, allocations: 153.7 kB / 0.5298 GB, free: 10.42 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.1217, allocations: 4 kB / 0.5298 GB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.11e-07/0.1217, allocations: 0 / 0.5298 GB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.1217, allocations: 0 / 0.5298 GB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.14e-05/0.1217, allocations: 7.938 kB / 0.5298 GB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.1217, allocations: 0 / 0.5298 GB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.1217, allocations: 0 / 0.5298 GB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001115/0.1218, allocations: 94.77 kB / 0.5299 GB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.568e-05/0.1219, allocations: 85.08 kB / 0.53 GB, free: 10.19 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.556e-05/0.1219, allocations: 7.922 kB / 0.53 GB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.759e-06/0.1219, allocations: 0 / 0.53 GB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.508e-05/0.122, allocations: 0 / 0.53 GB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.512e-06/0.122, allocations: 7.984 kB / 0.53 GB, free: 10.17 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.599e-05/0.122, allocations: 75.28 kB / 0.5301 GB, free: 10.1 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.122, allocations: 0 / 0.5301 GB, free: 10.1 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002258/0.1222, allocations: 23.94 kB / 0.5301 GB, free: 10.07 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.001044/0.1233, allocations: 0.8031 MB / 0.5309 GB, free: 9.305 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001238/0.1234, allocations: 63.41 kB / 0.531 GB, free: 9.23 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.1234, allocations: 0 / 0.531 GB, free: 9.23 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.641e-05/0.1235, allocations: 59.39 kB / 0.531 GB, free: 9.16 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001323/0.1236, allocations: 2.5 kB / 0.531 GB, free: 9.16 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003299/0.124, allocations: 118.8 kB / 0.5311 GB, free: 9.004 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003624/0.1243, allocations: 0.6766 MB / 0.5318 GB, free: 8.301 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.312e-06/0.1244, allocations: 0 / 0.5318 GB, free: 8.301 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.739e-05/0.1244, allocations: 7.438 kB / 0.5318 GB, free: 8.293 MB / 398.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1244, allocations: 0 / 0.5318 GB, free: 8.293 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02454/0.1489, allocations: 1.617 MB / 0.5334 GB, free: 6.754 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.962/8.111, allocations: 10.91 kB / 0.5334 GB, free: 6.746 MB / 398.1 MB " [Timeout remaining time 652] (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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 11.05931043298915]