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.001/0.001001, allocations: 99.52 kB / 17.3 MB, free: 6.395 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.001198/0.001198, allocations: 177.1 kB / 18.2 MB, free: 5.555 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.523/1.523, allocations: 205.4 MB / 224.4 MB, free: 13.07 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.0004562/0.0004562, allocations: 8 kB / 281.4 MB, free: 3.449 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09854/0.09901, allocations: 47.59 MB / 328.9 MB, free: 3.785 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.0006296/0.09968, allocations: 216.4 kB / 329.2 MB, free: 3.574 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002685/0.09996, allocations: 51.86 kB / 329.2 MB, free: 3.523 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.782e-05/0.09999, allocations: 0 / 329.2 MB, free: 3.523 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 4.049e-05/0.1, allocations: 11.94 kB / 329.2 MB, free: 3.512 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 6.375e-05/0.1001, allocations: 7.984 kB / 329.2 MB, free: 3.504 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001475/0.1003, allocations: 19.97 kB / 329.2 MB, free: 3.484 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 6.316e-05/0.1003, allocations: 23.92 kB / 329.3 MB, free: 3.461 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.517e-05/0.1004, allocations: 5.406 kB / 329.3 MB, free: 3.457 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.338e-05/0.1004, allocations: 11.98 kB / 329.3 MB, free: 3.445 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.747e-05/0.1005, allocations: 27.97 kB / 329.3 MB, free: 3.418 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 1.647e-05/0.1006, allocations: 0 / 329.3 MB, free: 3.418 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.153e-05/0.1006, allocations: 4 kB / 329.3 MB, free: 3.414 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.004e-05/0.1007, allocations: 11.92 kB / 329.3 MB, free: 3.402 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 4.489e-05/0.1007, allocations: 33.64 kB / 329.4 MB, free: 3.363 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001021/0.1008, allocations: 27.91 kB / 329.4 MB, free: 3.336 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.297e-06/0.1008, allocations: 0 / 329.4 MB, free: 3.336 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1008, allocations: 0 / 329.4 MB, free: 3.336 MB / 270.1 MB Notification: Performance of Transformations before backend: time 4.719e-06/0.1008, allocations: 0 / 329.4 MB, free: 3.336 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.0003787/0.1012, allocations: 361.5 kB / 329.7 MB, free: 2.926 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.114e-05/0.1013, allocations: 8.031 kB / 329.8 MB, free: 2.918 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.196e-05/0.1013, allocations: 8.875 kB / 329.8 MB, free: 2.91 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001228/0.1014, allocations: 172.2 kB / 329.9 MB, free: 2.703 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.414e-05/0.1015, allocations: 4.375 kB / 329.9 MB, free: 2.699 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.166e-05/0.1015, allocations: 384 / 329.9 MB, free: 2.699 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001171/0.1016, allocations: 58.23 kB / 330 MB, free: 2.637 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.514e-06/0.1016, allocations: 192 / 330 MB, free: 2.637 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.234e-05/0.1016, allocations: 7.938 kB / 330 MB, free: 2.629 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.15e-06/0.1017, allocations: 4 kB / 330 MB, free: 2.625 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.284e-05/0.1017, allocations: 27.98 kB / 330 MB, free: 2.598 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001508/0.1019, allocations: 157.7 kB / 330.2 MB, free: 2.395 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.425e-05/0.1019, allocations: 46.5 kB / 330.2 MB, free: 2.34 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.666e-05/0.102, allocations: 32.92 kB / 330.3 MB, free: 2.305 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.069e-05/0.102, allocations: 4 kB / 330.3 MB, free: 2.301 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.063e-05/0.1021, allocations: 56.27 kB / 330.3 MB, free: 2.23 MB / 270.1 MB Notification: Performance of pre-optimization done (n=4): time 1.262e-06/0.1021, allocations: 4 kB / 330.3 MB, free: 2.227 MB / 270.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003034/0.1024, allocations: 183.4 kB / 330.5 MB, free: 2.035 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.376e-05/0.1024, allocations: 85.05 kB / 330.6 MB, free: 1.934 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001002/0.1025, allocations: 113.8 kB / 330.7 MB, free: 1.812 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 1.368e-05/0.1026, allocations: 25.7 kB / 330.7 MB, free: 1.781 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.937e-05/0.1026, allocations: 88.14 kB / 330.8 MB, free: 1.691 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.318e-05/0.1026, allocations: 15.81 kB / 330.8 MB, free: 1.676 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.694e-05/0.1027, allocations: 13.72 kB / 330.8 MB, free: 1.656 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001067/0.1028, allocations: 318.9 kB / 331.1 MB, free: 1.336 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.097e-05/0.1028, allocations: 23.98 kB / 331.2 MB, free: 1.312 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.735e-05/0.1028, allocations: 31.97 kB / 331.2 MB, free: 1.281 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.828e-05/0.1029, allocations: 120.2 kB / 331.3 MB, free: 1.148 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.103, allocations: 0 / 331.3 MB, free: 1.148 MB / 270.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001434/0.1031, allocations: 151.3 kB / 331.5 MB, free: 0.9883 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.941e-05/0.1031, allocations: 33.7 kB / 331.5 MB, free: 0.9492 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.1032, allocations: 3.938 kB / 331.5 MB, free: 0.9453 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.026e-05/0.1032, allocations: 0 / 331.5 MB, free: 0.9453 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.615e-06/0.1032, allocations: 3.984 kB / 331.5 MB, free: 0.9414 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.408e-06/0.1032, allocations: 4.062 kB / 331.5 MB, free: 0.9375 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.911e-05/0.1032, allocations: 4 kB / 331.5 MB, free: 0.9336 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.943e-06/0.1032, allocations: 0 / 331.5 MB, free: 0.9336 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 8.878e-05/0.1033, allocations: 147.5 kB / 331.7 MB, free: 0.7734 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.294e-05/0.1033, allocations: 8.156 kB / 331.7 MB, free: 0.7656 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.543e-05/0.1034, allocations: 11.84 kB / 331.7 MB, free: 0.75 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-06/0.1034, allocations: 0 / 331.7 MB, free: 0.75 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.159e-06/0.1034, allocations: 4 kB / 331.7 MB, free: 0.7461 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.254e-06/0.1034, allocations: 0 / 331.7 MB, free: 0.7461 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.782e-05/0.1035, allocations: 165.6 kB / 331.8 MB, free: 0.5352 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.1035, allocations: 0 / 331.8 MB, free: 0.5352 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.71e-07/0.1035, allocations: 3.938 kB / 331.9 MB, free: 0.5312 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.1035, allocations: 3.984 kB / 331.9 MB, free: 0.5273 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.087e-05/0.1035, allocations: 7.938 kB / 331.9 MB, free: 0.5195 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.92e-07/0.1035, allocations: 0 / 331.9 MB, free: 0.5195 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.1035, allocations: 0 / 331.9 MB, free: 0.5195 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00018/0.1037, allocations: 190.7 kB / 332 MB, free: 316 kB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.588e-05/0.1038, allocations: 89.03 kB / 332.1 MB, free: 208 kB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.927e-05/0.1038, allocations: 7.938 kB / 332.1 MB, free: 200 kB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.148e-05/0.1038, allocations: 0 / 332.1 MB, free: 200 kB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.553e-05/0.1038, allocations: 0 / 332.1 MB, free: 200 kB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.324e-06/0.1038, allocations: 8 kB / 332.2 MB, free: 192 kB / 270.1 MB Notification: Performance of sorting global known variables: time 3.893e-05/0.1039, allocations: 87.27 kB / 332.2 MB, free: 104 kB / 270.1 MB Notification: Performance of sort global known variables: time 1.332e-06/0.1039, allocations: 0 / 332.2 MB, free: 104 kB / 270.1 MB Notification: Performance of remove unused functions: time 0.0001829/0.1041, allocations: 11.94 kB / 332.2 MB, free: 92 kB / 270.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.0002717/0.1043, allocations: 125.7 kB / 332.4 MB, free: 15.97 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001513/0.1045, allocations: 131.4 kB / 332.5 MB, free: 15.83 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1045, allocations: 0 / 332.5 MB, free: 15.83 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 7.051e-05/0.1046, allocations: 95.39 kB / 332.6 MB, free: 15.72 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000139/0.1047, allocations: 4 kB / 332.6 MB, free: 15.72 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002446/0.105, allocations: 150.8 kB / 332.7 MB, free: 15.54 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002123/0.1052, allocations: 0.6809 MB / 333.4 MB, free: 14.84 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 5.259e-06/0.1052, allocations: 0 / 333.4 MB, free: 14.84 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.945e-06/0.1052, allocations: 7.438 kB / 333.4 MB, free: 14.83 MB / 286.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1052, allocations: 0 / 333.4 MB, free: 14.83 MB / 286.1 MB Notification: Performance of Templates: time 0.002746/0.108, allocations: 0.6503 MB / 334.1 MB, free: 14.18 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","../files/Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches