Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001064/0.001064, allocations: 181 kB / 16.08 MB, free: 5.523 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.74/1.74, allocations: 205.6 MB / 222.4 MB, free: 13.67 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008475/0.0008476, allocations: 98.17 kB / 270.8 MB, free: 13.2 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1988/0.1988, allocations: 43.68 MB / 362.7 MB, free: 11.07 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003408/0.0003409, allocations: 8 kB / 432.3 MB, free: 19.14 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1182/0.1186, allocations: 58.86 MB / 491.2 MB, free: 8.152 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.0005743/0.1192, allocations: 216.7 kB / 491.4 MB, free: 7.938 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005829/0.1198, allocations: 428.5 kB / 491.8 MB, free: 7.465 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.46e-05/0.1198, allocations: 4 kB / 491.8 MB, free: 7.461 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 1.18e-05/0.1198, allocations: 4 kB / 491.8 MB, free: 7.457 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 4.629e-06/0.1199, allocations: 0 / 491.8 MB, free: 7.457 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002435/0.1201, allocations: 35.91 kB / 491.8 MB, free: 7.422 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 3.027e-05/0.1201, allocations: 0 / 491.8 MB, free: 7.422 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.41e-05/0.1202, allocations: 0 / 491.8 MB, free: 7.422 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.54e-05/0.1202, allocations: 7.938 kB / 491.8 MB, free: 7.414 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.077e-05/0.1202, allocations: 0 / 491.8 MB, free: 7.414 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 5.19e-06/0.1203, allocations: 0 / 491.8 MB, free: 7.414 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001276/0.1204, allocations: 51.94 kB / 491.9 MB, free: 7.363 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 7.584e-06/0.1204, allocations: 3.938 kB / 491.9 MB, free: 7.359 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 3.477e-05/0.1204, allocations: 29.7 kB / 491.9 MB, free: 7.324 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001307/0.1206, allocations: 47.94 kB / 492 MB, free: 7.277 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.1206, allocations: 0 / 492 MB, free: 7.277 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1206, allocations: 0 / 492 MB, free: 7.277 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.426e-06/0.1206, allocations: 0 / 492 MB, free: 7.277 MB / 330.7 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.0002506/0.1209, allocations: 349.3 kB / 492.3 MB, free: 6.879 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.556e-05/0.1209, allocations: 8.031 kB / 492.3 MB, free: 6.871 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.532e-05/0.1209, allocations: 0.9375 kB / 492.3 MB, free: 6.871 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.996e-05/0.121, allocations: 164.3 kB / 492.5 MB, free: 6.672 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.131e-05/0.121, allocations: 4.375 kB / 492.5 MB, free: 6.668 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.484e-06/0.1211, allocations: 8.375 kB / 492.5 MB, free: 6.66 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.439e-05/0.1211, allocations: 30.25 kB / 492.5 MB, free: 6.625 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.703e-06/0.1212, allocations: 192 / 492.5 MB, free: 6.625 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.518e-06/0.1212, allocations: 7.875 kB / 492.5 MB, free: 6.617 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.458e-06/0.1212, allocations: 0 / 492.5 MB, free: 6.617 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.608e-05/0.1212, allocations: 4 kB / 492.5 MB, free: 6.613 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001187/0.1213, allocations: 145.7 kB / 492.7 MB, free: 6.422 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.237e-05/0.1214, allocations: 22.61 kB / 492.7 MB, free: 6.391 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.354e-05/0.1214, allocations: 8.859 kB / 492.7 MB, free: 6.379 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.001e-06/0.1214, allocations: 0 / 492.7 MB, free: 6.379 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.619e-05/0.1214, allocations: 60.25 kB / 492.8 MB, free: 6.305 MB / 330.7 MB Notification: Performance of pre-optimization done (n=1): time 1.082e-06/0.1215, allocations: 0 / 492.8 MB, free: 6.305 MB / 330.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001469/0.1216, allocations: 63.34 kB / 492.8 MB, free: 6.23 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.406e-05/0.1217, allocations: 81.11 kB / 492.9 MB, free: 6.133 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.467e-05/0.1217, allocations: 89.86 kB / 493 MB, free: 6.035 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.018e-05/0.1217, allocations: 33.77 kB / 493 MB, free: 5.996 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.853e-05/0.1217, allocations: 84.14 kB / 493.1 MB, free: 5.91 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.19e-05/0.1218, allocations: 0 / 493.1 MB, free: 5.91 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.723e-06/0.1218, allocations: 0 / 493.1 MB, free: 5.91 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.823e-05/0.1219, allocations: 314.8 kB / 493.4 MB, free: 5.594 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.442e-06/0.1219, allocations: 0 / 493.4 MB, free: 5.594 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.141e-06/0.1219, allocations: 4 kB / 493.4 MB, free: 5.59 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.16e-05/0.1219, allocations: 60.27 kB / 493.5 MB, free: 5.516 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-06/0.1219, allocations: 4.062 kB / 493.5 MB, free: 5.512 MB / 330.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.394e-05/0.122, allocations: 59.41 kB / 493.5 MB, free: 5.441 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.804e-05/0.1221, allocations: 37.69 kB / 493.6 MB, free: 5.398 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.817e-06/0.1221, allocations: 0 / 493.6 MB, free: 5.398 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.081e-05/0.1221, allocations: 7.875 kB / 493.6 MB, free: 5.391 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.475e-06/0.1221, allocations: 3.938 kB / 493.6 MB, free: 5.387 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.659e-06/0.1221, allocations: 0 / 493.6 MB, free: 5.387 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.481e-05/0.1221, allocations: 0 / 493.6 MB, free: 5.387 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.919e-06/0.1221, allocations: 0 / 493.6 MB, free: 5.387 MB / 330.7 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.142e-05/0.1222, allocations: 139.6 kB / 493.7 MB, free: 5.234 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.123e-06/0.1222, allocations: 0 / 493.7 MB, free: 5.234 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.183e-05/0.1222, allocations: 11.05 kB / 493.7 MB, free: 5.223 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.1222, allocations: 3.984 kB / 493.7 MB, free: 5.219 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.1223, allocations: 4 kB / 493.7 MB, free: 5.215 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.903e-06/0.1223, allocations: 0 / 493.7 MB, free: 5.215 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.91e-05/0.1223, allocations: 150 kB / 493.9 MB, free: 5.02 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/0.1224, allocations: 3.938 kB / 493.9 MB, free: 5.016 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.21e-07/0.1224, allocations: 0 / 493.9 MB, free: 5.016 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.363e-06/0.1224, allocations: 0 / 493.9 MB, free: 5.016 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.486e-06/0.1224, allocations: 7.938 kB / 493.9 MB, free: 5.008 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.1224, allocations: 4 kB / 493.9 MB, free: 5.004 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.1224, allocations: 0 / 493.9 MB, free: 5.004 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.54e-05/0.1225, allocations: 86.83 kB / 494 MB, free: 4.895 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.93e-05/0.1225, allocations: 81.11 kB / 494.1 MB, free: 4.797 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.918e-05/0.1225, allocations: 11.86 kB / 494.1 MB, free: 4.785 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.698e-06/0.1226, allocations: 0 / 494.1 MB, free: 4.785 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.188e-05/0.1226, allocations: 0 / 494.1 MB, free: 4.785 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.479e-06/0.1226, allocations: 8.031 kB / 494.1 MB, free: 4.777 MB / 330.7 MB Notification: Performance of sorting global known variables: time 2.505e-05/0.1226, allocations: 79.28 kB / 494.2 MB, free: 4.699 MB / 330.7 MB Notification: Performance of sort global known variables: time 1e-07/0.1226, allocations: 0 / 494.2 MB, free: 4.699 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002028/0.1228, allocations: 20 kB / 494.2 MB, free: 4.68 MB / 330.7 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.000354/0.1232, allocations: 224.8 kB / 494.4 MB, free: 4.492 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 6.913e-05/0.1233, allocations: 55.41 kB / 494.5 MB, free: 4.426 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.1233, allocations: 0 / 494.5 MB, free: 4.426 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 2.893e-05/0.1233, allocations: 59.39 kB / 494.5 MB, free: 4.355 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001066/0.1234, allocations: 0 / 494.5 MB, free: 4.355 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001552/0.1236, allocations: 86.73 kB / 494.6 MB, free: 4.242 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002054/0.1238, allocations: 0.6731 MB / 495.3 MB, free: 3.543 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 4.718e-06/0.1238, allocations: 0 / 495.3 MB, free: 3.543 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.405e-05/0.1238, allocations: 7.438 kB / 495.3 MB, free: 3.535 MB / 330.7 MB Notification: Performance of SimCode: time 4.1e-07/0.1238, allocations: 0 / 495.3 MB, free: 3.535 MB / 330.7 MB Notification: Performance of Templates: time 0.002666/0.1265, allocations: 0.5692 MB / 495.9 MB, free: 2.969 MB / 330.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.makefile (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) 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","../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches