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.001427/0.001427, allocations: 106.5 kB / 17.2 MB, free: 6.289 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.00163/0.00163, allocations: 194 kB / 18.12 MB, free: 5.383 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.432/1.432, allocations: 222.9 MB / 241.8 MB, free: 15.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2172/0.2172, allocations: 44.18 MB / 336.1 MB, free: 2.961 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00205/0.00205, allocations: 59.97 kB / 407.8 MB, free: 27.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1256/0.1276, allocations: 60.82 MB / 468.6 MB, free: 14.79 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.0016/0.1293, allocations: 0.5443 MB / 469.2 MB, free: 14.24 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001836/0.1311, allocations: 1.287 MB / 470.4 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.24e-05/0.1312, allocations: 0 / 470.4 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.34e-05/0.1312, allocations: 4 kB / 470.4 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001272/0.1313, allocations: 4 kB / 470.5 MB, free: 12.94 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.0009262/0.1323, allocations: 190.1 kB / 470.6 MB, free: 12.76 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.072e-05/0.1323, allocations: 7.938 kB / 470.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.682e-05/0.1323, allocations: 0 / 470.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.099e-05/0.1324, allocations: 7.938 kB / 470.7 MB, free: 12.74 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.225e-05/0.1325, allocations: 15.98 kB / 470.7 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.023e-06/0.1325, allocations: 0 / 470.7 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003021/0.1355, allocations: 0.6179 MB / 471.3 MB, free: 12.21 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.386e-06/0.1355, allocations: 4 kB / 471.3 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.152e-05/0.1356, allocations: 7.938 kB / 471.3 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002606/0.1358, allocations: 167.7 kB / 471.5 MB, free: 12.03 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.046e-05/0.1358, allocations: 11.94 kB / 471.5 MB, free: 12.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.021e-06/0.1358, allocations: 0 / 471.5 MB, free: 12.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.088e-06/0.1359, allocations: 0 / 471.5 MB, free: 12.02 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.0003875/0.1362, allocations: 385.2 kB / 471.9 MB, free: 11.59 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.639e-05/0.1363, allocations: 8.031 kB / 471.9 MB, free: 11.58 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.942e-05/0.1363, allocations: 30.75 kB / 471.9 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.416e-05/0.1364, allocations: 4.938 kB / 471.9 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.855e-05/0.1365, allocations: 168.4 kB / 472.1 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.298e-06/0.1365, allocations: 384 / 472.1 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.205e-06/0.1365, allocations: 384 / 472.1 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.589e-05/0.1366, allocations: 33.64 kB / 472.1 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.981e-06/0.1366, allocations: 3.938 kB / 472.1 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.303e-06/0.1366, allocations: 0 / 472.1 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.673e-06/0.1366, allocations: 7.922 kB / 472.1 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.66e-05/0.1366, allocations: 4 kB / 472.1 MB, free: 11.28 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001164/0.1367, allocations: 157.6 kB / 472.3 MB, free: 11.08 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.038e-05/0.1368, allocations: 18.61 kB / 472.3 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.46e-05/0.1368, allocations: 4.859 kB / 472.3 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.164e-06/0.1368, allocations: 7.875 kB / 472.3 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.715e-05/0.1369, allocations: 56.27 kB / 472.3 MB, free: 10.96 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.1369, allocations: 64 / 472.3 MB, free: 10.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.000144/0.137, allocations: 75.33 kB / 472.4 MB, free: 10.88 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.997e-05/0.1371, allocations: 81.23 kB / 472.5 MB, free: 10.78 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.909e-05/0.1371, allocations: 93.86 kB / 472.6 MB, free: 10.68 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.065e-05/0.1372, allocations: 25.7 kB / 472.6 MB, free: 10.65 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.728e-05/0.1372, allocations: 80.14 kB / 472.7 MB, free: 10.57 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.165e-05/0.1372, allocations: 0 / 472.7 MB, free: 10.57 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.239e-05/0.1372, allocations: 21.7 kB / 472.7 MB, free: 10.54 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.2e-05/0.1373, allocations: 310.8 kB / 473 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.172e-05/0.1374, allocations: 4.125 kB / 473 MB, free: 10.22 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.804e-06/0.1374, allocations: 4 kB / 473 MB, free: 10.22 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.061e-05/0.1374, allocations: 60.2 kB / 473.1 MB, free: 10.14 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.1374, allocations: 4 kB / 473.1 MB, free: 10.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.783e-05/0.1375, allocations: 71.33 kB / 473.2 MB, free: 10.06 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.774e-05/0.1375, allocations: 29.7 kB / 473.2 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.707e-06/0.1376, allocations: 0 / 473.2 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.197e-06/0.1376, allocations: 0 / 473.2 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.72e-07/0.1376, allocations: 0 / 473.2 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.029e-06/0.1376, allocations: 4.094 kB / 473.2 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.794e-05/0.1376, allocations: 4 kB / 473.2 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.951e-06/0.1376, allocations: 0 / 473.2 MB, free: 10.02 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.03e-05/0.1377, allocations: 131.5 kB / 473.3 MB, free: 9.871 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.257e-05/0.1377, allocations: 7.938 kB / 473.3 MB, free: 9.863 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.329e-05/0.1377, allocations: 11.06 kB / 473.3 MB, free: 9.852 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.283e-06/0.1377, allocations: 0 / 473.3 MB, free: 9.852 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.1377, allocations: 0 / 473.3 MB, free: 9.852 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.984e-06/0.1377, allocations: 0 / 473.3 MB, free: 9.852 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.449e-05/0.1378, allocations: 157.7 kB / 473.5 MB, free: 9.648 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.1378, allocations: 3.938 kB / 473.5 MB, free: 9.645 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.703e-06/0.1378, allocations: 3.984 kB / 473.5 MB, free: 9.641 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.532e-06/0.1379, allocations: 0 / 473.5 MB, free: 9.641 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.362e-06/0.1379, allocations: 0 / 473.5 MB, free: 9.641 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.773e-06/0.1379, allocations: 3.938 kB / 473.5 MB, free: 9.637 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.754e-06/0.1379, allocations: 3.938 kB / 473.5 MB, free: 9.633 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.489e-05/0.138, allocations: 98.77 kB / 473.6 MB, free: 9.512 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.025e-05/0.138, allocations: 85.08 kB / 473.7 MB, free: 9.41 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.251e-05/0.138, allocations: 0 / 473.7 MB, free: 9.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.146e-05/0.1381, allocations: 0 / 473.7 MB, free: 9.41 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.199e-05/0.1381, allocations: 0 / 473.7 MB, free: 9.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.47e-06/0.1381, allocations: 4 kB / 473.7 MB, free: 9.406 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.298e-05/0.1381, allocations: 75.28 kB / 473.8 MB, free: 9.332 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1381, allocations: 0 / 473.8 MB, free: 9.332 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002822/0.1384, allocations: 59.98 kB / 473.8 MB, free: 9.273 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.0008488/0.1393, allocations: 0.8704 MB / 474.7 MB, free: 8.449 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.559e-05/0.1394, allocations: 59.41 kB / 474.8 MB, free: 8.379 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.1394, allocations: 0 / 474.8 MB, free: 8.379 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.257e-05/0.1394, allocations: 63.45 kB / 474.8 MB, free: 8.305 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001254/0.1395, allocations: 3.938 kB / 474.8 MB, free: 8.301 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.0003687/0.1399, allocations: 144.3 kB / 475 MB, free: 8.117 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002017/0.1401, allocations: 0.677 MB / 475.6 MB, free: 7.414 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.132e-05/0.1401, allocations: 3.938 kB / 475.6 MB, free: 7.41 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.572e-05/0.1402, allocations: 11.44 kB / 475.7 MB, free: 7.398 MB / 350.1 MB Notification: Performance of SimCode: time 1.613e-06/0.1402, allocations: 0 / 475.7 MB, free: 7.398 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1423/0.2825, allocations: 2.396 MB / 478.1 MB, free: 5.078 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002674/0.2828, allocations: 229.4 kB / 478.3 MB, free: 4.82 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.932/2.215, allocations: 0 / 478.3 MB, free: 4.82 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