Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002034/0.002045, allocations: 198.5 kB / 18.06 MB, free: 3.645 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 3.249/3.249, allocations: 226.5 MB / 245.4 MB, free: 8.18 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001381/0.001381, allocations: 108.1 kB / 297.4 MB, free: 6.855 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004253/0.0004255, allocations: 4 kB / 357.4 MB, free: 10.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5066/0.507, allocations: 51.29 MB / 408.6 MB, free: 27.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1828/0.6899, allocations: 75.67 MB / 484.3 MB, free: 15.93 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003412/0.6903, allocations: 63.97 kB / 484.4 MB, free: 15.87 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003054/0.6934, allocations: 0.8318 MB / 485.2 MB, free: 15.04 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.115e-06/0.6934, allocations: 4 kB / 485.2 MB, free: 15.04 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.17e-05/0.6935, allocations: 0.9375 kB / 485.2 MB, free: 15.04 MB / 362.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.0005059/0.694, allocations: 362 kB / 485.6 MB, free: 14.62 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.866e-05/0.694, allocations: 8.031 kB / 485.6 MB, free: 14.62 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.187e-05/0.6941, allocations: 4.938 kB / 485.6 MB, free: 14.61 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000181/0.6943, allocations: 165 kB / 485.7 MB, free: 14.41 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.244e-05/0.6943, allocations: 7.812 kB / 485.7 MB, free: 14.41 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.954e-05/0.6944, allocations: 4.375 kB / 485.7 MB, free: 14.41 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002196/0.6946, allocations: 74.2 kB / 485.8 MB, free: 14.33 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.086e-05/0.6946, allocations: 192 / 485.8 MB, free: 14.33 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.819e-05/0.6947, allocations: 7.938 kB / 485.8 MB, free: 14.32 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.6947, allocations: 0 / 485.8 MB, free: 14.32 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001203/0.6948, allocations: 47.84 kB / 485.9 MB, free: 14.27 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000259/0.6951, allocations: 149.7 kB / 486 MB, free: 14.08 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001549/0.6952, allocations: 60.12 kB / 486.1 MB, free: 14.01 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001031/0.6954, allocations: 48.91 kB / 486.1 MB, free: 13.96 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.64e-05/0.6954, allocations: 4 kB / 486.1 MB, free: 13.96 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.516e-05/0.6955, allocations: 63.41 kB / 486.2 MB, free: 13.88 MB / 362.7 MB Notification: Performance of pre-optimization done (n=4): time 1.893e-06/0.6955, allocations: 0 / 486.2 MB, free: 13.88 MB / 362.7 MB Notification: Performance of matching and sorting (n=4): time 0.0007907/0.6963, allocations: 243.1 kB / 486.4 MB, free: 13.63 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001333/0.6964, allocations: 81.05 kB / 486.5 MB, free: 13.54 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001642/0.6966, allocations: 109.8 kB / 486.6 MB, free: 13.42 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.147e-05/0.6967, allocations: 29.69 kB / 486.6 MB, free: 13.38 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.809e-05/0.6968, allocations: 88.14 kB / 486.7 MB, free: 13.29 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.466e-05/0.6969, allocations: 11.92 kB / 486.7 MB, free: 13.28 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.41e-05/0.6969, allocations: 4 kB / 486.7 MB, free: 13.28 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002796/0.6972, allocations: 314.8 kB / 487.1 MB, free: 12.96 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00011/0.6973, allocations: 35.97 kB / 487.1 MB, free: 12.93 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001082/0.6975, allocations: 35.97 kB / 487.1 MB, free: 12.89 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003409/0.6978, allocations: 140.2 kB / 487.3 MB, free: 12.74 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.367e-06/0.6978, allocations: 0 / 487.3 MB, free: 12.74 MB / 362.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0004596/0.6983, allocations: 195.2 kB / 487.5 MB, free: 12.54 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.845e-05/0.6984, allocations: 33.7 kB / 487.5 MB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.35e-05/0.6984, allocations: 8 kB / 487.5 MB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.017e-05/0.6985, allocations: 0 / 487.5 MB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.254e-06/0.6985, allocations: 0 / 487.5 MB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.102e-05/0.6985, allocations: 0 / 487.5 MB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.126e-05/0.6986, allocations: 4 kB / 487.5 MB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.769e-05/0.6986, allocations: 7.984 kB / 487.5 MB, free: 12.48 MB / 362.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 () * 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 0.0002111/0.6988, allocations: 151.5 kB / 487.7 MB, free: 12.31 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.1e-05/0.6989, allocations: 0 / 487.7 MB, free: 12.31 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.065e-05/0.6989, allocations: 11.84 kB / 487.7 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.699, allocations: 4.188 kB / 487.7 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.256e-06/0.699, allocations: 0 / 487.7 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.997e-06/0.699, allocations: 3.984 kB / 487.7 MB, free: 12.28 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002329/0.6992, allocations: 161.7 kB / 487.8 MB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.6993, allocations: 0 / 487.8 MB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.232e-06/0.6993, allocations: 0 / 487.8 MB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.415e-06/0.6993, allocations: 0 / 487.8 MB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.628e-05/0.6993, allocations: 7.938 kB / 487.8 MB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.6993, allocations: 0 / 487.8 MB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.6993, allocations: 256 / 487.8 MB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000549/0.6999, allocations: 242.6 kB / 488.1 MB, free: 11.8 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.235e-05/0.7, allocations: 85 kB / 488.2 MB, free: 11.7 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.026e-05/0.7001, allocations: 15.88 kB / 488.2 MB, free: 11.69 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.088e-05/0.7001, allocations: 4 kB / 488.2 MB, free: 11.68 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.541e-05/0.7002, allocations: 3.938 kB / 488.2 MB, free: 11.68 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.39e-05/0.7002, allocations: 4 kB / 488.2 MB, free: 11.68 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.411e-05/0.7003, allocations: 91.27 kB / 488.3 MB, free: 11.59 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.7003, allocations: 4 kB / 488.3 MB, free: 11.58 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00035/0.7007, allocations: 8.031 kB / 488.3 MB, free: 11.57 MB / 362.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) * 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.0005885/0.7013, allocations: 127.8 kB / 488.4 MB, free: 11.45 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002888/0.7016, allocations: 127.4 kB / 488.5 MB, free: 11.32 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.7016, allocations: 3.938 kB / 488.5 MB, free: 11.31 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001229/0.7018, allocations: 91.39 kB / 488.6 MB, free: 11.21 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002251/0.702, allocations: 13.34 kB / 488.6 MB, free: 11.2 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004018/0.7024, allocations: 168.4 kB / 488.8 MB, free: 11 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003293/0.7028, allocations: 0.6809 MB / 489.5 MB, free: 10.3 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.848e-05/0.7028, allocations: 7.438 kB / 489.5 MB, free: 10.29 MB / 362.7 MB Notification: Performance of SimCode: time 5.21e-07/0.7028, allocations: 0 / 489.5 MB, free: 10.29 MB / 362.7 MB Notification: Performance of Templates: time 0.002898/0.7057, allocations: 0.6784 MB / 490.2 MB, free: 9.621 MB / 362.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile (rm -f Modelica_trunk_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_trunk_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & ./Modelica_trunk_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches