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.0008934/0.0008934, allocations: 97.8 kB / 17.35 MB, free: 6.367 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.001158/0.001158, allocations: 172.3 kB / 18.25 MB, free: 5.527 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.291/1.291, allocations: 223.3 MB / 242.3 MB, free: 208 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1859/0.1859, allocations: 44.24 MB / 337.7 MB, free: 2.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003198/0.0003199, allocations: 8.281 kB / 410.4 MB, free: 27.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.1202, allocations: 61.93 MB / 472.4 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.0008587/0.1211, allocations: 207 kB / 472.6 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007697/0.1219, allocations: 253 kB / 472.8 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.28e-05/0.122, allocations: 0 / 472.8 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.77e-05/0.122, allocations: 3.938 kB / 472.8 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.681e-06/0.122, allocations: 0 / 472.8 MB, free: 12.82 MB / 350.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.1224, allocations: 39.97 kB / 472.8 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.252e-05/0.1224, allocations: 0 / 472.8 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.677e-05/0.1225, allocations: 0 / 472.8 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.082e-05/0.1225, allocations: 7.922 kB / 472.9 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.893e-05/0.1226, allocations: 7.938 kB / 472.9 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.111e-05/0.1226, allocations: 0 / 472.9 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001621/0.1227, allocations: 67.95 kB / 472.9 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.049e-05/0.1228, allocations: 3.984 kB / 472.9 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.422e-05/0.1228, allocations: 25.7 kB / 473 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001587/0.123, allocations: 47.94 kB / 473 MB, free: 12.62 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.718e-06/0.123, allocations: 3.984 kB / 473 MB, free: 12.61 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.123, allocations: 0 / 473 MB, free: 12.61 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.729e-06/0.123, allocations: 0 / 473 MB, free: 12.61 MB / 350.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.0003588/0.1234, allocations: 353.3 kB / 473.3 MB, free: 12.21 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.885e-05/0.1234, allocations: 16.02 kB / 473.4 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.221e-05/0.1235, allocations: 30.75 kB / 473.4 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.846e-05/0.1235, allocations: 4.938 kB / 473.4 MB, free: 12.15 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.639e-05/0.1236, allocations: 160.4 kB / 473.6 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.007e-06/0.1236, allocations: 4.312 kB / 473.6 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.015e-05/0.1236, allocations: 384 / 473.6 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001031/0.1238, allocations: 30.27 kB / 473.6 MB, free: 11.92 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.1238, allocations: 3.938 kB / 473.6 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.304e-06/0.1238, allocations: 0 / 473.6 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.1238, allocations: 0 / 473.6 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.078e-05/0.1238, allocations: 7.938 kB / 473.6 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001357/0.124, allocations: 153.7 kB / 473.8 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.507e-05/0.124, allocations: 14.58 kB / 473.8 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.539e-05/0.124, allocations: 8.953 kB / 473.8 MB, free: 11.67 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.753e-06/0.124, allocations: 0 / 473.8 MB, free: 11.67 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.24e-05/0.1241, allocations: 56.27 kB / 473.8 MB, free: 11.6 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.1241, allocations: 0 / 473.8 MB, free: 11.6 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001785/0.1243, allocations: 75.36 kB / 473.9 MB, free: 11.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.903e-05/0.1244, allocations: 81.14 kB / 474 MB, free: 11.42 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.02e-05/0.1244, allocations: 89.86 kB / 474.1 MB, free: 11.32 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.427e-05/0.1244, allocations: 29.7 kB / 474.1 MB, free: 11.29 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.504e-05/0.1245, allocations: 80.14 kB / 474.2 MB, free: 11.2 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.015e-05/0.1245, allocations: 0 / 474.2 MB, free: 11.2 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.284e-05/0.1245, allocations: 9.719 kB / 474.2 MB, free: 11.19 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001132/0.1246, allocations: 310.8 kB / 474.5 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.147e-05/0.1246, allocations: 7.984 kB / 474.5 MB, free: 10.87 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.895e-06/0.1247, allocations: 8 kB / 474.5 MB, free: 10.86 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.844e-05/0.1247, allocations: 56.27 kB / 474.6 MB, free: 10.79 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.941e-06/0.1247, allocations: 4 kB / 474.6 MB, free: 10.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.666e-05/0.1248, allocations: 59.34 kB / 474.6 MB, free: 10.71 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.331e-05/0.1248, allocations: 33.7 kB / 474.7 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/0.1249, allocations: 7.922 kB / 474.7 MB, free: 10.67 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.499e-05/0.1249, allocations: 0 / 474.7 MB, free: 10.67 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.223e-06/0.1249, allocations: 3.938 kB / 474.7 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.917e-06/0.1249, allocations: 0 / 474.7 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.697e-05/0.1249, allocations: 8.094 kB / 474.7 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.923e-06/0.1249, allocations: 0 / 474.7 MB, free: 10.66 MB / 350.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 9.832e-05/0.125, allocations: 139.5 kB / 474.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.989e-06/0.1251, allocations: 3.984 kB / 474.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.396e-05/0.1251, allocations: 11.02 kB / 474.8 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.1251, allocations: 0 / 474.8 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.1251, allocations: 4 kB / 474.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.374e-06/0.1251, allocations: 0 / 474.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.655e-05/0.1252, allocations: 145.7 kB / 475 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.1252, allocations: 4 kB / 475 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.71e-07/0.1252, allocations: 0 / 475 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.956e-06/0.1252, allocations: 3.938 kB / 475 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.878e-06/0.1252, allocations: 7.938 kB / 475 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.1252, allocations: 0 / 475 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.1252, allocations: 0 / 475 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001191/0.1254, allocations: 94.77 kB / 475.1 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.677e-05/0.1254, allocations: 81.33 kB / 475.2 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.586e-05/0.1254, allocations: 7.938 kB / 475.2 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.348e-06/0.1255, allocations: 0 / 475.2 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.188e-05/0.1255, allocations: 0 / 475.2 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.162e-06/0.1255, allocations: 7.984 kB / 475.2 MB, free: 10.05 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.629e-05/0.1255, allocations: 75.28 kB / 475.2 MB, free: 9.973 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1255, allocations: 0 / 475.2 MB, free: 9.973 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002266/0.1258, allocations: 20 kB / 475.3 MB, free: 9.953 MB / 350.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.0008701/0.1266, allocations: 0.8159 MB / 476.1 MB, free: 9.176 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.538e-05/0.1267, allocations: 59.41 kB / 476.1 MB, free: 9.105 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.1267, allocations: 0 / 476.1 MB, free: 9.105 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.199e-05/0.1268, allocations: 59.39 kB / 476.2 MB, free: 9.035 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001176/0.1269, allocations: 0 / 476.2 MB, free: 9.035 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003053/0.1272, allocations: 124.5 kB / 476.3 MB, free: 8.871 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002525/0.1275, allocations: 0.6731 MB / 477 MB, free: 8.172 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.891e-06/0.1275, allocations: 0 / 477 MB, free: 8.172 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.298e-05/0.1275, allocations: 7.438 kB / 477 MB, free: 8.164 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1275, allocations: 3.938 kB / 477 MB, free: 8.16 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01138/0.1389, allocations: 1.405 MB / 478.4 MB, free: 6.852 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002252/0.1392, allocations: 238.8 kB / 478.6 MB, free: 6.594 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.928/2.068, allocations: 0 / 478.6 MB, free: 6.594 MB / 350.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Utilities_TestInternal_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 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.mat","/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