Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile") translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00212/0.00212, allocations: 104.4 kB / 18.35 MB, free: 4.516 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002478/0.002478, allocations: 187 kB / 19.29 MB, free: 3.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.399/1.399, allocations: 205.1 MB / 225.2 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001174/0.001174, allocations: 51.92 kB / 282.1 MB, free: 2.473 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08078/0.08197, allocations: 46.64 MB / 328.7 MB, free: 3.766 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001619/0.08362, allocations: 488.6 kB / 329.2 MB, free: 3.285 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002598/0.08389, allocations: 65.25 kB / 329.3 MB, free: 3.223 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.318e-05/0.08394, allocations: 0 / 329.3 MB, free: 3.223 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 4.306e-05/0.084, allocations: 3.938 kB / 329.3 MB, free: 3.219 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 7.268e-05/0.08408, allocations: 19.92 kB / 329.3 MB, free: 3.199 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001881/0.08427, allocations: 23.97 kB / 329.3 MB, free: 3.176 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001052/0.08439, allocations: 15.98 kB / 329.3 MB, free: 3.16 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.156e-05/0.08443, allocations: 0 / 329.3 MB, free: 3.16 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.339e-05/0.08447, allocations: 19.97 kB / 329.3 MB, free: 3.141 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.941e-05/0.08456, allocations: 23.92 kB / 329.4 MB, free: 3.117 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 1.435e-05/0.08458, allocations: 0 / 329.4 MB, free: 3.117 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.172e-05/0.08462, allocations: 7.938 kB / 329.4 MB, free: 3.109 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 3.658e-05/0.08466, allocations: 4 kB / 329.4 MB, free: 3.105 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 3.426e-05/0.0847, allocations: 15.92 kB / 329.4 MB, free: 3.09 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 9.069e-05/0.0848, allocations: 31.91 kB / 329.4 MB, free: 3.059 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.08481, allocations: 0 / 329.4 MB, free: 3.059 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.364e-06/0.08482, allocations: 0 / 329.4 MB, free: 3.059 MB / 270.1 MB Notification: Performance of Transformations before backend: time 4.228e-06/0.08483, allocations: 0 / 329.4 MB, free: 3.059 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0003885/0.08522, allocations: 357.2 kB / 329.8 MB, free: 2.652 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.08527, allocations: 12.03 kB / 329.8 MB, free: 2.641 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.539e-05/0.08531, allocations: 4.844 kB / 329.8 MB, free: 2.637 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001364/0.08545, allocations: 168.3 kB / 330 MB, free: 2.434 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.966e-06/0.08546, allocations: 384 / 330 MB, free: 2.434 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.385e-05/0.08548, allocations: 4.375 kB / 330 MB, free: 2.43 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001365/0.08562, allocations: 66.23 kB / 330 MB, free: 2.359 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.729e-06/0.08564, allocations: 192 / 330 MB, free: 2.359 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.202e-05/0.08566, allocations: 7.875 kB / 330 MB, free: 2.352 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.08567, allocations: 0 / 330 MB, free: 2.352 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.704e-05/0.08572, allocations: 31.92 kB / 330.1 MB, free: 2.32 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001681/0.08589, allocations: 157.7 kB / 330.2 MB, free: 2.117 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.266e-05/0.08597, allocations: 46.56 kB / 330.3 MB, free: 2.062 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.981e-05/0.08602, allocations: 36.92 kB / 330.3 MB, free: 2.023 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.539e-06/0.08603, allocations: 0 / 330.3 MB, free: 2.023 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.87e-05/0.08608, allocations: 60.27 kB / 330.4 MB, free: 1.949 MB / 270.1 MB Notification: Performance of pre-optimization done (n=4): time 8.91e-07/0.08609, allocations: 0 / 330.4 MB, free: 1.949 MB / 270.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003058/0.0864, allocations: 191.1 kB / 330.5 MB, free: 1.75 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.822e-05/0.08648, allocations: 81.11 kB / 330.6 MB, free: 1.652 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001033/0.08659, allocations: 109.8 kB / 330.7 MB, free: 1.535 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 1.553e-05/0.08661, allocations: 25.7 kB / 330.8 MB, free: 1.504 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.2e-05/0.08667, allocations: 88.17 kB / 330.8 MB, free: 1.414 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.156e-05/0.0867, allocations: 7.891 kB / 330.9 MB, free: 1.406 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.811e-05/0.08674, allocations: 25.72 kB / 330.9 MB, free: 1.375 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001278/0.08687, allocations: 310.8 kB / 331.2 MB, free: 1.062 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.046e-05/0.08692, allocations: 31.98 kB / 331.2 MB, free: 1.031 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.791e-05/0.08695, allocations: 23.98 kB / 331.2 MB, free: 1.008 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001167/0.08708, allocations: 120.2 kB / 331.4 MB, free: 0.875 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.08709, allocations: 0 / 331.4 MB, free: 0.875 MB / 270.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001639/0.08726, allocations: 159.6 kB / 331.5 MB, free: 0.707 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.412e-05/0.0873, allocations: 37.69 kB / 331.5 MB, free: 0.6641 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.08731, allocations: 3.938 kB / 331.5 MB, free: 0.6602 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.617e-05/0.08733, allocations: 0 / 331.5 MB, free: 0.6602 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.254e-06/0.08734, allocations: 4 kB / 331.6 MB, free: 0.6562 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/0.08736, allocations: 4 kB / 331.6 MB, free: 0.6523 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.037e-05/0.08739, allocations: 192 / 331.6 MB, free: 0.6523 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.166e-05/0.0874, allocations: 4 kB / 331.6 MB, free: 0.6484 MB / 270.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (success4,success3,success2,success1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001063/0.08752, allocations: 147.5 kB / 331.7 MB, free: 500 kB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.557e-05/0.08754, allocations: 11.92 kB / 331.7 MB, free: 488 kB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.66e-05/0.08756, allocations: 11.84 kB / 331.7 MB, free: 472 kB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-06/0.08757, allocations: 0 / 331.7 MB, free: 472 kB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.08757, allocations: 0 / 331.7 MB, free: 472 kB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.08758, allocations: 0 / 331.7 MB, free: 472 kB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001211/0.08771, allocations: 165.6 kB / 331.9 MB, free: 256 kB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.42e-07/0.08771, allocations: 3.938 kB / 331.9 MB, free: 252 kB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.08772, allocations: 0 / 331.9 MB, free: 252 kB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.192e-06/0.08772, allocations: 0 / 331.9 MB, free: 252 kB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.056e-05/0.08774, allocations: 7.938 kB / 331.9 MB, free: 244 kB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.12e-07/0.08774, allocations: 0 / 331.9 MB, free: 244 kB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.08775, allocations: 4 kB / 331.9 MB, free: 240 kB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002004/0.08796, allocations: 194.7 kB / 332.1 MB, free: 20 kB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.41e-05/0.08802, allocations: 81.02 kB / 332.2 MB, free: 15.92 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.797e-05/0.08805, allocations: 7.938 kB / 332.2 MB, free: 15.91 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.21e-05/0.08806, allocations: 0 / 332.2 MB, free: 15.91 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.375e-05/0.08808, allocations: 4 kB / 332.2 MB, free: 15.91 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.779e-06/0.08809, allocations: 0 / 332.2 MB, free: 15.91 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.487e-05/0.08815, allocations: 91.3 kB / 332.3 MB, free: 15.82 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.08816, allocations: 4 kB / 332.3 MB, free: 15.82 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0001963/0.08836, allocations: 16 kB / 332.3 MB, free: 15.8 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (success1,success2,success3,success4) * Number of discrete states: 4 (success4,success3,success2,success1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002701/0.08864, allocations: 130.3 kB / 332.4 MB, free: 15.67 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001722/0.08882, allocations: 131.3 kB / 332.5 MB, free: 15.53 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.08883, allocations: 0 / 332.5 MB, free: 15.53 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 6.948e-05/0.0889, allocations: 91.45 kB / 332.6 MB, free: 15.43 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000142/0.08905, allocations: 11.98 kB / 332.6 MB, free: 15.42 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002627/0.08932, allocations: 137 kB / 332.8 MB, free: 15.26 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002602/0.08959, allocations: 0.6846 MB / 333.5 MB, free: 14.55 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 5.51e-06/0.0896, allocations: 0 / 333.5 MB, free: 14.55 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.041e-05/0.08962, allocations: 7.438 kB / 333.5 MB, free: 14.54 MB / 286.1 MB Notification: Performance of SimCode: time 2.4e-07/0.08962, allocations: 0 / 333.5 MB, free: 14.54 MB / 286.1 MB Notification: Performance of Templates: time 0.002688/0.09232, allocations: 0.6777 MB / 334.2 MB, free: 13.86 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile (rm -f Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & ./Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches