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.0009556/0.000956, allocations: 180.7 kB / 16.77 MB, free: 5.047 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.292/1.292, allocations: 205.4 MB / 222.9 MB, free: 9.035 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.0007992/0.000799, allocations: 84.58 kB / 271.3 MB, free: 8.25 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.3092/0.3092, allocations: 43.56 MB / 363.1 MB, free: 51.89 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004139/0.000414, allocations: 12 kB / 432.6 MB, free: 4.984 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1187/0.1191, allocations: 58.85 MB / 491.5 MB, free: 10.05 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3218/0.4409, allocations: 84.59 MB / 0.5625 GB, free: 1.277 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002296/0.4412, allocations: 63.97 kB / 0.5626 GB, free: 1.215 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004253/0.4455, allocations: 1.385 MB / 0.564 GB, free: 15.84 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.316e-06/0.4455, allocations: 0 / 0.564 GB, free: 15.84 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.234e-06/0.4455, allocations: 1.312 kB / 0.564 GB, free: 15.84 MB / 394.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.0003688/0.4459, allocations: 359.5 kB / 0.5643 GB, free: 15.44 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.383e-05/0.446, allocations: 16.41 kB / 0.5643 GB, free: 15.43 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.872e-05/0.446, allocations: 5.531 kB / 0.5643 GB, free: 15.42 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001375/0.4462, allocations: 160.4 kB / 0.5645 GB, free: 15.23 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.815e-05/0.4462, allocations: 3.406 kB / 0.5645 GB, free: 15.23 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.359e-05/0.4462, allocations: 384 / 0.5645 GB, free: 15.23 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001105/0.4463, allocations: 34.25 kB / 0.5645 GB, free: 15.19 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.687e-06/0.4464, allocations: 192 / 0.5645 GB, free: 15.19 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.228e-05/0.4464, allocations: 3.938 kB / 0.5645 GB, free: 15.18 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.478e-06/0.4464, allocations: 0 / 0.5645 GB, free: 15.18 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.18e-05/0.4464, allocations: 4 kB / 0.5645 GB, free: 15.18 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001966/0.4466, allocations: 145.7 kB / 0.5647 GB, free: 14.99 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.137e-05/0.4467, allocations: 22.52 kB / 0.5647 GB, free: 14.96 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.252e-05/0.4467, allocations: 12.94 kB / 0.5647 GB, free: 14.94 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.104e-05/0.4467, allocations: 0 / 0.5647 GB, free: 14.94 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.224e-05/0.4468, allocations: 57.33 kB / 0.5647 GB, free: 14.87 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 1.233e-06/0.4468, allocations: 0 / 0.5647 GB, free: 14.87 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002229/0.4471, allocations: 67.34 kB / 0.5648 GB, free: 14.79 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.519e-05/0.4471, allocations: 81.05 kB / 0.5649 GB, free: 14.7 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.098e-05/0.4472, allocations: 98.47 kB / 0.565 GB, free: 14.59 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.899e-05/0.4472, allocations: 25.7 kB / 0.565 GB, free: 14.56 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.809e-05/0.4473, allocations: 84.14 kB / 0.5651 GB, free: 14.47 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.493e-05/0.4473, allocations: 0.9375 kB / 0.5651 GB, free: 14.47 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.454e-06/0.4473, allocations: 0 / 0.5651 GB, free: 14.47 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001356/0.4475, allocations: 310.8 kB / 0.5654 GB, free: 14.16 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.026e-05/0.4475, allocations: 3.297 kB / 0.5654 GB, free: 14.16 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.112e-06/0.4475, allocations: 4 kB / 0.5654 GB, free: 14.16 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.811e-05/0.4476, allocations: 60.27 kB / 0.5654 GB, free: 14.08 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.4476, allocations: 0 / 0.5654 GB, free: 14.08 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.681e-05/0.4477, allocations: 71.33 kB / 0.5655 GB, free: 14 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.536e-05/0.4477, allocations: 29.7 kB / 0.5655 GB, free: 13.96 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.4478, allocations: 0 / 0.5655 GB, free: 13.96 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.4478, allocations: 7.938 kB / 0.5656 GB, free: 13.96 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.322e-06/0.4478, allocations: 0 / 0.5656 GB, free: 13.96 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.553e-06/0.4478, allocations: 4.094 kB / 0.5656 GB, free: 13.95 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.568e-05/0.4478, allocations: 0 / 0.5656 GB, free: 13.95 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.384e-06/0.4479, allocations: 0 / 0.5656 GB, free: 13.95 MB / 394.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.0001153/0.448, allocations: 135.5 kB / 0.5657 GB, free: 13.8 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.246e-05/0.448, allocations: 3.984 kB / 0.5657 GB, free: 13.8 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.516e-05/0.448, allocations: 7.062 kB / 0.5657 GB, free: 13.8 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.448, allocations: 2 kB / 0.5657 GB, free: 13.8 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.4481, allocations: 0 / 0.5657 GB, free: 13.8 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.4481, allocations: 0.75 kB / 0.5657 GB, free: 13.8 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001393/0.4482, allocations: 149.7 kB / 0.5658 GB, free: 13.6 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/0.4482, allocations: 0 / 0.5658 GB, free: 13.6 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.81e-07/0.4482, allocations: 0 / 0.5658 GB, free: 13.6 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.481e-06/0.4483, allocations: 7.969 kB / 0.5658 GB, free: 13.59 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.094e-05/0.4483, allocations: 7.938 kB / 0.5659 GB, free: 13.59 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.4483, allocations: 0 / 0.5659 GB, free: 13.59 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.065e-06/0.4483, allocations: 4 kB / 0.5659 GB, free: 13.58 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001213/0.4484, allocations: 90.72 kB / 0.5659 GB, free: 13.47 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.647e-05/0.4485, allocations: 87.16 kB / 0.566 GB, free: 13.37 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.112e-05/0.4485, allocations: 7.938 kB / 0.566 GB, free: 13.36 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.337e-05/0.4486, allocations: 0 / 0.566 GB, free: 13.36 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.13e-05/0.4486, allocations: 0.6562 kB / 0.566 GB, free: 13.36 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.989e-06/0.4486, allocations: 2.812 kB / 0.566 GB, free: 13.36 MB / 394.7 MB Notification: Performance of sorting global known variables: time 3.53e-05/0.4486, allocations: 75.28 kB / 0.5661 GB, free: 13.29 MB / 394.7 MB Notification: Performance of sort global known variables: time 2e-07/0.4486, allocations: 0 / 0.5661 GB, free: 13.29 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003352/0.449, allocations: 20 kB / 0.5661 GB, free: 13.27 MB / 394.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.0005083/0.4495, allocations: 201.2 kB / 0.5663 GB, free: 13.11 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001082/0.4496, allocations: 67.34 kB / 0.5664 GB, free: 13.03 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.4497, allocations: 4.062 kB / 0.5664 GB, free: 13.03 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 5.162e-05/0.4497, allocations: 59.33 kB / 0.5664 GB, free: 12.96 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001881/0.4499, allocations: 4 kB / 0.5665 GB, free: 12.95 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001888/0.4501, allocations: 73.52 kB / 0.5665 GB, free: 12.86 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002941/0.4504, allocations: 0.6731 MB / 0.5672 GB, free: 12.16 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 1.016e-05/0.4504, allocations: 7.969 kB / 0.5672 GB, free: 12.15 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.048e-05/0.4505, allocations: 7.438 kB / 0.5672 GB, free: 12.14 MB / 394.7 MB Notification: Performance of SimCode: time 2.81e-07/0.4505, allocations: 0 / 0.5672 GB, free: 12.14 MB / 394.7 MB Notification: Performance of Templates: time 0.003724/0.4542, allocations: 0.569 MB / 0.5678 GB, free: 11.59 MB / 394.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/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_ModelicaTest.Utilities.TestWriteFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches