Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile") translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_4.0.0_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.00154/0.00154, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.00203/0.002029, allocations: 191.4 kB / 18.51 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.394/1.394, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001173/0.001173, allocations: 54.92 kB / 301.3 MB, free: 5.898 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09324/0.09444, allocations: 49.45 MB / 350.7 MB, free: 4.445 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001801/0.09629, allocations: 486.7 kB / 351.2 MB, free: 3.965 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002823/0.09659, allocations: 55.8 kB / 351.2 MB, free: 3.91 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.894e-05/0.09665, allocations: 0 / 351.2 MB, free: 3.91 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.379e-05/0.09671, allocations: 0 / 351.2 MB, free: 3.91 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 6.35e-05/0.09678, allocations: 19.97 kB / 351.3 MB, free: 3.891 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001527/0.09694, allocations: 19.92 kB / 351.3 MB, free: 3.871 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 8.938e-05/0.09704, allocations: 19.98 kB / 351.3 MB, free: 3.852 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.626e-05/0.09709, allocations: 11.98 kB / 351.3 MB, free: 3.84 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.841e-05/0.09713, allocations: 7.984 kB / 351.3 MB, free: 3.832 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.138e-05/0.09721, allocations: 35.91 kB / 351.4 MB, free: 3.797 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.681e-05/0.09723, allocations: 0 / 351.4 MB, free: 3.797 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.164e-05/0.09728, allocations: 4 kB / 351.4 MB, free: 3.793 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.335e-05/0.09732, allocations: 4 kB / 351.4 MB, free: 3.789 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.37e-05/0.09736, allocations: 11.92 kB / 351.4 MB, free: 3.777 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 9.728e-05/0.09747, allocations: 27.92 kB / 351.4 MB, free: 3.75 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.09748, allocations: 0 / 351.4 MB, free: 3.75 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.09749, allocations: 0 / 351.4 MB, free: 3.75 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.039e-06/0.09749, allocations: 0 / 351.4 MB, free: 3.75 MB / 286.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.0003571/0.09786, allocations: 361.2 kB / 351.8 MB, free: 3.34 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.716e-05/0.0979, allocations: 16.02 kB / 351.8 MB, free: 3.324 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.833e-05/0.09794, allocations: 4.844 kB / 351.8 MB, free: 3.32 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001163/0.09807, allocations: 176.5 kB / 352 MB, free: 3.109 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.235e-05/0.09808, allocations: 384 / 352 MB, free: 3.109 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.115e-05/0.0981, allocations: 384 / 352 MB, free: 3.109 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001185/0.09822, allocations: 66.23 kB / 352 MB, free: 3.039 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.424e-06/0.09824, allocations: 192 / 352 MB, free: 3.039 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.063e-05/0.09826, allocations: 3.938 kB / 352 MB, free: 3.035 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.153e-06/0.09827, allocations: 0 / 352 MB, free: 3.035 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.078e-05/0.09831, allocations: 31.98 kB / 352.1 MB, free: 3.004 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001404/0.09846, allocations: 153.7 kB / 352.2 MB, free: 2.805 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.734e-05/0.09854, allocations: 50.45 kB / 352.3 MB, free: 2.746 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.641e-05/0.09859, allocations: 32.92 kB / 352.3 MB, free: 2.711 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.735e-06/0.0986, allocations: 0 / 352.3 MB, free: 2.711 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.409e-05/0.09865, allocations: 60.25 kB / 352.3 MB, free: 2.637 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 1.092e-06/0.09866, allocations: 0 / 352.3 MB, free: 2.637 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002862/0.09895, allocations: 195.3 kB / 352.5 MB, free: 2.434 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.535e-05/0.09901, allocations: 81.05 kB / 352.6 MB, free: 2.336 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.952e-05/0.0991, allocations: 113.8 kB / 352.7 MB, free: 2.215 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.538e-05/0.09913, allocations: 29.7 kB / 352.8 MB, free: 2.18 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.519e-05/0.09917, allocations: 80.14 kB / 352.8 MB, free: 2.098 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.907e-05/0.09919, allocations: 7.844 kB / 352.8 MB, free: 2.09 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.939e-05/0.09924, allocations: 25.7 kB / 352.9 MB, free: 2.059 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001092/0.09935, allocations: 310.8 kB / 353.2 MB, free: 1.746 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.655e-05/0.0994, allocations: 36.02 kB / 353.2 MB, free: 1.711 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.107e-05/0.09944, allocations: 27.97 kB / 353.2 MB, free: 1.684 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.43e-05/0.09954, allocations: 116.2 kB / 353.3 MB, free: 1.555 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.09955, allocations: 0 / 353.3 MB, free: 1.555 MB / 286.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.000163/0.09972, allocations: 159.5 kB / 353.5 MB, free: 1.387 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.049e-05/0.09976, allocations: 29.7 kB / 353.5 MB, free: 1.352 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.09977, allocations: 3.938 kB / 353.5 MB, free: 1.348 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.292e-05/0.09979, allocations: 0 / 353.5 MB, free: 1.348 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.507e-06/0.0998, allocations: 8 kB / 353.5 MB, free: 1.34 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.64e-06/0.09981, allocations: 3.984 kB / 353.5 MB, free: 1.336 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.086e-05/0.09983, allocations: 8.047 kB / 353.6 MB, free: 1.328 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.746e-06/0.09985, allocations: 4 kB / 353.6 MB, free: 1.324 MB / 286.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 9.085e-05/0.09994, allocations: 139.5 kB / 353.7 MB, free: 1.172 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.515e-05/0.09997, allocations: 7.891 kB / 353.7 MB, free: 1.164 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.974e-05/0.09999, allocations: 15.84 kB / 353.7 MB, free: 1.141 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-06/0.1, allocations: 0 / 353.7 MB, free: 1.141 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.1, allocations: 0 / 353.7 MB, free: 1.141 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.1, allocations: 0 / 353.7 MB, free: 1.141 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001065/0.1001, allocations: 153.7 kB / 353.9 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.1001, allocations: 4 kB / 353.9 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.1001, allocations: 0 / 353.9 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.1001, allocations: 0 / 353.9 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.53e-05/0.1002, allocations: 15.92 kB / 353.9 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.1002, allocations: 3.938 kB / 353.9 MB, free: 0.918 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.1002, allocations: 0 / 353.9 MB, free: 0.918 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002142/0.1004, allocations: 190.7 kB / 354.1 MB, free: 0.707 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.585e-05/0.1005, allocations: 88.94 kB / 354.2 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.896e-05/0.1005, allocations: 11.97 kB / 354.2 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.394e-05/0.1005, allocations: 0 / 354.2 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.643e-05/0.1005, allocations: 4 kB / 354.2 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.929e-06/0.1005, allocations: 0 / 354.2 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of sorting global known variables: time 4.741e-05/0.1006, allocations: 91.27 kB / 354.3 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1006, allocations: 0 / 354.3 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0001978/0.1008, allocations: 12 kB / 354.3 MB, free: 496 kB / 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.0002608/0.1011, allocations: 146.8 kB / 354.4 MB, free: 356 kB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001575/0.1012, allocations: 127.4 kB / 354.5 MB, free: 216 kB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1012, allocations: 0 / 354.5 MB, free: 216 kB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 7.336e-05/0.1013, allocations: 95.39 kB / 354.6 MB, free: 108 kB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001365/0.1015, allocations: 0 / 354.6 MB, free: 108 kB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002725/0.1017, allocations: 178.9 kB / 354.8 MB, free: 15.89 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000245/0.102, allocations: 0.6807 MB / 355.5 MB, free: 15.19 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.153e-05/0.102, allocations: 7.438 kB / 355.5 MB, free: 15.18 MB / 302.1 MB Notification: Performance of SimCode: time 3.41e-07/0.102, allocations: 0 / 355.5 MB, free: 15.18 MB / 302.1 MB Notification: Performance of Templates: time 0.002193/0.1042, allocations: 0.6759 MB / 356.2 MB, free: 14.52 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile (rm -f Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & ./Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches