Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile") translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008935/0.0008936, allocations: 92.72 kB / 16.98 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000934/0.0009341, allocations: 198.1 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.328/1.328, allocations: 227.2 MB / 245.9 MB, free: 12.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002055/0.0002055, allocations: 8 kB / 306.6 MB, free: 1.66 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1084, allocations: 51.49 MB / 358.1 MB, free: 14.17 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.0005808/0.1091, allocations: 198.1 kB / 358.2 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002112/0.1093, allocations: 55.88 kB / 358.3 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.327e-05/0.1093, allocations: 0 / 358.3 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.856e-05/0.1094, allocations: 7.938 kB / 358.3 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.393e-05/0.1095, allocations: 11.97 kB / 358.3 MB, free: 13.9 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001447/0.1096, allocations: 19.98 kB / 358.3 MB, free: 13.88 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 5.369e-05/0.1097, allocations: 11.98 kB / 358.3 MB, free: 13.87 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.745e-05/0.1097, allocations: 0 / 358.3 MB, free: 13.87 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.073e-05/0.1098, allocations: 19.92 kB / 358.4 MB, free: 13.85 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.351e-05/0.1099, allocations: 23.91 kB / 358.4 MB, free: 13.83 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.434e-05/0.1099, allocations: 0 / 358.4 MB, free: 13.83 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.989e-05/0.1099, allocations: 4 kB / 358.4 MB, free: 13.82 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.193e-05/0.11, allocations: 7.984 kB / 358.4 MB, free: 13.82 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.713e-05/0.11, allocations: 25.7 kB / 358.4 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 7.195e-05/0.1101, allocations: 19.92 kB / 358.4 MB, free: 13.77 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.344e-06/0.1101, allocations: 8 kB / 358.5 MB, free: 13.76 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1101, allocations: 0 / 358.5 MB, free: 13.76 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.48e-05/0.1101, allocations: 0 / 358.5 MB, free: 13.76 MB / 302.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.0003475/0.1105, allocations: 353 kB / 358.8 MB, free: 13.36 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.1105, allocations: 8.031 kB / 358.8 MB, free: 13.35 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.302e-05/0.1106, allocations: 0 / 358.8 MB, free: 13.35 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001295/0.1107, allocations: 175.1 kB / 359 MB, free: 13.14 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.302e-05/0.1107, allocations: 0 / 359 MB, free: 13.14 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.2e-05/0.1107, allocations: 7.953 kB / 359 MB, free: 13.13 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001237/0.1109, allocations: 65.67 kB / 359.1 MB, free: 13.06 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.673e-06/0.1109, allocations: 0 / 359.1 MB, free: 13.06 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.437e-06/0.1109, allocations: 0 / 359.1 MB, free: 13.06 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.1109, allocations: 0 / 359.1 MB, free: 13.06 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.865e-05/0.1109, allocations: 27.98 kB / 359.1 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001437/0.1111, allocations: 157.7 kB / 359.2 MB, free: 12.83 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.267e-05/0.1112, allocations: 50.5 kB / 359.3 MB, free: 12.77 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.913e-06/0.1112, allocations: 0 / 359.3 MB, free: 12.77 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.205e-05/0.1112, allocations: 68.25 kB / 359.3 MB, free: 12.69 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 8.32e-07/0.1112, allocations: 0 / 359.3 MB, free: 12.69 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003089/0.1115, allocations: 256.5 kB / 359.6 MB, free: 12.41 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.893e-05/0.1116, allocations: 81.11 kB / 359.7 MB, free: 12.31 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.382e-05/0.1117, allocations: 117.8 kB / 359.8 MB, free: 12.19 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.416e-05/0.1117, allocations: 25.7 kB / 359.8 MB, free: 12.16 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.594e-05/0.1118, allocations: 84.14 kB / 359.9 MB, free: 12.07 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.011e-05/0.1118, allocations: 7.906 kB / 359.9 MB, free: 12.06 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.216e-06/0.1118, allocations: 4.031 kB / 359.9 MB, free: 12.06 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001115/0.1119, allocations: 314.8 kB / 360.2 MB, free: 11.74 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.008e-05/0.1119, allocations: 27.98 kB / 360.2 MB, free: 11.71 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.674e-05/0.112, allocations: 23.98 kB / 360.3 MB, free: 11.69 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.528e-05/0.1121, allocations: 57.88 kB / 360.3 MB, free: 11.63 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.1121, allocations: 0 / 360.3 MB, free: 11.63 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001463/0.1122, allocations: 155.2 kB / 360.5 MB, free: 11.46 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.403e-05/0.1123, allocations: 37.69 kB / 360.5 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.896e-06/0.1123, allocations: 3.953 kB / 360.5 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.137e-06/0.1123, allocations: 4 kB / 360.5 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.82e-07/0.1123, allocations: 7.938 kB / 360.5 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.563e-06/0.1123, allocations: 4 kB / 360.5 MB, free: 11.4 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.685e-05/0.1123, allocations: 0 / 360.5 MB, free: 11.4 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.068e-06/0.1123, allocations: 0 / 360.5 MB, free: 11.4 MB / 302.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 (success1,success2,success3,success4) * 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.483e-05/0.1124, allocations: 155.5 kB / 360.7 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.007e-06/0.1125, allocations: 256 / 360.7 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.75e-05/0.1125, allocations: 7.906 kB / 360.7 MB, free: 11.22 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.1125, allocations: 3.953 kB / 360.7 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.1125, allocations: 4 kB / 360.7 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.954e-06/0.1125, allocations: 4 kB / 360.7 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001088/0.1126, allocations: 165.6 kB / 360.9 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.62e-07/0.1126, allocations: 0 / 360.9 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.51e-07/0.1126, allocations: 0 / 360.9 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.213e-06/0.1127, allocations: 0 / 360.9 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.076e-05/0.1127, allocations: 4 kB / 360.9 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.91e-07/0.1127, allocations: 0 / 360.9 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.1127, allocations: 3.953 kB / 360.9 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001888/0.1129, allocations: 198.8 kB / 361.1 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.064e-05/0.1129, allocations: 81.05 kB / 361.1 MB, free: 10.67 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.716e-05/0.1129, allocations: 4 kB / 361.2 MB, free: 10.67 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.12e-05/0.113, allocations: 0 / 361.2 MB, free: 10.67 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.612e-05/0.113, allocations: 3.953 kB / 361.2 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.871e-06/0.113, allocations: 7.938 kB / 361.2 MB, free: 10.66 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.332e-05/0.113, allocations: 91.27 kB / 361.3 MB, free: 10.57 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.113, allocations: 0 / 361.3 MB, free: 10.57 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001834/0.1132, allocations: 8 kB / 361.3 MB, free: 10.56 MB / 302.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 (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.0002852/0.1135, allocations: 136 kB / 361.4 MB, free: 10.43 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000147/0.1137, allocations: 127.4 kB / 361.5 MB, free: 10.29 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1137, allocations: 0 / 361.5 MB, free: 10.29 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.25e-05/0.1138, allocations: 95.39 kB / 361.6 MB, free: 10.19 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.066e-05/0.1139, allocations: 3.984 kB / 361.6 MB, free: 10.18 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002619/0.1141, allocations: 150.8 kB / 361.8 MB, free: 10.01 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002436/0.1144, allocations: 0.6809 MB / 362.4 MB, free: 9.301 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.93e-06/0.1144, allocations: 4 kB / 362.4 MB, free: 9.297 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.776e-06/0.1144, allocations: 7.438 kB / 362.5 MB, free: 9.289 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1144, allocations: 0 / 362.5 MB, free: 9.289 MB / 302.1 MB Notification: Performance of Templates: time 0.00243/0.1169, allocations: 0.6358 MB / 363.1 MB, free: 8.664 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile (rm -f Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & ./Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","../files/Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches