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/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_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001077/0.001077, allocations: 183.9 kB / 15.76 MB, free: 6.363 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.697/1.697, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.001027/0.001027, allocations: 98.8 kB / 270.2 MB, free: 13.37 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.2297/0.2297, allocations: 43.57 MB / 362.1 MB, free: 11.3 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004137/0.0004134, allocations: 8 kB / 431.4 MB, free: 19.62 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1328/0.1332, allocations: 58.87 MB / 490.2 MB, free: 8.688 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.408/0.5412, allocations: 84.56 MB / 0.5613 GB, free: 15.25 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002781/0.5416, allocations: 65.53 kB / 0.5614 GB, free: 15.22 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0046/0.5462, allocations: 1.424 MB / 0.5628 GB, free: 13.99 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.435e-06/0.5462, allocations: 0 / 0.5628 GB, free: 13.99 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.72e-06/0.5462, allocations: 0 / 0.5628 GB, free: 13.99 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.0003612/0.5466, allocations: 355.8 kB / 0.5631 GB, free: 13.6 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.783e-05/0.5467, allocations: 8.031 kB / 0.5631 GB, free: 13.59 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.939e-05/0.5467, allocations: 0 / 0.5631 GB, free: 13.59 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001189/0.5468, allocations: 163 kB / 0.5633 GB, free: 13.39 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.707e-05/0.5469, allocations: 0 / 0.5633 GB, free: 13.39 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.957e-06/0.5469, allocations: 1.188 kB / 0.5633 GB, free: 13.39 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001/0.547, allocations: 33.69 kB / 0.5633 GB, free: 13.35 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.177e-06/0.547, allocations: 4 kB / 0.5633 GB, free: 13.35 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.087e-06/0.547, allocations: 0 / 0.5633 GB, free: 13.35 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.528e-06/0.547, allocations: 0 / 0.5633 GB, free: 13.35 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.832e-05/0.5471, allocations: 7.938 kB / 0.5633 GB, free: 13.34 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002003/0.5473, allocations: 151.5 kB / 0.5635 GB, free: 13.15 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.593e-05/0.5473, allocations: 14.58 kB / 0.5635 GB, free: 13.12 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.067e-05/0.5474, allocations: 4.094 kB / 0.5635 GB, free: 13.12 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.179e-05/0.5474, allocations: 60.27 kB / 0.5636 GB, free: 13.05 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.824e-06/0.5474, allocations: 0 / 0.5636 GB, free: 13.05 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002096/0.5477, allocations: 70.02 kB / 0.5636 GB, free: 12.97 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.341e-05/0.5477, allocations: 77.11 kB / 0.5637 GB, free: 12.88 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.549e-05/0.5478, allocations: 85 kB / 0.5638 GB, free: 12.79 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.702e-05/0.5478, allocations: 25.7 kB / 0.5638 GB, free: 12.75 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.346e-05/0.5479, allocations: 83.52 kB / 0.5639 GB, free: 12.67 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.515e-05/0.5479, allocations: 0 / 0.5639 GB, free: 12.67 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.475e-06/0.5479, allocations: 4 kB / 0.5639 GB, free: 12.67 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.5481, allocations: 315 kB / 0.5642 GB, free: 12.35 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.004e-05/0.5481, allocations: 0 / 0.5642 GB, free: 12.35 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.546e-06/0.5481, allocations: 3.984 kB / 0.5642 GB, free: 12.35 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.939e-05/0.5481, allocations: 29.7 kB / 0.5642 GB, free: 12.31 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.5482, allocations: 7.875 kB / 0.5642 GB, free: 12.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.745e-05/0.5483, allocations: 66.36 kB / 0.5643 GB, free: 12.23 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.002e-05/0.5483, allocations: 37.14 kB / 0.5643 GB, free: 12.19 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.433e-06/0.5483, allocations: 0 / 0.5643 GB, free: 12.19 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.85e-05/0.5484, allocations: 4.094 kB / 0.5643 GB, free: 12.19 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.708e-06/0.5484, allocations: 4.859 kB / 0.5643 GB, free: 12.18 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.621e-06/0.5484, allocations: 0 / 0.5643 GB, free: 12.18 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.69e-05/0.5484, allocations: 0 / 0.5643 GB, free: 12.18 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.184e-05/0.5484, allocations: 4 kB / 0.5643 GB, free: 12.18 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.0001043/0.5485, allocations: 135.5 kB / 0.5645 GB, free: 12.03 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.223e-05/0.5486, allocations: 3.953 kB / 0.5645 GB, free: 12.03 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.485e-05/0.5486, allocations: 3.125 kB / 0.5645 GB, free: 12.02 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.5486, allocations: 4 kB / 0.5645 GB, free: 12.02 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.5486, allocations: 4 kB / 0.5645 GB, free: 12.01 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.656e-06/0.5486, allocations: 0 / 0.5645 GB, free: 12.01 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001412/0.5488, allocations: 156.7 kB / 0.5646 GB, free: 11.81 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.5488, allocations: 0 / 0.5646 GB, free: 11.81 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.12e-07/0.5488, allocations: 0 / 0.5646 GB, free: 11.81 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.69e-06/0.5488, allocations: 7.953 kB / 0.5646 GB, free: 11.8 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.085e-06/0.5488, allocations: 0 / 0.5646 GB, free: 11.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.5488, allocations: 0 / 0.5646 GB, free: 11.8 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.5488, allocations: 0 / 0.5646 GB, free: 11.8 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001359/0.549, allocations: 97.52 kB / 0.5647 GB, free: 11.69 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.978e-05/0.549, allocations: 77.11 kB / 0.5648 GB, free: 11.59 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.61e-05/0.5491, allocations: 3.953 kB / 0.5648 GB, free: 11.59 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.212e-05/0.5491, allocations: 0 / 0.5648 GB, free: 11.59 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.796e-05/0.5491, allocations: 0 / 0.5648 GB, free: 11.59 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.142e-06/0.5491, allocations: 4 kB / 0.5648 GB, free: 11.59 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.675e-05/0.5492, allocations: 78.16 kB / 0.5649 GB, free: 11.51 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5492, allocations: 0 / 0.5649 GB, free: 11.51 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003139/0.5495, allocations: 23.98 kB / 0.5649 GB, free: 11.49 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.0004791/0.55, allocations: 202.3 kB / 0.5651 GB, free: 11.3 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001151/0.5501, allocations: 63.16 kB / 0.5652 GB, free: 11.23 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.5501, allocations: 0 / 0.5652 GB, free: 11.23 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.102e-05/0.5502, allocations: 63.28 kB / 0.5652 GB, free: 11.16 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001117/0.5503, allocations: 3.938 kB / 0.5652 GB, free: 11.16 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001936/0.5505, allocations: 76.86 kB / 0.5653 GB, free: 11.05 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003175/0.5508, allocations: 0.6692 MB / 0.5659 GB, free: 10.36 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 8.035e-06/0.5509, allocations: 0 / 0.5659 GB, free: 10.36 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.591e-05/0.5509, allocations: 7.562 kB / 0.566 GB, free: 10.35 MB / 378.7 MB Notification: Performance of SimCode: time 2.91e-07/0.5509, allocations: 8 kB / 0.566 GB, free: 10.34 MB / 378.7 MB Notification: Performance of Templates: time 0.003447/0.5544, allocations: 0.5552 MB / 0.5665 GB, free: 9.797 MB / 378.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