Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 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.TestFiles,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_4_0_0_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.0006888/0.0006888, allocations: 95.34 kB / 17.35 MB, free: 6.344 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.0007723/0.0007723, allocations: 173.8 kB / 18.25 MB, free: 5.504 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.31/1.31, allocations: 223.3 MB / 242.3 MB, free: 220 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.1896/0.1896, allocations: 44.25 MB / 337.7 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003122/0.0003122, allocations: 11.98 kB / 410.4 MB, free: 27.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1203/0.1206, allocations: 61.92 MB / 472.4 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.0006023/0.1212, allocations: 210.9 kB / 472.6 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002136/0.1234, allocations: 1.255 MB / 473.8 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.405e-05/0.1234, allocations: 4 kB / 473.8 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.226e-05/0.1235, allocations: 0 / 473.8 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001504/0.1236, allocations: 11.98 kB / 473.8 MB, free: 11.77 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:456:3-488:12:writable] Warning: Pure function ‘ModelicaTest.Utilities.Files‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.001045/0.1247, allocations: 188.9 kB / 474 MB, free: 11.59 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.733e-05/0.1247, allocations: 11.88 kB / 474 MB, free: 11.58 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.644e-05/0.1248, allocations: 0 / 474 MB, free: 11.58 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.075e-05/0.1248, allocations: 8 kB / 474 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.622e-05/0.1249, allocations: 15.97 kB / 474.1 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.752e-06/0.1249, allocations: 0 / 474.1 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0031/0.128, allocations: 0.6197 MB / 474.7 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.44e-05/0.128, allocations: 4 kB / 474.7 MB, free: 11.03 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.991e-05/0.1281, allocations: 33.64 kB / 474.7 MB, free: 10.99 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003399/0.1284, allocations: 175.7 kB / 474.9 MB, free: 10.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.1284, allocations: 0 / 474.9 MB, free: 10.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.1285, allocations: 7.938 kB / 474.9 MB, free: 10.81 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.819e-06/0.1285, allocations: 0 / 474.9 MB, free: 10.81 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.000425/0.1289, allocations: 377.2 kB / 475.3 MB, free: 10.39 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.488e-05/0.1289, allocations: 12.03 kB / 475.3 MB, free: 10.38 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.68e-05/0.129, allocations: 30.75 kB / 475.3 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.431e-05/0.129, allocations: 4.938 kB / 475.3 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001362/0.1292, allocations: 164.4 kB / 475.5 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.209e-05/0.1292, allocations: 384 / 475.5 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.366e-06/0.1292, allocations: 4.375 kB / 475.5 MB, free: 10.13 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.524e-05/0.1293, allocations: 33.58 kB / 475.5 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.484e-06/0.1293, allocations: 0 / 475.5 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.017e-05/0.1293, allocations: 4 kB / 475.5 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.1293, allocations: 0 / 475.5 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.749e-05/0.1293, allocations: 0 / 475.5 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001544/0.1295, allocations: 157.7 kB / 475.7 MB, free: 9.887 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.603e-05/0.1295, allocations: 14.58 kB / 475.7 MB, free: 9.863 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.385e-05/0.1296, allocations: 4.859 kB / 475.7 MB, free: 9.855 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.959e-06/0.1296, allocations: 8 kB / 475.7 MB, free: 9.848 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.098e-05/0.1296, allocations: 64.14 kB / 475.7 MB, free: 9.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.142e-06/0.1296, allocations: 0 / 475.7 MB, free: 9.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001733/0.1298, allocations: 71.42 kB / 475.8 MB, free: 9.688 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.011e-05/0.1299, allocations: 81.11 kB / 475.9 MB, free: 9.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.507e-05/0.13, allocations: 93.86 kB / 476 MB, free: 9.488 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.708e-05/0.13, allocations: 29.69 kB / 476 MB, free: 9.453 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.133e-05/0.13, allocations: 80.14 kB / 476.1 MB, free: 9.371 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.553e-05/0.13, allocations: 4 kB / 476.1 MB, free: 9.367 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.596e-05/0.1301, allocations: 13.72 kB / 476.1 MB, free: 9.348 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.1302, allocations: 310.8 kB / 476.4 MB, free: 9.035 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.135e-05/0.1302, allocations: 4.125 kB / 476.4 MB, free: 9.031 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.179e-05/0.1303, allocations: 4 kB / 476.4 MB, free: 9.027 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.056e-05/0.1303, allocations: 60.2 kB / 476.5 MB, free: 8.953 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.1303, allocations: 0 / 476.5 MB, free: 8.953 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.934e-05/0.1304, allocations: 79.27 kB / 476.6 MB, free: 8.863 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.384e-05/0.1305, allocations: 29.7 kB / 476.6 MB, free: 8.828 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.988e-06/0.1305, allocations: 0 / 476.6 MB, free: 8.828 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.295e-05/0.1305, allocations: 0 / 476.6 MB, free: 8.828 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.92e-07/0.1305, allocations: 0 / 476.6 MB, free: 8.828 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.438e-06/0.1305, allocations: 4.094 kB / 476.6 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.979e-05/0.1305, allocations: 4 kB / 476.6 MB, free: 8.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.412e-06/0.1305, allocations: 0 / 476.6 MB, free: 8.82 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.889e-05/0.1306, allocations: 135.5 kB / 476.7 MB, free: 8.672 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.126e-05/0.1306, allocations: 7.938 kB / 476.7 MB, free: 8.664 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.284e-05/0.1307, allocations: 7.078 kB / 476.7 MB, free: 8.656 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.342e-06/0.1307, allocations: 0 / 476.7 MB, free: 8.656 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.784e-06/0.1307, allocations: 3.984 kB / 476.7 MB, free: 8.652 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.874e-06/0.1307, allocations: 3.938 kB / 476.8 MB, free: 8.648 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001088/0.1308, allocations: 157.7 kB / 476.9 MB, free: 8.445 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.1308, allocations: 3.938 kB / 476.9 MB, free: 8.441 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.31e-07/0.1308, allocations: 0 / 476.9 MB, free: 8.441 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.1308, allocations: 0 / 476.9 MB, free: 8.441 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.222e-06/0.1308, allocations: 0 / 476.9 MB, free: 8.441 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.1308, allocations: 0 / 476.9 MB, free: 8.441 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.1308, allocations: 0 / 476.9 MB, free: 8.441 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001098/0.1309, allocations: 90.83 kB / 477 MB, free: 8.328 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.353e-05/0.131, allocations: 93.02 kB / 477.1 MB, free: 8.219 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.433e-05/0.131, allocations: 4 kB / 477.1 MB, free: 8.215 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.246e-05/0.131, allocations: 0 / 477.1 MB, free: 8.215 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.728e-06/0.131, allocations: 0 / 477.1 MB, free: 8.215 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.74e-06/0.1311, allocations: 4 kB / 477.1 MB, free: 8.211 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.45e-05/0.1311, allocations: 75.28 kB / 477.2 MB, free: 8.137 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1311, allocations: 0 / 477.2 MB, free: 8.137 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003092/0.1314, allocations: 59.98 kB / 477.2 MB, free: 8.078 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.0009101/0.1323, allocations: 0.8723 MB / 478.1 MB, free: 7.254 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.437e-05/0.1324, allocations: 63.39 kB / 478.2 MB, free: 7.18 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.1324, allocations: 0 / 478.2 MB, free: 7.18 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.866e-05/0.1325, allocations: 59.47 kB / 478.2 MB, free: 7.109 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001237/0.1326, allocations: 0 / 478.2 MB, free: 7.109 MB / 350.1 MB Warning: Could not resolve URI ("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+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 4.0.0+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.0004001/0.133, allocations: 148.2 kB / 478.4 MB, free: 6.922 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000235/0.1333, allocations: 0.677 MB / 479 MB, free: 6.219 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.556e-06/0.1333, allocations: 0 / 479 MB, free: 6.219 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.608e-05/0.1333, allocations: 7.438 kB / 479.1 MB, free: 6.211 MB / 350.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1333, allocations: 0 / 479.1 MB, free: 6.211 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1238/0.2571, allocations: 2.311 MB / 481.4 MB, free: 4 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001814/0.2573, allocations: 228.4 kB / 481.6 MB, free: 3.746 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.998/2.255, allocations: 4 kB / 481.6 MB, free: 3.742 MB / 350.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Utilities_TestFiles_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Utilities_TestFiles.fmu > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestFiles/TestFiles.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches