Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestWriteFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/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_cpp_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestWriteFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002208/0.002213, allocations: 182.2 kB / 16.4 MB, free: 5.754 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.062/2.062, allocations: 205.4 MB / 222.5 MB, free: 9.109 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00117/0.001169, allocations: 98.5 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5119/0.5119, allocations: 43.55 MB / 362.7 MB, free: 51.87 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004676/0.0004676, allocations: 12 kB / 431.4 MB, free: 5.949 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1303/0.1308, allocations: 58.85 MB / 490.2 MB, free: 11.02 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.0006863/0.1315, allocations: 216.4 kB / 490.4 MB, free: 10.8 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006433/0.1322, allocations: 193.1 kB / 490.6 MB, free: 10.62 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.654e-05/0.1322, allocations: 0 / 490.6 MB, free: 10.62 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.049e-05/0.1322, allocations: 0 / 490.6 MB, free: 10.62 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 5.791e-06/0.1323, allocations: 0 / 490.6 MB, free: 10.62 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002785/0.1326, allocations: 39.83 kB / 490.6 MB, free: 10.58 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.553e-05/0.1326, allocations: 8 kB / 490.6 MB, free: 10.57 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.469e-05/0.1327, allocations: 0 / 490.6 MB, free: 10.57 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.698e-05/0.1327, allocations: 0 / 490.6 MB, free: 10.57 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.716e-05/0.1327, allocations: 3.984 kB / 490.7 MB, free: 10.57 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.924e-06/0.1327, allocations: 0 / 490.7 MB, free: 10.57 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001198/0.1329, allocations: 47.84 kB / 490.7 MB, free: 10.52 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 8.797e-06/0.1329, allocations: 3.984 kB / 490.7 MB, free: 10.52 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.825e-05/0.1329, allocations: 25.7 kB / 490.7 MB, free: 10.48 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001039/0.133, allocations: 19.98 kB / 490.7 MB, free: 10.46 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.224e-06/0.1331, allocations: 0 / 490.7 MB, free: 10.46 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1331, allocations: 0 / 490.7 MB, free: 10.46 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.238e-06/0.1331, allocations: 8 kB / 490.8 MB, free: 10.46 MB / 378.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.0003384/0.1334, allocations: 345.1 kB / 491.1 MB, free: 10.07 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.359e-05/0.1335, allocations: 8.031 kB / 491.1 MB, free: 10.06 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.008e-05/0.1335, allocations: 0 / 491.1 MB, free: 10.06 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001196/0.1337, allocations: 171 kB / 491.3 MB, free: 9.852 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.59e-05/0.1337, allocations: 8 kB / 491.3 MB, free: 9.844 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.496e-06/0.1337, allocations: 0 / 491.3 MB, free: 9.844 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.905e-05/0.1338, allocations: 25.7 kB / 491.3 MB, free: 9.812 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.366e-06/0.1338, allocations: 7.938 kB / 491.3 MB, free: 9.805 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.927e-06/0.1338, allocations: 4 kB / 491.3 MB, free: 9.801 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.1339, allocations: 0 / 491.3 MB, free: 9.801 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.171e-05/0.1339, allocations: 3.938 kB / 491.3 MB, free: 9.797 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001546/0.134, allocations: 149.6 kB / 491.5 MB, free: 9.602 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.452e-05/0.1341, allocations: 22.59 kB / 491.5 MB, free: 9.57 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.398e-06/0.1341, allocations: 0 / 491.5 MB, free: 9.57 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.919e-05/0.1342, allocations: 60.27 kB / 491.5 MB, free: 9.496 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.493e-06/0.1342, allocations: 4 kB / 491.5 MB, free: 9.492 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002123/0.1344, allocations: 67.31 kB / 491.6 MB, free: 9.414 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.606e-05/0.1345, allocations: 81.09 kB / 491.7 MB, free: 9.316 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.974e-05/0.1346, allocations: 93.86 kB / 491.8 MB, free: 9.215 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.519e-05/0.1346, allocations: 25.7 kB / 491.8 MB, free: 9.184 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.076e-05/0.1347, allocations: 150.6 kB / 492 MB, free: 9.035 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.239e-05/0.1347, allocations: 0 / 492 MB, free: 9.035 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.765e-06/0.1347, allocations: 0 / 492 MB, free: 9.035 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001351/0.1349, allocations: 326.9 kB / 492.3 MB, free: 8.707 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.297e-05/0.1349, allocations: 0 / 492.3 MB, free: 8.707 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.138e-05/0.1349, allocations: 4 kB / 492.3 MB, free: 8.703 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.259e-05/0.135, allocations: 25.7 kB / 492.3 MB, free: 8.672 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.135, allocations: 0 / 492.3 MB, free: 8.672 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001047/0.1351, allocations: 67.33 kB / 492.4 MB, free: 8.594 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.889e-05/0.1352, allocations: 29.7 kB / 492.4 MB, free: 8.559 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.165e-06/0.1352, allocations: 3.984 kB / 492.4 MB, free: 8.555 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.438e-05/0.1352, allocations: 0 / 492.4 MB, free: 8.555 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.045e-06/0.1352, allocations: 12.09 kB / 492.4 MB, free: 8.543 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.54e-06/0.1352, allocations: 0 / 492.4 MB, free: 8.543 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.132e-05/0.1353, allocations: 0 / 492.4 MB, free: 8.543 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.945e-06/0.1353, allocations: 0 / 492.4 MB, free: 8.543 MB / 378.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000111/0.1354, allocations: 147.5 kB / 492.6 MB, free: 8.383 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.177e-05/0.1354, allocations: 3.984 kB / 492.6 MB, free: 8.379 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.429e-05/0.1354, allocations: 3.125 kB / 492.6 MB, free: 8.375 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.1355, allocations: 0 / 492.6 MB, free: 8.375 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.1355, allocations: 0 / 492.6 MB, free: 8.375 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.1355, allocations: 4 kB / 492.6 MB, free: 8.371 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001288/0.1356, allocations: 149.6 kB / 492.7 MB, free: 8.176 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.1356, allocations: 3.938 kB / 492.7 MB, free: 8.172 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.072e-06/0.1356, allocations: 0 / 492.7 MB, free: 8.172 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.588e-06/0.1357, allocations: 3.984 kB / 492.7 MB, free: 8.168 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.105e-06/0.1357, allocations: 0 / 492.7 MB, free: 8.168 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.1357, allocations: 0 / 492.7 MB, free: 8.168 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.1357, allocations: 0 / 492.7 MB, free: 8.168 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001405/0.1358, allocations: 94.78 kB / 492.8 MB, free: 8.051 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.251e-05/0.1359, allocations: 85.05 kB / 492.9 MB, free: 7.949 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.745e-05/0.1359, allocations: 4 kB / 492.9 MB, free: 7.945 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.383e-05/0.136, allocations: 0 / 492.9 MB, free: 7.945 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.062e-05/0.136, allocations: 0 / 492.9 MB, free: 7.945 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.749e-06/0.136, allocations: 0 / 492.9 MB, free: 7.945 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.774e-05/0.136, allocations: 76.67 kB / 493 MB, free: 7.871 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.31e-07/0.1361, allocations: 0 / 493 MB, free: 7.871 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002834/0.1363, allocations: 16 kB / 493 MB, free: 7.855 MB / 378.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005378/0.1369, allocations: 208.2 kB / 493.2 MB, free: 7.668 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001302/0.137, allocations: 59.41 kB / 493.3 MB, free: 7.598 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.1371, allocations: 0 / 493.3 MB, free: 7.598 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.902e-05/0.1371, allocations: 63.39 kB / 493.3 MB, free: 7.523 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001081/0.1372, allocations: 0 / 493.3 MB, free: 7.523 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002323/0.1375, allocations: 108.3 kB / 493.4 MB, free: 7.383 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002832/0.1378, allocations: 0.6731 MB / 494.1 MB, free: 6.684 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.367e-05/0.1378, allocations: 7.438 kB / 494.1 MB, free: 6.68 MB / 378.7 MB Notification: Performance of SimCode: time 1.092e-06/0.1378, allocations: 4 kB / 494.1 MB, free: 6.676 MB / 378.7 MB Notification: Performance of Templates: time 0.003204/0.141, allocations: 0.773 MB / 494.9 MB, free: 5.902 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestWriteFile.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestWriteFile.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestWriteFile --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestWriteFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches