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.001087/0.001087, allocations: 103.9 kB / 17.63 MB, free: 5.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.001129/0.001129, allocations: 192 kB / 18.56 MB, free: 4.434 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.278/1.278, allocations: 222.9 MB / 242.3 MB, free: 15.15 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.207/0.207, allocations: 44.18 MB / 336.6 MB, free: 2.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001118/0.001118, allocations: 54.84 kB / 408.5 MB, free: 27.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.1141, allocations: 60.84 MB / 469.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001851/0.116, allocations: 483.7 kB / 469.8 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002005/0.1181, allocations: 1.263 MB / 471.1 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.634e-05/0.1181, allocations: 3.938 kB / 471.1 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.67e-05/0.1181, allocations: 0 / 471.1 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001886/0.1183, allocations: 15.94 kB / 471.1 MB, free: 12.5 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.001008/0.1194, allocations: 246.7 kB / 471.4 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.794e-05/0.1194, allocations: 11.94 kB / 471.4 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.083e-05/0.1195, allocations: 4 kB / 471.4 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.811e-05/0.1195, allocations: 0 / 471.4 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.571e-05/0.1196, allocations: 11.98 kB / 471.4 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.035e-06/0.1196, allocations: 0 / 471.4 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002944/0.1225, allocations: 0.6573 MB / 472 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.111e-05/0.1226, allocations: 3.984 kB / 472 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.964e-05/0.1226, allocations: 7.938 kB / 472.1 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002857/0.1229, allocations: 179.7 kB / 472.2 MB, free: 11.51 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.1229, allocations: 0 / 472.2 MB, free: 11.51 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.338e-06/0.1229, allocations: 0 / 472.2 MB, free: 11.51 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.13e-06/0.1229, allocations: 3.938 kB / 472.2 MB, free: 11.51 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.0004273/0.1233, allocations: 381.2 kB / 472.6 MB, free: 11.08 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.076e-05/0.1234, allocations: 12.03 kB / 472.6 MB, free: 11.07 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.041e-05/0.1234, allocations: 34.75 kB / 472.6 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.026e-05/0.1235, allocations: 0.9375 kB / 472.6 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001314/0.1236, allocations: 164.3 kB / 472.8 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.531e-05/0.1236, allocations: 4.375 kB / 472.8 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.415e-06/0.1236, allocations: 384 / 472.8 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.75e-05/0.1237, allocations: 37.62 kB / 472.9 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/0.1238, allocations: 0 / 472.9 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.476e-06/0.1238, allocations: 4 kB / 472.9 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.1238, allocations: 0 / 472.9 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.799e-05/0.1238, allocations: 4 kB / 472.9 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001531/0.124, allocations: 149.6 kB / 473 MB, free: 10.58 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.911e-05/0.124, allocations: 18.52 kB / 473 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.911e-05/0.124, allocations: 12.84 kB / 473 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.913e-06/0.124, allocations: 8 kB / 473 MB, free: 10.53 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.735e-05/0.1241, allocations: 56.27 kB / 473.1 MB, free: 10.46 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.082e-06/0.1241, allocations: 7.938 kB / 473.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002033/0.1243, allocations: 59.41 kB / 473.2 MB, free: 10.38 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.333e-05/0.1244, allocations: 77.11 kB / 473.2 MB, free: 10.29 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.952e-05/0.1245, allocations: 105.8 kB / 473.3 MB, free: 10.17 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.416e-05/0.1245, allocations: 25.7 kB / 473.4 MB, free: 10.14 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.972e-05/0.1245, allocations: 80.14 kB / 473.4 MB, free: 10.06 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.69e-05/0.1245, allocations: 4 kB / 473.4 MB, free: 10.05 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.72e-05/0.1246, allocations: 13.91 kB / 473.5 MB, free: 10.04 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001105/0.1247, allocations: 318.8 kB / 473.8 MB, free: 9.715 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.274e-05/0.1247, allocations: 4 kB / 473.8 MB, free: 9.711 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.943e-06/0.1247, allocations: 0 / 473.8 MB, free: 9.711 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.705e-05/0.1248, allocations: 64.25 kB / 473.8 MB, free: 9.633 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.1248, allocations: 0 / 473.8 MB, free: 9.633 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.372e-05/0.1249, allocations: 63.34 kB / 473.9 MB, free: 9.559 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.699e-05/0.1249, allocations: 29.7 kB / 473.9 MB, free: 9.523 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.1249, allocations: 96 / 473.9 MB, free: 9.523 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.225e-05/0.1249, allocations: 15.94 kB / 473.9 MB, free: 9.508 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.425e-06/0.1249, allocations: 3.984 kB / 474 MB, free: 9.504 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.508e-06/0.125, allocations: 0 / 474 MB, free: 9.504 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.769e-05/0.125, allocations: 0 / 474 MB, free: 9.504 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.24e-06/0.125, allocations: 0 / 474 MB, free: 9.504 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 8.21e-05/0.1251, allocations: 139.5 kB / 474.1 MB, free: 9.352 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.185e-05/0.1251, allocations: 3.938 kB / 474.1 MB, free: 9.348 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.042e-05/0.1251, allocations: 7.078 kB / 474.1 MB, free: 9.34 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.1251, allocations: 0 / 474.1 MB, free: 9.34 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.1251, allocations: 4 kB / 474.1 MB, free: 9.336 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.903e-06/0.1251, allocations: 4 kB / 474.1 MB, free: 9.332 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.944e-05/0.1252, allocations: 145.7 kB / 474.2 MB, free: 9.141 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.1252, allocations: 3.938 kB / 474.3 MB, free: 9.137 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.71e-07/0.1252, allocations: 0 / 474.3 MB, free: 9.137 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.878e-06/0.1252, allocations: 3.984 kB / 474.3 MB, free: 9.133 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.604e-06/0.1253, allocations: 4 kB / 474.3 MB, free: 9.129 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.1253, allocations: 0 / 474.3 MB, free: 9.129 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-06/0.1253, allocations: 0 / 474.3 MB, free: 9.129 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.597e-05/0.1254, allocations: 102.8 kB / 474.4 MB, free: 9.004 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.007e-05/0.1254, allocations: 81.05 kB / 474.4 MB, free: 8.906 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.322e-05/0.1254, allocations: 3.938 kB / 474.4 MB, free: 8.902 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.469e-05/0.1255, allocations: 4 kB / 474.4 MB, free: 8.898 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.266e-05/0.1255, allocations: 7.984 kB / 474.5 MB, free: 8.891 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.915e-06/0.1255, allocations: 0 / 474.5 MB, free: 8.891 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.801e-05/0.1255, allocations: 75.28 kB / 474.5 MB, free: 8.816 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1255, allocations: 128 / 474.5 MB, free: 8.816 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003078/0.1258, allocations: 67.98 kB / 474.6 MB, free: 8.75 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.0008928/0.1267, allocations: 0.8612 MB / 475.5 MB, free: 7.934 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.015e-05/0.1268, allocations: 67.34 kB / 475.5 MB, free: 7.855 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/0.1268, allocations: 4 kB / 475.5 MB, free: 7.852 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.527e-05/0.1269, allocations: 51.41 kB / 475.6 MB, free: 7.789 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001307/0.127, allocations: 4 kB / 475.6 MB, free: 7.785 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.0003886/0.1274, allocations: 153.9 kB / 475.7 MB, free: 7.598 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002122/0.1276, allocations: 0.6729 MB / 476.4 MB, free: 6.898 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.176e-06/0.1277, allocations: 0 / 476.4 MB, free: 6.898 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.691e-05/0.1277, allocations: 11.55 kB / 476.4 MB, free: 6.887 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1277, allocations: 4 kB / 476.4 MB, free: 6.883 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2232/0.3509, allocations: 2.498 MB / 478.9 MB, free: 4.43 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.951/8.302, allocations: 17.45 kB / 478.9 MB, free: 4.426 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