Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.TestFiles,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Utilities_TestFiles",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.001175/0.001175, allocations: 97.25 kB / 16.26 MB, free: 5.93 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.001154/0.001154, allocations: 190.1 kB / 17.2 MB, free: 5.574 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.457/1.457, allocations: 205.1 MB / 223.1 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2164/0.2164, allocations: 43.52 MB / 313.9 MB, free: 0.5273 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001424/0.001424, allocations: 73.3 kB / 382.8 MB, free: 56.68 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08349/0.08493, allocations: 57.79 MB / 440.6 MB, free: 6.816 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001597/0.08658, allocations: 497.4 kB / 441.1 MB, free: 6.324 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001552/0.08815, allocations: 1.261 MB / 442.4 MB, free: 5.059 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.936e-05/0.0882, allocations: 4 kB / 442.4 MB, free: 5.055 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.979e-05/0.08824, allocations: 3.938 kB / 442.4 MB, free: 5.051 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001886/0.08843, allocations: 4 kB / 442.4 MB, free: 5.047 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001107/0.08955, allocations: 254.5 kB / 442.6 MB, free: 4.801 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 5.581e-05/0.08961, allocations: 12 kB / 442.6 MB, free: 4.789 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.447e-05/0.08966, allocations: 0 / 442.6 MB, free: 4.789 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.418e-05/0.0897, allocations: 3.938 kB / 442.6 MB, free: 4.785 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.117e-05/0.08979, allocations: 15.92 kB / 442.7 MB, free: 4.77 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.097e-05/0.08981, allocations: 0 / 442.7 MB, free: 4.77 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002898/0.09272, allocations: 0.665 MB / 443.3 MB, free: 4.188 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.849e-06/0.09274, allocations: 0 / 443.3 MB, free: 4.188 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.019e-05/0.09276, allocations: 0 / 443.3 MB, free: 4.188 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002551/0.09302, allocations: 183.6 kB / 443.5 MB, free: 4.008 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.09304, allocations: 0 / 443.5 MB, free: 4.008 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.09304, allocations: 0 / 443.5 MB, free: 4.008 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.66e-06/0.09305, allocations: 0 / 443.5 MB, free: 4.008 MB / 318.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.0003671/0.09342, allocations: 396.5 kB / 443.9 MB, free: 3.57 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.162e-05/0.09347, allocations: 11.89 kB / 443.9 MB, free: 3.559 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.31e-05/0.0935, allocations: 34.75 kB / 443.9 MB, free: 3.516 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.409e-05/0.09353, allocations: 0.9375 kB / 443.9 MB, free: 3.516 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.499e-05/0.0936, allocations: 168.4 kB / 444.1 MB, free: 3.312 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.186e-05/0.09362, allocations: 384 / 444.1 MB, free: 3.312 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.394e-06/0.09363, allocations: 384 / 444.1 MB, free: 3.312 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.819e-05/0.09372, allocations: 37.62 kB / 444.1 MB, free: 3.27 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.495e-06/0.09373, allocations: 0 / 444.1 MB, free: 3.27 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.598e-06/0.09374, allocations: 0 / 444.1 MB, free: 3.27 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.53e-06/0.09375, allocations: 3.938 kB / 444.1 MB, free: 3.266 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.515e-05/0.09377, allocations: 4 kB / 444.1 MB, free: 3.262 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001009/0.09388, allocations: 145.7 kB / 444.3 MB, free: 3.07 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 2.815e-05/0.09391, allocations: 18.58 kB / 444.3 MB, free: 3.043 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.517e-05/0.09393, allocations: 12.94 kB / 444.3 MB, free: 3.027 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.634e-06/0.09395, allocations: 3.938 kB / 444.3 MB, free: 3.023 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.41e-05/0.09398, allocations: 56.27 kB / 444.4 MB, free: 2.953 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 1.793e-06/0.09398, allocations: 4 kB / 444.4 MB, free: 2.949 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001472/0.09413, allocations: 67.34 kB / 444.4 MB, free: 2.871 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.286e-05/0.09417, allocations: 77.11 kB / 444.5 MB, free: 2.777 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.722e-05/0.09423, allocations: 97.84 kB / 444.6 MB, free: 2.672 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.002e-06/0.09424, allocations: 29.7 kB / 444.6 MB, free: 2.637 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.203e-05/0.09426, allocations: 80.14 kB / 444.7 MB, free: 2.555 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.902e-05/0.09428, allocations: 3.906 kB / 444.7 MB, free: 2.551 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.298e-05/0.09431, allocations: 13.97 kB / 444.7 MB, free: 2.531 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4e-05/0.09435, allocations: 318.8 kB / 445 MB, free: 2.211 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.726e-06/0.09437, allocations: 0 / 445 MB, free: 2.211 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.192e-06/0.09438, allocations: 0 / 445 MB, free: 2.211 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.942e-05/0.09441, allocations: 68.19 kB / 445.1 MB, free: 2.129 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/0.09442, allocations: 0 / 445.1 MB, free: 2.129 MB / 318.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.252e-05/0.09447, allocations: 67.28 kB / 445.2 MB, free: 2.051 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.532e-05/0.09451, allocations: 33.7 kB / 445.2 MB, free: 2.012 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.09451, allocations: 0 / 445.2 MB, free: 2.012 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.515e-05/0.09454, allocations: 4.094 kB / 445.2 MB, free: 2.008 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.124e-06/0.09454, allocations: 7.922 kB / 445.2 MB, free: 2 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.769e-06/0.09455, allocations: 0 / 445.2 MB, free: 2 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.673e-05/0.09457, allocations: 4 kB / 445.2 MB, free: 1.996 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.985e-06/0.09459, allocations: 8 kB / 445.2 MB, free: 1.988 MB / 318.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 5.78e-05/0.09465, allocations: 135.5 kB / 445.4 MB, free: 1.84 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.177e-06/0.09466, allocations: 3.938 kB / 445.4 MB, free: 1.836 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.09e-05/0.09468, allocations: 7.125 kB / 445.4 MB, free: 1.828 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.09468, allocations: 3.984 kB / 445.4 MB, free: 1.824 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.09469, allocations: 4 kB / 445.4 MB, free: 1.82 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.0947, allocations: 0 / 445.4 MB, free: 1.82 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.373e-05/0.09476, allocations: 145.7 kB / 445.5 MB, free: 1.629 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.09477, allocations: 7.938 kB / 445.5 MB, free: 1.621 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.61e-07/0.09477, allocations: 0 / 445.5 MB, free: 1.621 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.012e-06/0.09478, allocations: 0 / 445.5 MB, free: 1.621 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.851e-06/0.09479, allocations: 0 / 445.5 MB, free: 1.621 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.09479, allocations: 3.938 kB / 445.5 MB, free: 1.617 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.0948, allocations: 0 / 445.5 MB, free: 1.617 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.819e-05/0.09487, allocations: 94.83 kB / 445.6 MB, free: 1.5 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.884e-05/0.0949, allocations: 85.05 kB / 445.7 MB, free: 1.398 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.576e-05/0.09492, allocations: 4 kB / 445.7 MB, free: 1.395 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.107e-05/0.09493, allocations: 0 / 445.7 MB, free: 1.395 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.257e-05/0.09495, allocations: 3.984 kB / 445.7 MB, free: 1.391 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.184e-06/0.09496, allocations: 0 / 445.7 MB, free: 1.391 MB / 318.1 MB Notification: Performance of sorting global known variables: time 2.075e-05/0.09498, allocations: 79.28 kB / 445.8 MB, free: 1.312 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09499, allocations: 0 / 445.8 MB, free: 1.312 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000335/0.09533, allocations: 64.11 kB / 445.9 MB, free: 1.25 MB / 318.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.0007155/0.09605, allocations: 0.8646 MB / 446.7 MB, free: 372 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 9.822e-05/0.09616, allocations: 59.41 kB / 446.8 MB, free: 300 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.09617, allocations: 0 / 446.8 MB, free: 300 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 2.399e-05/0.0962, allocations: 55.41 kB / 446.8 MB, free: 232 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001362/0.09634, allocations: 7.938 kB / 446.8 MB, free: 224 kB / 318.1 MB Warning: Could not resolve URI ("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/Resources/Data") at compile-time; copying all loaded packages into the FMU Warning: Could not resolve URI ("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/Resources/Data/ReadStreamTestFile.txt") at compile-time; copying all loaded packages into the FMU Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004192/0.09677, allocations: 146.7 kB / 447 MB, free: 36 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002941/0.09707, allocations: 0.669 MB / 447.7 MB, free: 15.34 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.277e-05/0.09709, allocations: 7.938 kB / 447.7 MB, free: 15.33 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.09e-05/0.09713, allocations: 15.36 kB / 447.7 MB, free: 15.32 MB / 334.1 MB Notification: Performance of SimCode: time 2.41e-07/0.09713, allocations: 0 / 447.7 MB, free: 15.32 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07156/0.1687, allocations: 2.498 MB / 450.2 MB, free: 12.78 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.562/7.73, allocations: 8.641 kB / 450.2 MB, free: 12.77 MB / 334.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_3_2_3_ModelicaTest_Utilities_TestFiles.fmu > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestFiles/TestFiles.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches