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.001486/0.001485, allocations: 181.3 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.994/1.994, allocations: 205.2 MB / 219.4 MB, free: 14.27 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.001088/0.001087, allocations: 86.66 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2745/0.2745, allocations: 43.49 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.502e-05/3.507e-05, allocations: 4 kB / 425.3 MB, free: 23.38 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1144/0.1144, allocations: 58.85 MB / 484.1 MB, free: 12.48 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5256/0.6401, allocations: 84.47 MB / 0.5553 GB, free: 3.156 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002965/0.6404, allocations: 65.34 kB / 0.5553 GB, free: 3.125 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007295/0.6478, allocations: 1.42 MB / 0.5567 GB, free: 1.895 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.306e-06/0.6478, allocations: 4 kB / 0.5567 GB, free: 1.891 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.153e-06/0.6479, allocations: 0 / 0.5567 GB, free: 1.891 MB / 362.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.0002872/0.6482, allocations: 340.3 kB / 0.557 GB, free: 1.508 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.074e-05/0.6482, allocations: 15.34 kB / 0.5571 GB, free: 1.496 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.724e-05/0.6483, allocations: 3.375 kB / 0.5571 GB, free: 1.496 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.732e-05/0.6484, allocations: 163 kB / 0.5572 GB, free: 1.297 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.661e-05/0.6484, allocations: 0 / 0.5572 GB, free: 1.297 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.179e-05/0.6485, allocations: 0 / 0.5572 GB, free: 1.297 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.839e-05/0.6486, allocations: 33.69 kB / 0.5573 GB, free: 1.258 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.229e-05/0.6486, allocations: 3.984 kB / 0.5573 GB, free: 1.254 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.351e-05/0.6486, allocations: 4 kB / 0.5573 GB, free: 1.25 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.341e-06/0.6487, allocations: 0 / 0.5573 GB, free: 1.25 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.866e-05/0.6487, allocations: 3.938 kB / 0.5573 GB, free: 1.246 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001325/0.6489, allocations: 149.6 kB / 0.5574 GB, free: 1.051 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.501e-05/0.6489, allocations: 20.2 kB / 0.5574 GB, free: 1.027 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.631e-05/0.649, allocations: 8.953 kB / 0.5574 GB, free: 1.016 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.113e-05/0.649, allocations: 0 / 0.5574 GB, free: 1.016 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.828e-05/0.6491, allocations: 65.06 kB / 0.5575 GB, free: 0.9375 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 2.825e-06/0.6491, allocations: 0 / 0.5575 GB, free: 0.9375 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001949/0.6493, allocations: 67.22 kB / 0.5576 GB, free: 0.8633 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.293e-05/0.6494, allocations: 77.11 kB / 0.5576 GB, free: 0.7695 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.866e-05/0.6494, allocations: 85 kB / 0.5577 GB, free: 0.6797 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.392e-05/0.6495, allocations: 25.7 kB / 0.5577 GB, free: 0.6484 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.827e-05/0.6495, allocations: 150.6 kB / 0.5579 GB, free: 0.5 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.156e-05/0.6495, allocations: 0 / 0.5579 GB, free: 0.5 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.332e-06/0.6496, allocations: 4 kB / 0.5579 GB, free: 0.4961 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.823e-05/0.6497, allocations: 318.9 kB / 0.5582 GB, free: 180 kB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.404e-05/0.6497, allocations: 0 / 0.5582 GB, free: 180 kB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.387e-06/0.6497, allocations: 0 / 0.5582 GB, free: 180 kB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.445e-05/0.6498, allocations: 29.7 kB / 0.5582 GB, free: 144 kB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.6498, allocations: 0 / 0.5582 GB, free: 144 kB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001048/0.6499, allocations: 69.53 kB / 0.5583 GB, free: 68 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.818e-05/0.65, allocations: 37.14 kB / 0.5583 GB, free: 28 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.287e-06/0.65, allocations: 3.984 kB / 0.5583 GB, free: 24 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.652e-05/0.65, allocations: 4.094 kB / 0.5583 GB, free: 20 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.876e-06/0.65, allocations: 0 / 0.5583 GB, free: 20 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.807e-06/0.6501, allocations: 0.625 kB / 0.5583 GB, free: 20 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.792e-05/0.6501, allocations: 1.062 kB / 0.5583 GB, free: 20 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.278e-05/0.6501, allocations: 4 kB / 0.5583 GB, free: 16 kB / 362.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 () * 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.0001497/0.6503, allocations: 126.7 kB / 0.5585 GB, free: 15.88 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.68e-05/0.6503, allocations: 3.953 kB / 0.5585 GB, free: 15.88 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.083e-05/0.6504, allocations: 7.062 kB / 0.5585 GB, free: 15.86 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.6504, allocations: 4 kB / 0.5585 GB, free: 15.86 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.6504, allocations: 4 kB / 0.5585 GB, free: 15.86 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.6505, allocations: 0 / 0.5585 GB, free: 15.86 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001731/0.6506, allocations: 149.4 kB / 0.5586 GB, free: 15.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/0.6507, allocations: 0 / 0.5586 GB, free: 15.66 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.396e-06/0.6507, allocations: 0.875 kB / 0.5586 GB, free: 15.66 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.939e-06/0.6507, allocations: 7.953 kB / 0.5586 GB, free: 15.66 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.167e-05/0.6507, allocations: 0 / 0.5586 GB, free: 15.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/0.6508, allocations: 0 / 0.5586 GB, free: 15.66 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.574e-06/0.6508, allocations: 0 / 0.5586 GB, free: 15.66 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001855/0.651, allocations: 97.95 kB / 0.5587 GB, free: 15.54 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.77e-05/0.6511, allocations: 77.11 kB / 0.5588 GB, free: 15.45 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.989e-05/0.6511, allocations: 7.953 kB / 0.5588 GB, free: 15.44 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.102e-05/0.6512, allocations: 0 / 0.5588 GB, free: 15.44 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.236e-05/0.6512, allocations: 3.984 kB / 0.5588 GB, free: 15.43 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.474e-06/0.6512, allocations: 4 kB / 0.5588 GB, free: 15.43 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.063e-05/0.6513, allocations: 75.28 kB / 0.5589 GB, free: 15.36 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.136e-06/0.6513, allocations: 0 / 0.5589 GB, free: 15.36 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004889/0.6518, allocations: 31.2 kB / 0.5589 GB, free: 15.33 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) * 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.000716/0.6526, allocations: 195 kB / 0.5591 GB, free: 15.16 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001297/0.6527, allocations: 63.34 kB / 0.5592 GB, free: 15.08 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.6527, allocations: 0 / 0.5592 GB, free: 15.08 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 6.809e-05/0.6528, allocations: 55.41 kB / 0.5592 GB, free: 15.02 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001405/0.653, allocations: 0 / 0.5592 GB, free: 15.02 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002055/0.6532, allocations: 70.2 kB / 0.5593 GB, free: 14.92 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003462/0.6536, allocations: 0.677 MB / 0.5599 GB, free: 14.22 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.849e-05/0.6536, allocations: 7.438 kB / 0.5599 GB, free: 14.21 MB / 378.7 MB Notification: Performance of SimCode: time 1.323e-06/0.6536, allocations: 128 / 0.5599 GB, free: 14.21 MB / 378.7 MB Notification: Performance of Templates: time 0.00407/0.6577, allocations: 0.7686 MB / 0.5607 GB, free: 13.44 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