Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.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.001769/0.001769, allocations: 108.3 kB / 19.7 MB, free: 1.918 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.002362/0.002362, allocations: 216.3 kB / 22.99 MB, free: 4.977 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.76/1.76, allocations: 207.7 MB / 233.8 MB, free: 9.793 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2429/0.2429, allocations: 44.28 MB / 330.3 MB, free: 9.289 MB / 270.1 MB " [Timeout remaining time 179] 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.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: translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002599/0.002599, allocations: 72.94 kB / 468 MB, free: 3.859 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1301/0.1327, allocations: 61.04 MB / 0.5166 GB, free: 6.688 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.002028/0.1347, allocations: 0.4909 MB / 0.5171 GB, free: 6.195 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006696/0.1354, allocations: 221.1 kB / 0.5173 GB, free: 5.98 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.606e-05/0.1354, allocations: 0 / 0.5173 GB, free: 5.98 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.392e-05/0.1354, allocations: 0 / 0.5173 GB, free: 5.98 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.231e-06/0.1354, allocations: 0 / 0.5173 GB, free: 5.98 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003344/0.1357, allocations: 43.84 kB / 0.5174 GB, free: 5.938 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.332e-05/0.1358, allocations: 0 / 0.5174 GB, free: 5.938 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.273e-05/0.1358, allocations: 15.92 kB / 0.5174 GB, free: 5.922 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.909e-05/0.1358, allocations: 0 / 0.5174 GB, free: 5.922 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.01e-05/0.1359, allocations: 0 / 0.5174 GB, free: 5.922 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.216e-06/0.1359, allocations: 3.938 kB / 0.5174 GB, free: 5.918 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001573/0.136, allocations: 51.94 kB / 0.5174 GB, free: 5.867 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.147e-06/0.1361, allocations: 0 / 0.5174 GB, free: 5.867 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.538e-05/0.1361, allocations: 0 / 0.5174 GB, free: 5.867 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001464/0.1362, allocations: 43.89 kB / 0.5175 GB, free: 5.824 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.768e-06/0.1362, allocations: 0 / 0.5175 GB, free: 5.824 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.1362, allocations: 0 / 0.5175 GB, free: 5.824 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.322e-06/0.1362, allocations: 4 kB / 0.5175 GB, free: 5.82 MB / 398.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.0004502/0.1367, allocations: 284 kB / 0.5177 GB, free: 5.504 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.34e-05/0.1367, allocations: 8.031 kB / 0.5177 GB, free: 5.496 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.519e-05/0.1368, allocations: 4.891 kB / 0.5177 GB, free: 5.492 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.492e-05/0.1369, allocations: 106.5 kB / 0.5178 GB, free: 5.363 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.473e-05/0.1369, allocations: 4.375 kB / 0.5179 GB, free: 5.359 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.228e-06/0.1369, allocations: 384 / 0.5179 GB, free: 5.359 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001216/0.137, allocations: 59.95 kB / 0.5179 GB, free: 5.289 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.484e-06/0.137, allocations: 192 / 0.5179 GB, free: 5.289 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.007e-05/0.137, allocations: 3.938 kB / 0.5179 GB, free: 5.285 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.137, allocations: 0 / 0.5179 GB, free: 5.285 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.673e-05/0.1371, allocations: 29.7 kB / 0.5179 GB, free: 5.25 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001324/0.1372, allocations: 101.3 kB / 0.518 GB, free: 5.121 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.038e-05/0.1373, allocations: 44.22 kB / 0.5181 GB, free: 5.062 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.805e-05/0.1373, allocations: 38.64 kB / 0.5181 GB, free: 5.016 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.368e-06/0.1373, allocations: 0 / 0.5181 GB, free: 5.016 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.445e-05/0.1374, allocations: 56.27 kB / 0.5182 GB, free: 4.945 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.51e-07/0.1374, allocations: 0 / 0.5182 GB, free: 4.945 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002428/0.1376, allocations: 122.7 kB / 0.5183 GB, free: 4.801 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.26e-05/0.1377, allocations: 81.11 kB / 0.5184 GB, free: 4.703 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.327e-05/0.1377, allocations: 89.86 kB / 0.5185 GB, free: 4.605 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.898e-05/0.1378, allocations: 29.83 kB / 0.5185 GB, free: 4.57 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.255e-05/0.1378, allocations: 80.14 kB / 0.5186 GB, free: 4.488 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.203e-05/0.1378, allocations: 0 / 0.5186 GB, free: 4.488 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.899e-05/0.1379, allocations: 21.66 kB / 0.5186 GB, free: 4.461 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001566/0.138, allocations: 310.8 kB / 0.5189 GB, free: 4.148 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.805e-05/0.1381, allocations: 25.7 kB / 0.5189 GB, free: 4.117 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.422e-05/0.1381, allocations: 29.7 kB / 0.5189 GB, free: 4.082 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.628e-05/0.1382, allocations: 64.25 kB / 0.519 GB, free: 4.004 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.1382, allocations: 0 / 0.519 GB, free: 4.004 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.86e-05/0.1383, allocations: 93.17 kB / 0.5191 GB, free: 3.895 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.623e-05/0.1383, allocations: 29.7 kB / 0.5191 GB, free: 3.859 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.1383, allocations: 0 / 0.5191 GB, free: 3.859 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.796e-05/0.1383, allocations: 3.984 kB / 0.5191 GB, free: 3.855 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.196e-06/0.1383, allocations: 3.938 kB / 0.5191 GB, free: 3.852 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.5e-06/0.1383, allocations: 3.938 kB / 0.5191 GB, free: 3.848 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.875e-05/0.1383, allocations: 11.88 kB / 0.5191 GB, free: 3.836 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.452e-06/0.1383, allocations: 0 / 0.5191 GB, free: 3.836 MB / 398.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.0001065/0.1385, allocations: 135.5 kB / 0.5193 GB, free: 3.688 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.18e-05/0.1385, allocations: 4 kB / 0.5193 GB, free: 3.684 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.258e-06/0.1385, allocations: 7.031 kB / 0.5193 GB, free: 3.68 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.1385, allocations: 3.938 kB / 0.5193 GB, free: 3.676 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.1385, allocations: 0 / 0.5193 GB, free: 3.676 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.1385, allocations: 4 kB / 0.5193 GB, free: 3.672 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.108e-05/0.1386, allocations: 105.3 kB / 0.5194 GB, free: 3.539 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.1386, allocations: 0 / 0.5194 GB, free: 3.539 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.11e-07/0.1386, allocations: 0 / 0.5194 GB, free: 3.539 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.1386, allocations: 0 / 0.5194 GB, free: 3.539 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.892e-06/0.1386, allocations: 0 / 0.5194 GB, free: 3.539 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.1386, allocations: 0 / 0.5194 GB, free: 3.539 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.1386, allocations: 3.938 kB / 0.5194 GB, free: 3.535 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001226/0.1387, allocations: 120.5 kB / 0.5195 GB, free: 3.387 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.123e-06/0.1387, allocations: 4 kB / 0.5195 GB, free: 3.383 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.245e-05/0.1387, allocations: 0 / 0.5195 GB, free: 3.383 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.025e-05/0.1387, allocations: 0 / 0.5195 GB, free: 3.383 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.773e-05/0.1388, allocations: 7.875 kB / 0.5195 GB, free: 3.375 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.552e-06/0.1388, allocations: 4 kB / 0.5195 GB, free: 3.371 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.76e-05/0.1388, allocations: 79.28 kB / 0.5196 GB, free: 3.293 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1388, allocations: 0 / 0.5196 GB, free: 3.293 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002263/0.139, allocations: 27.86 kB / 0.5196 GB, free: 3.266 MB / 398.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.0004961/0.1395, allocations: 199.1 kB / 0.5198 GB, free: 3.082 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000143/0.1397, allocations: 110.8 kB / 0.5199 GB, free: 2.949 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1397, allocations: 4.062 kB / 0.5199 GB, free: 2.945 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.52e-05/0.1397, allocations: 81.11 kB / 0.52 GB, free: 2.848 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001428/0.1399, allocations: 10.48 kB / 0.52 GB, free: 2.84 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002342/0.1401, allocations: 110.5 kB / 0.5201 GB, free: 2.699 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.205e-05/0.1402, allocations: 55.36 kB / 0.5202 GB, free: 2.625 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.311e-06/0.1402, allocations: 3.938 kB / 0.5202 GB, free: 2.621 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.851e-05/0.1402, allocations: 15.36 kB / 0.5202 GB, free: 2.605 MB / 398.1 MB Notification: Performance of SimCode: time 7.41e-07/0.1402, allocations: 0 / 0.5202 GB, free: 2.605 MB / 398.1 MB Notification: Performance of Templates: time 0.003445/0.1436, allocations: 0.5752 MB / 0.5207 GB, free: 2.031 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.sim & ./ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.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: 5.224348107352853]