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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.002344/0.002344, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.605/1.605, allocations: 225.6 MB / 234.8 MB, free: 3.223 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009278/0.0009284, allocations: 98.22 kB / 286.7 MB, free: 5.289 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.308e-05/1.31e-05, allocations: 0 / 343.7 MB, free: 8.25 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.124/0.124, allocations: 51.47 MB / 395.1 MB, free: 4.738 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3959/0.52, allocations: 75.02 MB / 470.2 MB, free: 15.85 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002178/0.5203, allocations: 61.28 kB / 470.2 MB, free: 15.82 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.001891/0.5222, allocations: 0.8223 MB / 471 MB, free: 15.24 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.5222, allocations: 0 / 471 MB, free: 15.24 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.764e-06/0.5222, allocations: 0 / 471 MB, free: 15.24 MB / 346.7 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.0002835/0.5225, allocations: 362.7 kB / 471.4 MB, free: 14.86 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.84e-05/0.5226, allocations: 12.55 kB / 471.4 MB, free: 14.85 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.01e-05/0.5226, allocations: 4 kB / 471.4 MB, free: 14.84 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001073/0.5227, allocations: 159.7 kB / 471.6 MB, free: 14.65 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.156e-05/0.5227, allocations: 5.703 kB / 471.6 MB, free: 14.64 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.368e-05/0.5228, allocations: 0 / 471.6 MB, free: 14.64 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001132/0.5229, allocations: 34.8 kB / 471.6 MB, free: 14.62 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001275/0.523, allocations: 86.06 kB / 471.7 MB, free: 14.55 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.523, allocations: 0 / 471.7 MB, free: 14.55 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.639e-05/0.5231, allocations: 4 kB / 471.7 MB, free: 14.54 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.91e-06/0.5231, allocations: 0 / 471.7 MB, free: 14.54 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001295/0.5232, allocations: 138.9 kB / 471.8 MB, free: 14.38 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.258e-05/0.5233, allocations: 52.58 kB / 471.9 MB, free: 14.33 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.096e-05/0.5234, allocations: 44.83 kB / 471.9 MB, free: 14.29 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.188e-05/0.5234, allocations: 8 kB / 471.9 MB, free: 14.29 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.125e-05/0.5234, allocations: 56.78 kB / 472 MB, free: 14.21 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 1.463e-06/0.5235, allocations: 0 / 472 MB, free: 14.21 MB / 346.7 MB Notification: Performance of matching and sorting (n=4): time 0.0003522/0.5238, allocations: 170.7 kB / 472.2 MB, free: 14.07 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.262e-05/0.5239, allocations: 78.47 kB / 472.2 MB, free: 13.98 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.885e-05/0.5239, allocations: 107.2 kB / 472.3 MB, free: 13.88 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.587e-05/0.524, allocations: 25.7 kB / 472.4 MB, free: 13.84 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.013e-05/0.524, allocations: 80.66 kB / 472.4 MB, free: 13.76 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.826e-05/0.524, allocations: 15.31 kB / 472.5 MB, free: 13.75 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.702e-06/0.5241, allocations: 0 / 472.5 MB, free: 13.75 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.987e-05/0.5241, allocations: 316.7 kB / 472.8 MB, free: 13.43 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.329e-05/0.5242, allocations: 38.03 kB / 472.8 MB, free: 13.41 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.607e-05/0.5242, allocations: 35.03 kB / 472.8 MB, free: 13.38 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.237e-05/0.5243, allocations: 35.92 kB / 472.9 MB, free: 13.36 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.5243, allocations: 4 kB / 472.9 MB, free: 13.35 MB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002196/0.5245, allocations: 159.6 kB / 473 MB, free: 13.22 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.978e-05/0.5246, allocations: 31.16 kB / 473.1 MB, free: 13.18 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.5246, allocations: 9.469 kB / 473.1 MB, free: 13.18 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.302e-05/0.5246, allocations: 0 / 473.1 MB, free: 13.18 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.445e-06/0.5246, allocations: 0 / 473.1 MB, free: 13.18 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.624e-06/0.5246, allocations: 8.594 kB / 473.1 MB, free: 13.17 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.18e-05/0.5247, allocations: 6.438 kB / 473.1 MB, free: 13.17 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.878e-05/0.5247, allocations: 8.703 kB / 473.1 MB, free: 13.16 MB / 346.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: 4 (success1,success2,success3,success4) * Number of discrete 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 6.93e-05/0.5248, allocations: 134.8 kB / 473.2 MB, free: 13.02 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.59e-05/0.5248, allocations: 8.469 kB / 473.2 MB, free: 13.01 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.676e-05/0.5248, allocations: 5 kB / 473.2 MB, free: 13.01 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.322e-06/0.5248, allocations: 4 kB / 473.2 MB, free: 13 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.5248, allocations: 4.797 kB / 473.3 MB, free: 13 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.5248, allocations: 3.953 kB / 473.3 MB, free: 13 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.053e-05/0.5249, allocations: 136.2 kB / 473.4 MB, free: 12.84 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.5249, allocations: 0 / 473.4 MB, free: 12.84 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.82e-07/0.5249, allocations: 4 kB / 473.4 MB, free: 12.83 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.393e-06/0.5249, allocations: 0 / 473.4 MB, free: 12.83 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.326e-05/0.525, allocations: 5.266 kB / 473.4 MB, free: 12.83 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/0.525, allocations: 0 / 473.4 MB, free: 12.83 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.525, allocations: 0 / 473.4 MB, free: 12.83 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002676/0.5253, allocations: 206.4 kB / 473.6 MB, free: 12.65 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.327e-05/0.5253, allocations: 81.81 kB / 473.7 MB, free: 12.55 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.217e-05/0.5253, allocations: 0 / 473.7 MB, free: 12.55 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.583e-05/0.5253, allocations: 4 kB / 473.7 MB, free: 12.55 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.179e-05/0.5254, allocations: 4.594 kB / 473.7 MB, free: 12.54 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.44e-05/0.5254, allocations: 14.52 kB / 473.7 MB, free: 12.54 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.264e-05/0.5254, allocations: 85.25 kB / 473.8 MB, free: 12.45 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5254, allocations: 0 / 473.8 MB, free: 12.45 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002071/0.5256, allocations: 8 kB / 473.8 MB, free: 12.45 MB / 346.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: 4 (success1,success2,success3,success4) * Number of discrete states: 4 (success4,success3,success2,success1) * 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.0002905/0.5259, allocations: 136.3 kB / 473.9 MB, free: 12.32 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001365/0.5261, allocations: 117.7 kB / 474 MB, free: 12.21 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.5261, allocations: 0 / 474 MB, free: 12.21 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 5.849e-05/0.5262, allocations: 97.7 kB / 474.1 MB, free: 12.12 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001127/0.5263, allocations: 13.81 kB / 474.2 MB, free: 12.11 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002195/0.5265, allocations: 98.73 kB / 474.2 MB, free: 12 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001395/0.5267, allocations: 0.6821 MB / 474.9 MB, free: 11.3 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 6.933e-06/0.5267, allocations: 0.6562 kB / 474.9 MB, free: 11.3 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.011e-05/0.5267, allocations: 7.438 kB / 474.9 MB, free: 11.29 MB / 346.7 MB Notification: Performance of SimCode: time 2.9e-07/0.5267, allocations: 4 kB / 474.9 MB, free: 11.29 MB / 346.7 MB Notification: Performance of Templates: time 0.002724/0.5294, allocations: 0.5897 MB / 475.5 MB, free: 10.93 MB / 346.7 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