Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001973/0.001973, allocations: 123.4 kB / 17.79 MB, free: 5.227 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0025/0.0025, allocations: 208.3 kB / 20.75 MB, free: 2.273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.638/1.638, allocations: 230.6 MB / 254.1 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2256/0.2256, allocations: 46.91 MB / 357.1 MB, free: 10.31 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001983/0.001983, allocations: 75.88 kB / 0.4909 GB, free: 7.969 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1243/0.1263, allocations: 65.98 MB / 0.5553 GB, free: 5.863 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001513/0.1278, allocations: 495.3 kB / 0.5558 GB, free: 5.379 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002066/0.1299, allocations: 1.271 MB / 0.5571 GB, free: 4.102 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.137e-05/0.1299, allocations: 0 / 0.5571 GB, free: 4.102 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.411e-05/0.1299, allocations: 0 / 0.5571 GB, free: 4.102 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001639/0.1301, allocations: 19.92 kB / 0.5571 GB, free: 4.082 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:455:3-487: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.00101/0.1311, allocations: 241 kB / 0.5573 GB, free: 3.848 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.853e-05/0.1311, allocations: 15.97 kB / 0.5573 GB, free: 3.832 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.787e-05/0.1311, allocations: 4 kB / 0.5573 GB, free: 3.828 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.561e-05/0.1312, allocations: 0 / 0.5573 GB, free: 3.828 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.649e-05/0.1312, allocations: 10.61 kB / 0.5573 GB, free: 3.82 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 9.308e-06/0.1313, allocations: 4 kB / 0.5573 GB, free: 3.816 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004122/0.1354, allocations: 0.6875 MB / 0.558 GB, free: 3.25 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.055e-05/0.1354, allocations: 0 / 0.558 GB, free: 3.25 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 3.016e-05/0.1354, allocations: 4 kB / 0.558 GB, free: 3.246 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00043/0.1358, allocations: 183.5 kB / 0.5582 GB, free: 3.066 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.1358, allocations: 0 / 0.5582 GB, free: 3.066 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.1359, allocations: 0 / 0.5582 GB, free: 3.066 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.177e-05/0.1359, allocations: 0 / 0.5582 GB, free: 3.066 MB / 414.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.0005869/0.1365, allocations: 392.8 kB / 0.5586 GB, free: 2.629 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.597e-05/0.1365, allocations: 12.03 kB / 0.5586 GB, free: 2.617 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.958e-05/0.1365, allocations: 34.69 kB / 0.5586 GB, free: 2.574 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.197e-05/0.1366, allocations: 4.938 kB / 0.5586 GB, free: 2.57 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001809/0.1367, allocations: 168.4 kB / 0.5588 GB, free: 2.367 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.576e-05/0.1368, allocations: 4.312 kB / 0.5588 GB, free: 2.363 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.305e-05/0.1368, allocations: 384 / 0.5588 GB, free: 2.363 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001064/0.1369, allocations: 33.64 kB / 0.5588 GB, free: 2.324 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.1369, allocations: 0 / 0.5588 GB, free: 2.324 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.107e-06/0.1369, allocations: 0 / 0.5588 GB, free: 2.324 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.669e-06/0.1369, allocations: 4 kB / 0.5588 GB, free: 2.32 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.018e-05/0.1369, allocations: 0 / 0.5588 GB, free: 2.32 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002046/0.1371, allocations: 153.7 kB / 0.559 GB, free: 2.121 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.91e-05/0.1372, allocations: 18.52 kB / 0.559 GB, free: 2.094 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.183e-05/0.1372, allocations: 8.953 kB / 0.559 GB, free: 2.082 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.746e-05/0.1372, allocations: 3.938 kB / 0.559 GB, free: 2.078 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.16e-05/0.1373, allocations: 56.27 kB / 0.559 GB, free: 2.008 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/0.1373, allocations: 4 kB / 0.5591 GB, free: 2.004 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.000227/0.1375, allocations: 71.39 kB / 0.5591 GB, free: 1.922 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.244e-05/0.1376, allocations: 77.11 kB / 0.5592 GB, free: 1.828 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001049/0.1377, allocations: 89.86 kB / 0.5593 GB, free: 1.73 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.645e-05/0.1377, allocations: 29.7 kB / 0.5593 GB, free: 1.695 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.502e-05/0.1377, allocations: 80.14 kB / 0.5594 GB, free: 1.613 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.801e-05/0.1378, allocations: 0 / 0.5594 GB, free: 1.613 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.51e-05/0.1378, allocations: 21.95 kB / 0.5594 GB, free: 1.586 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001665/0.138, allocations: 318.8 kB / 0.5597 GB, free: 1.266 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.203e-05/0.138, allocations: 0 / 0.5597 GB, free: 1.266 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.695e-06/0.138, allocations: 0 / 0.5597 GB, free: 1.266 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.89e-05/0.1381, allocations: 60.27 kB / 0.5598 GB, free: 1.191 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.1381, allocations: 3.938 kB / 0.5598 GB, free: 1.188 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.881e-05/0.1382, allocations: 75.28 kB / 0.5598 GB, free: 1.102 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.726e-05/0.1382, allocations: 33.7 kB / 0.5599 GB, free: 1.062 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/0.1382, allocations: 4.094 kB / 0.5599 GB, free: 1.059 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.568e-05/0.1382, allocations: 0 / 0.5599 GB, free: 1.059 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.12e-07/0.1382, allocations: 0 / 0.5599 GB, free: 1.059 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.911e-06/0.1382, allocations: 0 / 0.5599 GB, free: 1.059 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.921e-05/0.1383, allocations: 0 / 0.5599 GB, free: 1.059 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.21e-05/0.1383, allocations: 7.938 kB / 0.5599 GB, free: 1.051 MB / 414.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 0.0001162/0.1384, allocations: 137.7 kB / 0.56 GB, free: 0.9023 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.436e-05/0.1384, allocations: 7.922 kB / 0.56 GB, free: 0.8945 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.067e-05/0.1384, allocations: 7.125 kB / 0.56 GB, free: 0.8906 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.1384, allocations: 4 kB / 0.56 GB, free: 0.8867 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.1384, allocations: 0 / 0.56 GB, free: 0.8867 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.274e-06/0.1384, allocations: 0 / 0.56 GB, free: 0.8867 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001517/0.1386, allocations: 149.7 kB / 0.5602 GB, free: 0.6914 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.921e-06/0.1386, allocations: 11.92 kB / 0.5602 GB, free: 0.6797 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.12e-07/0.1386, allocations: 0 / 0.5602 GB, free: 0.6797 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.1386, allocations: 0 / 0.5602 GB, free: 0.6797 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.242e-06/0.1386, allocations: 0 / 0.5602 GB, free: 0.6797 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.1386, allocations: 0 / 0.5602 GB, free: 0.6797 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.1386, allocations: 0 / 0.5602 GB, free: 0.6797 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001392/0.1387, allocations: 98.83 kB / 0.5603 GB, free: 0.5586 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.302e-05/0.1388, allocations: 85.05 kB / 0.5604 GB, free: 468 kB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.408e-05/0.1388, allocations: 0 / 0.5604 GB, free: 468 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.213e-05/0.1388, allocations: 0 / 0.5604 GB, free: 468 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.116e-05/0.1388, allocations: 3.938 kB / 0.5604 GB, free: 464 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.587e-06/0.1388, allocations: 0 / 0.5604 GB, free: 464 kB / 414.1 MB Notification: Performance of sorting global known variables: time 5.016e-05/0.1389, allocations: 79.28 kB / 0.5604 GB, free: 384 kB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1389, allocations: 128 / 0.5604 GB, free: 384 kB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003654/0.1393, allocations: 71.8 kB / 0.5605 GB, free: 312 kB / 414.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.001224/0.1405, allocations: 0.8591 MB / 0.5614 GB, free: 15.48 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001139/0.1406, allocations: 63.39 kB / 0.5614 GB, free: 15.4 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1406, allocations: 0 / 0.5614 GB, free: 15.4 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 4.815e-05/0.1406, allocations: 59.41 kB / 0.5615 GB, free: 15.33 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001357/0.1408, allocations: 4 kB / 0.5615 GB, free: 15.33 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004152/0.1412, allocations: 134.5 kB / 0.5616 GB, free: 15.16 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003368/0.1415, allocations: 0.6729 MB / 0.5623 GB, free: 14.46 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 9.418e-06/0.1415, allocations: 4 kB / 0.5623 GB, free: 14.45 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.99e-05/0.1416, allocations: 7.438 kB / 0.5623 GB, free: 14.45 MB / 430.1 MB Notification: Performance of SimCode: time 3.8e-07/0.1416, allocations: 0 / 0.5623 GB, free: 14.45 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02928/0.1709, allocations: 2.543 MB / 0.5648 GB, free: 11.98 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.349/8.52, allocations: 7.938 kB / 0.5648 GB, free: 11.97 MB / 430.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Utilities_TestFiles_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Utilities_TestFiles.fmu > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestFiles/TestFiles.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.58153994497843]