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.0009941/0.0009941, allocations: 102.5 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001104/0.001104, allocations: 184.7 kB / 16.92 MB, free: 6.914 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.401/1.401, allocations: 205.4 MB / 223.1 MB, free: 5.508 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3615/0.3615, allocations: 43.57 MB / 315 MB, free: 9.074 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.0005826/0.000583, allocations: 15.98 kB / 384.7 MB, free: 7.797 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1231/0.1237, allocations: 58.86 MB / 443.5 MB, free: 12.84 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.000531/0.1243, allocations: 224.4 kB / 443.8 MB, free: 12.62 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001878/0.1262, allocations: 1.264 MB / 445 MB, free: 11.35 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.145e-05/0.1262, allocations: 4 kB / 445 MB, free: 11.34 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.399e-05/0.1262, allocations: 0 / 445 MB, free: 11.34 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001276/0.1263, allocations: 3.984 kB / 445 MB, free: 11.34 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008701/0.1272, allocations: 187.6 kB / 445.2 MB, free: 11.16 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.947e-05/0.1273, allocations: 11.98 kB / 445.2 MB, free: 11.14 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.278e-05/0.1273, allocations: 0 / 445.2 MB, free: 11.14 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.414e-05/0.1273, allocations: 11.92 kB / 445.2 MB, free: 11.13 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.947e-05/0.1274, allocations: 7.984 kB / 445.2 MB, free: 11.12 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.823e-06/0.1274, allocations: 0 / 445.2 MB, free: 11.12 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002986/0.1304, allocations: 0.6195 MB / 445.9 MB, free: 10.54 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.755e-06/0.1305, allocations: 0 / 445.9 MB, free: 10.54 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.403e-05/0.1305, allocations: 29.7 kB / 445.9 MB, free: 10.51 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002802/0.1308, allocations: 183.6 kB / 446.1 MB, free: 10.33 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.1308, allocations: 4 kB / 446.1 MB, free: 10.32 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.1308, allocations: 4 kB / 446.1 MB, free: 10.32 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.917e-06/0.1308, allocations: 0 / 446.1 MB, free: 10.32 MB / 382.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.0004063/0.1312, allocations: 377.2 kB / 446.4 MB, free: 9.898 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.1313, allocations: 12.03 kB / 446.5 MB, free: 9.887 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.196e-05/0.1313, allocations: 34.73 kB / 446.5 MB, free: 9.844 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.275e-05/0.1313, allocations: 0.9375 kB / 446.5 MB, free: 9.844 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001119/0.1315, allocations: 160.4 kB / 446.6 MB, free: 9.648 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.348e-06/0.1315, allocations: 4.375 kB / 446.7 MB, free: 9.645 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.162e-05/0.1315, allocations: 4.375 kB / 446.7 MB, free: 9.641 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.742e-05/0.1316, allocations: 41.56 kB / 446.7 MB, free: 9.594 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.742e-06/0.1316, allocations: 4 kB / 446.7 MB, free: 9.59 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.134e-06/0.1316, allocations: 3.938 kB / 446.7 MB, free: 9.586 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-06/0.1316, allocations: 0 / 446.7 MB, free: 9.586 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.836e-05/0.1316, allocations: 3.984 kB / 446.7 MB, free: 9.582 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001264/0.1318, allocations: 145.7 kB / 446.9 MB, free: 9.391 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.213e-05/0.1318, allocations: 18.58 kB / 446.9 MB, free: 9.363 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.412e-05/0.1318, allocations: 8.922 kB / 446.9 MB, free: 9.352 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.298e-06/0.1319, allocations: 11.88 kB / 446.9 MB, free: 9.34 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.644e-05/0.1319, allocations: 60.25 kB / 446.9 MB, free: 9.266 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.152e-06/0.1319, allocations: 0 / 446.9 MB, free: 9.266 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001517/0.1321, allocations: 59.41 kB / 447 MB, free: 9.195 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.114e-05/0.1321, allocations: 77.11 kB / 447.1 MB, free: 9.102 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.525e-05/0.1322, allocations: 102.1 kB / 447.2 MB, free: 8.992 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.072e-05/0.1322, allocations: 29.73 kB / 447.2 MB, free: 8.957 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.681e-05/0.1322, allocations: 80.14 kB / 447.3 MB, free: 8.875 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.332e-05/0.1323, allocations: 4 kB / 447.3 MB, free: 8.871 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.135e-05/0.1323, allocations: 9.719 kB / 447.3 MB, free: 8.855 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001057/0.1324, allocations: 310.8 kB / 447.6 MB, free: 8.543 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.223e-05/0.1324, allocations: 0 / 447.6 MB, free: 8.543 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.438e-06/0.1324, allocations: 15.88 kB / 447.6 MB, free: 8.527 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.251e-05/0.1325, allocations: 60.27 kB / 447.7 MB, free: 8.453 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.714e-06/0.1325, allocations: 4.062 kB / 447.7 MB, free: 8.449 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.508e-05/0.1326, allocations: 71.23 kB / 447.8 MB, free: 8.367 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.783e-05/0.1326, allocations: 29.7 kB / 447.8 MB, free: 8.332 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.907e-06/0.1326, allocations: 0 / 447.8 MB, free: 8.332 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.068e-05/0.1326, allocations: 0 / 447.8 MB, free: 8.332 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.132e-06/0.1326, allocations: 0 / 447.8 MB, free: 8.332 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.468e-06/0.1326, allocations: 0 / 447.8 MB, free: 8.332 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.652e-05/0.1327, allocations: 4 kB / 447.8 MB, free: 8.328 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.45e-06/0.1327, allocations: 0 / 447.8 MB, free: 8.328 MB / 382.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.99e-05/0.1328, allocations: 143.6 kB / 447.9 MB, free: 8.172 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.053e-05/0.1328, allocations: 11.88 kB / 447.9 MB, free: 8.16 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.498e-06/0.1328, allocations: 3.125 kB / 447.9 MB, free: 8.156 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.1328, allocations: 0 / 447.9 MB, free: 8.156 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.1328, allocations: 4 kB / 447.9 MB, free: 8.152 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.843e-06/0.1328, allocations: 0 / 447.9 MB, free: 8.152 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.679e-05/0.1329, allocations: 153.7 kB / 448.1 MB, free: 7.953 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.1329, allocations: 3.938 kB / 448.1 MB, free: 7.949 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.91e-07/0.1329, allocations: 0 / 448.1 MB, free: 7.949 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.1329, allocations: 0 / 448.1 MB, free: 7.949 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.61e-06/0.133, allocations: 4 kB / 448.1 MB, free: 7.945 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.133, allocations: 0 / 448.1 MB, free: 7.945 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.133, allocations: 0 / 448.1 MB, free: 7.945 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001014/0.1331, allocations: 98.77 kB / 448.2 MB, free: 7.824 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.419e-05/0.1331, allocations: 81.05 kB / 448.3 MB, free: 7.727 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.239e-05/0.1331, allocations: 0 / 448.3 MB, free: 7.727 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.177e-05/0.1332, allocations: 0 / 448.3 MB, free: 7.727 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.361e-05/0.1332, allocations: 0 / 448.3 MB, free: 7.727 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.603e-06/0.1332, allocations: 12.03 kB / 448.3 MB, free: 7.715 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.24e-05/0.1332, allocations: 79.27 kB / 448.4 MB, free: 7.637 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1332, allocations: 3.938 kB / 448.4 MB, free: 7.633 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002999/0.1335, allocations: 59.98 kB / 448.4 MB, free: 7.574 MB / 382.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.0008713/0.1344, allocations: 0.855 MB / 449.3 MB, free: 6.684 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 9.103e-05/0.1345, allocations: 59.39 kB / 449.3 MB, free: 6.613 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.165e-06/0.1345, allocations: 4 kB / 449.3 MB, free: 6.609 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.09e-05/0.1346, allocations: 63.41 kB / 449.4 MB, free: 6.535 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001387/0.1347, allocations: 7.938 kB / 449.4 MB, free: 6.527 MB / 382.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.0003963/0.1351, allocations: 140.3 kB / 449.6 MB, free: 6.348 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002423/0.1354, allocations: 0.6692 MB / 450.2 MB, free: 5.652 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.758e-06/0.1354, allocations: 0 / 450.2 MB, free: 5.652 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.756e-05/0.1354, allocations: 15.44 kB / 450.2 MB, free: 5.637 MB / 382.1 MB Notification: Performance of SimCode: time 3.5e-07/0.1354, allocations: 3.938 kB / 450.2 MB, free: 5.633 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07696/0.2124, allocations: 2.296 MB / 452.5 MB, free: 3.336 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001858/0.2126, allocations: 225.1 kB / 452.8 MB, free: 3.078 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.313/2.526, allocations: 4 kB / 452.8 MB, free: 3.074 MB / 382.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Utilities_TestFiles_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestFiles/TestFiles.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches