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.002268/0.002267, allocations: 184.4 kB / 16.41 MB, free: 5.703 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.011/2.011, allocations: 205.4 MB / 222.5 MB, free: 9.137 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.001121/0.001121, allocations: 90.92 kB / 270.9 MB, free: 8.391 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.4968/0.4968, allocations: 43.55 MB / 362.7 MB, free: 52.16 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000481/0.0004812, allocations: 16 kB / 431.4 MB, free: 6.191 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.1196, allocations: 58.83 MB / 490.2 MB, free: 11.27 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4758/0.5954, allocations: 84.56 MB / 0.5613 GB, free: 2.203 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002047/0.5956, allocations: 63.97 kB / 0.5614 GB, free: 2.141 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004805/0.6004, allocations: 1.42 MB / 0.5627 GB, free: 0.7344 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.585e-06/0.6005, allocations: 4 kB / 0.5627 GB, free: 0.7305 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.67e-06/0.6005, allocations: 0 / 0.5627 GB, free: 0.7305 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.0002215/0.6007, allocations: 349.1 kB / 0.5631 GB, free: 344 kB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.977e-05/0.6008, allocations: 12.03 kB / 0.5631 GB, free: 332 kB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.719e-05/0.6008, allocations: 0 / 0.5631 GB, free: 332 kB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.671e-05/0.6009, allocations: 162.5 kB / 0.5632 GB, free: 132 kB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.353e-05/0.6009, allocations: 0.5312 kB / 0.5632 GB, free: 132 kB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.13e-05/0.6009, allocations: 0.8125 kB / 0.5632 GB, free: 132 kB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.39e-05/0.601, allocations: 32.36 kB / 0.5633 GB, free: 96 kB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.865e-06/0.601, allocations: 0.6875 kB / 0.5633 GB, free: 96 kB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.048e-05/0.6011, allocations: 3.984 kB / 0.5633 GB, free: 92 kB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.6011, allocations: 3.984 kB / 0.5633 GB, free: 88 kB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.048e-05/0.6011, allocations: 4.969 kB / 0.5633 GB, free: 84 kB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001511/0.6013, allocations: 153.6 kB / 0.5634 GB, free: 15.88 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.38e-05/0.6013, allocations: 25.05 kB / 0.5635 GB, free: 15.85 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.794e-06/0.6013, allocations: 0 / 0.5635 GB, free: 15.85 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.689e-05/0.6014, allocations: 60.36 kB / 0.5635 GB, free: 15.78 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 1.353e-06/0.6014, allocations: 0 / 0.5635 GB, free: 15.78 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001885/0.6016, allocations: 67.33 kB / 0.5636 GB, free: 15.7 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.304e-05/0.6017, allocations: 77.11 kB / 0.5637 GB, free: 15.61 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.154e-05/0.6017, allocations: 92.91 kB / 0.5637 GB, free: 15.51 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.963e-05/0.6017, allocations: 29.83 kB / 0.5638 GB, free: 15.48 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.512e-05/0.6018, allocations: 150.6 kB / 0.5639 GB, free: 15.33 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.98e-05/0.6018, allocations: 0.9375 kB / 0.5639 GB, free: 15.33 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.675e-06/0.6019, allocations: 0 / 0.5639 GB, free: 15.33 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001294/0.602, allocations: 310.8 kB / 0.5642 GB, free: 15.02 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.006e-05/0.602, allocations: 5.594 kB / 0.5642 GB, free: 15.01 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.437e-06/0.602, allocations: 3.984 kB / 0.5642 GB, free: 15.01 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.963e-05/0.6021, allocations: 25.7 kB / 0.5643 GB, free: 14.98 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.275e-06/0.6021, allocations: 4.062 kB / 0.5643 GB, free: 14.97 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.448e-05/0.6022, allocations: 67.3 kB / 0.5643 GB, free: 14.89 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.845e-05/0.6022, allocations: 37.7 kB / 0.5644 GB, free: 14.85 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.6023, allocations: 3.125 kB / 0.5644 GB, free: 14.85 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.142e-05/0.6023, allocations: 0 / 0.5644 GB, free: 14.85 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.262e-06/0.6023, allocations: 0 / 0.5644 GB, free: 14.85 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.636e-06/0.6023, allocations: 5.781 kB / 0.5644 GB, free: 14.85 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.725e-05/0.6023, allocations: 0 / 0.5644 GB, free: 14.85 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.983e-06/0.6023, allocations: 0 / 0.5644 GB, free: 14.85 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 9.989e-05/0.6024, allocations: 143.6 kB / 0.5645 GB, free: 14.69 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.161e-05/0.6025, allocations: 3.953 kB / 0.5645 GB, free: 14.69 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.167e-05/0.6025, allocations: 3.125 kB / 0.5645 GB, free: 14.69 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.6025, allocations: 0 / 0.5645 GB, free: 14.69 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.6025, allocations: 0 / 0.5645 GB, free: 14.69 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.6025, allocations: 6.062 kB / 0.5645 GB, free: 14.68 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001097/0.6026, allocations: 145.7 kB / 0.5647 GB, free: 14.49 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.6027, allocations: 0 / 0.5647 GB, free: 14.49 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.012e-06/0.6027, allocations: 0 / 0.5647 GB, free: 14.49 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.458e-06/0.6027, allocations: 3.953 kB / 0.5647 GB, free: 14.49 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.953e-06/0.6027, allocations: 0 / 0.5647 GB, free: 14.49 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.599e-06/0.6027, allocations: 8 kB / 0.5647 GB, free: 14.48 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.6027, allocations: 0.7656 kB / 0.5647 GB, free: 14.48 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001184/0.6028, allocations: 90.77 kB / 0.5648 GB, free: 14.37 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.344e-05/0.6029, allocations: 79.14 kB / 0.5648 GB, free: 14.27 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.687e-05/0.6029, allocations: 7.953 kB / 0.5648 GB, free: 14.27 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.163e-05/0.6029, allocations: 0 / 0.5648 GB, free: 14.27 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.803e-05/0.603, allocations: 4 kB / 0.5648 GB, free: 14.26 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.809e-06/0.603, allocations: 4.031 kB / 0.5648 GB, free: 14.26 MB / 394.7 MB Notification: Performance of sorting global known variables: time 2.965e-05/0.603, allocations: 76.16 kB / 0.5649 GB, free: 14.18 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.603, allocations: 0 / 0.5649 GB, free: 14.18 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002747/0.6033, allocations: 23.98 kB / 0.5649 GB, free: 14.16 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.000484/0.6038, allocations: 208.1 kB / 0.5651 GB, free: 14 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001185/0.6039, allocations: 63.41 kB / 0.5652 GB, free: 13.93 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.604, allocations: 0 / 0.5652 GB, free: 13.93 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 4.108e-05/0.604, allocations: 55.34 kB / 0.5652 GB, free: 13.86 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.117e-05/0.6041, allocations: 4 kB / 0.5653 GB, free: 13.86 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00019/0.6043, allocations: 103.3 kB / 0.5654 GB, free: 13.72 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002692/0.6046, allocations: 0.6731 MB / 0.566 GB, free: 13.02 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.224e-05/0.6046, allocations: 7.438 kB / 0.566 GB, free: 13.02 MB / 394.7 MB Notification: Performance of SimCode: time 5.91e-07/0.6046, allocations: 0 / 0.566 GB, free: 13.02 MB / 394.7 MB Notification: Performance of Templates: time 0.002758/0.6074, allocations: 0.7668 MB / 0.5668 GB, free: 12.26 MB / 394.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