Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestInternal,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestInternal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestInternal,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestInternal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001178/0.001178, allocations: 103.7 kB / 17.63 MB, free: 5.543 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001301/0.001301, allocations: 208.6 kB / 18.58 MB, free: 4.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.436/1.436, allocations: 227.4 MB / 246.8 MB, free: 10.6 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.21/0.21, allocations: 46.11 MB / 344.1 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001424/0.001425, allocations: 74.97 kB / 417.7 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1151/0.1165, allocations: 62.43 MB / 480.1 MB, free: 5.211 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001814/0.1184, allocations: 486.2 kB / 480.6 MB, free: 4.734 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006281/0.119, allocations: 261.9 kB / 480.8 MB, free: 4.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.189e-05/0.1191, allocations: 0 / 480.8 MB, free: 4.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.413e-05/0.1191, allocations: 0 / 480.8 MB, free: 4.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.763e-06/0.1191, allocations: 4 kB / 480.8 MB, free: 4.477 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:398:3-453: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.0003749/0.1195, allocations: 55.77 kB / 480.9 MB, free: 4.422 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.322e-05/0.1196, allocations: 3.938 kB / 480.9 MB, free: 4.418 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.945e-05/0.1196, allocations: 0 / 480.9 MB, free: 4.418 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.77e-05/0.1197, allocations: 4 kB / 480.9 MB, free: 4.414 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.271e-05/0.1197, allocations: 3.984 kB / 480.9 MB, free: 4.41 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.766e-06/0.1197, allocations: 0 / 480.9 MB, free: 4.41 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001492/0.1199, allocations: 59.95 kB / 481 MB, free: 4.352 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.616e-06/0.1199, allocations: 4 kB / 481 MB, free: 4.348 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.062e-05/0.1199, allocations: 0 / 481 MB, free: 4.348 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001377/0.12, allocations: 59.92 kB / 481 MB, free: 4.289 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.12, allocations: 0 / 481 MB, free: 4.289 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1201, allocations: 0 / 481 MB, free: 4.289 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.362e-06/0.1201, allocations: 0 / 481 MB, free: 4.289 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.0003189/0.1204, allocations: 361.2 kB / 481.4 MB, free: 3.879 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.1204, allocations: 8.031 kB / 481.4 MB, free: 3.871 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.336e-05/0.1205, allocations: 38.73 kB / 481.4 MB, free: 3.824 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.448e-05/0.1205, allocations: 4.938 kB / 481.4 MB, free: 3.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.884e-05/0.1206, allocations: 164.3 kB / 481.6 MB, free: 3.621 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.011e-05/0.1206, allocations: 384 / 481.6 MB, free: 3.621 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.372e-06/0.1206, allocations: 384 / 481.6 MB, free: 3.621 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.867e-05/0.1207, allocations: 34.2 kB / 481.6 MB, free: 3.582 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.024e-06/0.1207, allocations: 3.938 kB / 481.6 MB, free: 3.578 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.352e-06/0.1207, allocations: 0 / 481.6 MB, free: 3.578 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.897e-06/0.1207, allocations: 0 / 481.6 MB, free: 3.578 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.562e-05/0.1208, allocations: 0 / 481.6 MB, free: 3.578 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001156/0.1209, allocations: 157.7 kB / 481.8 MB, free: 3.375 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.403e-05/0.1209, allocations: 14.58 kB / 481.8 MB, free: 3.352 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.361e-05/0.1209, allocations: 4.953 kB / 481.8 MB, free: 3.344 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.499e-06/0.121, allocations: 4 kB / 481.8 MB, free: 3.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.307e-05/0.121, allocations: 56.27 kB / 481.9 MB, free: 3.27 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.121, allocations: 3.938 kB / 481.9 MB, free: 3.266 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001466/0.1212, allocations: 71.33 kB / 481.9 MB, free: 3.184 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.081e-05/0.1212, allocations: 81.23 kB / 482 MB, free: 3.086 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.53e-05/0.1213, allocations: 89.86 kB / 482.1 MB, free: 2.988 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.12e-05/0.1213, allocations: 25.7 kB / 482.1 MB, free: 2.957 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.137e-05/0.1213, allocations: 80.14 kB / 482.2 MB, free: 2.875 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.673e-05/0.1213, allocations: 4 kB / 482.2 MB, free: 2.871 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.675e-05/0.1214, allocations: 9.719 kB / 482.2 MB, free: 2.855 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001079/0.1215, allocations: 310.8 kB / 482.5 MB, free: 2.543 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.421e-05/0.1215, allocations: 11.92 kB / 482.5 MB, free: 2.531 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.203e-06/0.1215, allocations: 8 kB / 482.5 MB, free: 2.523 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.546e-05/0.1216, allocations: 68.2 kB / 482.6 MB, free: 2.441 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.1216, allocations: 0 / 482.6 MB, free: 2.441 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.417e-05/0.1216, allocations: 55.41 kB / 482.7 MB, free: 2.375 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.126e-05/0.1217, allocations: 37.69 kB / 482.7 MB, free: 2.332 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.1217, allocations: 3.938 kB / 482.7 MB, free: 2.328 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.688e-06/0.1217, allocations: 0 / 482.7 MB, free: 2.328 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.22e-07/0.1217, allocations: 0 / 482.7 MB, free: 2.328 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.238e-06/0.1217, allocations: 0 / 482.7 MB, free: 2.328 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.46e-05/0.1217, allocations: 4.094 kB / 482.7 MB, free: 2.324 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.273e-06/0.1217, allocations: 4 kB / 482.7 MB, free: 2.32 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 7.367e-05/0.1218, allocations: 135.5 kB / 482.8 MB, free: 2.172 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.226e-06/0.1218, allocations: 0 / 482.8 MB, free: 2.172 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.193e-05/0.1219, allocations: 11.06 kB / 482.9 MB, free: 2.164 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-06/0.1219, allocations: 0 / 482.9 MB, free: 2.164 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.1219, allocations: 0 / 482.9 MB, free: 2.164 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.874e-06/0.1219, allocations: 0 / 482.9 MB, free: 2.164 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.973e-05/0.122, allocations: 145.7 kB / 483 MB, free: 1.973 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.122, allocations: 4 kB / 483 MB, free: 1.969 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.833e-06/0.122, allocations: 3.938 kB / 483 MB, free: 1.965 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.122, allocations: 7.938 kB / 483 MB, free: 1.957 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.204e-06/0.122, allocations: 3.938 kB / 483 MB, free: 1.953 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.122, allocations: 0 / 483 MB, free: 1.953 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.122, allocations: 0 / 483 MB, free: 1.953 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.317e-05/0.1221, allocations: 90.83 kB / 483.1 MB, free: 1.84 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.095e-05/0.1221, allocations: 77.39 kB / 483.2 MB, free: 1.746 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.446e-05/0.1222, allocations: 11.95 kB / 483.2 MB, free: 1.734 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.022e-05/0.1222, allocations: 0 / 483.2 MB, free: 1.734 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.204e-05/0.1222, allocations: 3.984 kB / 483.2 MB, free: 1.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.905e-06/0.1222, allocations: 4 kB / 483.2 MB, free: 1.727 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.344e-05/0.1222, allocations: 75.28 kB / 483.3 MB, free: 1.652 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1222, allocations: 0 / 483.3 MB, free: 1.652 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002394/0.1225, allocations: 24 kB / 483.3 MB, free: 1.629 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.0007689/0.1232, allocations: 0.8132 MB / 484.1 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001014/0.1234, allocations: 59.41 kB / 484.2 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1234, allocations: 0 / 484.2 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.874e-05/0.1234, allocations: 59.39 kB / 484.2 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001268/0.1235, allocations: 0 / 484.2 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003267/0.1239, allocations: 126.6 kB / 484.4 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002559/0.1241, allocations: 0.669 MB / 485 MB, free: 15.84 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.385e-06/0.1242, allocations: 0 / 485 MB, free: 15.84 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.514e-05/0.1242, allocations: 7.438 kB / 485 MB, free: 15.83 MB / 366.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1242, allocations: 0 / 485 MB, free: 15.83 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01717/0.1414, allocations: 1.61 MB / 486.6 MB, free: 14.27 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.605/7.747, allocations: 2.188 kB / 486.6 MB, free: 14.27 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Utilities_TestInternal.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Utilities.TestInternal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches