Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_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_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001553/0.001553, allocations: 181.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.025/2.025, allocations: 205.2 MB / 219.4 MB, free: 14.28 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001102/0.001102, allocations: 86.7 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.931e-05/2.948e-05, allocations: 0 / 321.5 MB, free: 17.87 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09637/0.09643, allocations: 47.58 MB / 369.1 MB, free: 2.223 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3907/0.4872, allocations: 73.99 MB / 443.1 MB, free: 3.133 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002506/0.4876, allocations: 59.53 kB / 443.1 MB, free: 3.102 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002628/0.4902, allocations: 0.8267 MB / 443.9 MB, free: 2.355 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.4903, allocations: 0 / 443.9 MB, free: 2.355 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.965e-06/0.4903, allocations: 0 / 443.9 MB, free: 2.355 MB / 314.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.0003185/0.4906, allocations: 356.3 kB / 444.3 MB, free: 1.961 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.876e-05/0.4907, allocations: 12.03 kB / 444.3 MB, free: 1.949 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.34e-05/0.4907, allocations: 4 kB / 444.3 MB, free: 1.945 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001258/0.4909, allocations: 166.9 kB / 444.5 MB, free: 1.746 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.86e-05/0.4909, allocations: 4 kB / 444.5 MB, free: 1.742 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.088e-05/0.4909, allocations: 0 / 444.5 MB, free: 1.742 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002045/0.4911, allocations: 80.8 kB / 444.6 MB, free: 1.66 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.195e-06/0.4912, allocations: 0 / 444.6 MB, free: 1.66 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.833e-05/0.4912, allocations: 0 / 444.6 MB, free: 1.66 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/0.4912, allocations: 3.938 kB / 444.6 MB, free: 1.656 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001008/0.4913, allocations: 39.95 kB / 444.6 MB, free: 1.617 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001633/0.4915, allocations: 161.2 kB / 444.8 MB, free: 1.414 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001279/0.4916, allocations: 58.09 kB / 444.8 MB, free: 1.352 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001006/0.4917, allocations: 44.34 kB / 444.9 MB, free: 1.309 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.987e-06/0.4918, allocations: 0 / 444.9 MB, free: 1.309 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.255e-05/0.4918, allocations: 64.22 kB / 444.9 MB, free: 1.23 MB / 314.7 MB Notification: Performance of pre-optimization done (n=4): time 2.765e-06/0.4918, allocations: 0 / 444.9 MB, free: 1.23 MB / 314.7 MB Notification: Performance of matching and sorting (n=4): time 0.0004838/0.4923, allocations: 202.2 kB / 445.1 MB, free: 1.027 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.449e-05/0.4924, allocations: 81.11 kB / 445.2 MB, free: 0.9297 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001017/0.4925, allocations: 104.4 kB / 445.3 MB, free: 0.8242 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.132e-05/0.4926, allocations: 25.7 kB / 445.3 MB, free: 0.793 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.051e-05/0.4926, allocations: 150.6 kB / 445.5 MB, free: 0.6445 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.704e-05/0.4927, allocations: 14.7 kB / 445.5 MB, free: 0.6328 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.017e-06/0.4927, allocations: 2.297 kB / 445.5 MB, free: 0.6328 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001097/0.4928, allocations: 310.8 kB / 445.8 MB, free: 328 kB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.623e-05/0.4929, allocations: 43.44 kB / 445.8 MB, free: 288 kB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.721e-05/0.493, allocations: 35.97 kB / 445.9 MB, free: 252 kB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001129/0.4931, allocations: 65.67 kB / 445.9 MB, free: 180 kB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.4932, allocations: 0 / 445.9 MB, free: 180 kB / 314.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0004158/0.4936, allocations: 190.8 kB / 446.1 MB, free: 15.98 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.879e-05/0.4937, allocations: 37.69 kB / 446.2 MB, free: 15.94 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.4937, allocations: 0 / 446.2 MB, free: 15.94 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.75e-05/0.4937, allocations: 3.953 kB / 446.2 MB, free: 15.94 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.763e-06/0.4937, allocations: 0 / 446.2 MB, free: 15.94 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.143e-06/0.4937, allocations: 0 / 446.2 MB, free: 15.94 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.64e-05/0.4938, allocations: 4.062 kB / 446.2 MB, free: 15.93 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.245e-05/0.4938, allocations: 8 kB / 446.2 MB, free: 15.93 MB / 330.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 0.0001036/0.4939, allocations: 141.7 kB / 446.3 MB, free: 15.78 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.128e-05/0.494, allocations: 7.906 kB / 446.3 MB, free: 15.77 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.502e-05/0.494, allocations: 8.031 kB / 446.3 MB, free: 15.76 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.494, allocations: 3.953 kB / 446.3 MB, free: 15.75 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.494, allocations: 0 / 446.3 MB, free: 15.75 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.515e-06/0.494, allocations: 0 / 446.3 MB, free: 15.75 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001318/0.4942, allocations: 160.6 kB / 446.5 MB, free: 15.55 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.4942, allocations: 3.938 kB / 446.5 MB, free: 15.55 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.102e-06/0.4942, allocations: 4 kB / 446.5 MB, free: 15.54 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.955e-06/0.4942, allocations: 1.375 kB / 446.5 MB, free: 15.54 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.075e-05/0.4943, allocations: 4 kB / 446.5 MB, free: 15.54 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.4943, allocations: 0 / 446.5 MB, free: 15.54 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/0.4943, allocations: 3.953 kB / 446.5 MB, free: 15.54 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004565/0.4948, allocations: 231.7 kB / 446.7 MB, free: 15.3 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.167e-05/0.4948, allocations: 89 kB / 446.8 MB, free: 15.19 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.712e-05/0.4949, allocations: 0 / 446.8 MB, free: 15.19 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.697e-05/0.4949, allocations: 8.031 kB / 446.8 MB, free: 15.18 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.833e-05/0.4949, allocations: 0 / 446.8 MB, free: 15.18 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.447e-05/0.495, allocations: 11.95 kB / 446.8 MB, free: 15.17 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.376e-05/0.495, allocations: 91.14 kB / 446.9 MB, free: 15.09 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.495, allocations: 0 / 446.9 MB, free: 15.09 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002411/0.4953, allocations: 8 kB / 446.9 MB, free: 15.08 MB / 330.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.0003456/0.4956, allocations: 124.4 kB / 447.1 MB, free: 14.95 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002095/0.4959, allocations: 127.9 kB / 447.2 MB, free: 14.83 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.4959, allocations: 4 kB / 447.2 MB, free: 14.82 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000101/0.496, allocations: 94.08 kB / 447.3 MB, free: 14.73 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001113/0.4961, allocations: 7.938 kB / 447.3 MB, free: 14.72 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002897/0.4964, allocations: 129.7 kB / 447.4 MB, free: 14.57 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002656/0.4967, allocations: 0.6887 MB / 448.1 MB, free: 13.85 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.11e-05/0.4967, allocations: 7.562 kB / 448.1 MB, free: 13.84 MB / 330.7 MB Notification: Performance of SimCode: time 7.92e-07/0.4967, allocations: 4 kB / 448.1 MB, free: 13.84 MB / 330.7 MB Notification: Performance of Templates: time 0.0027/0.4995, allocations: 0.6726 MB / 448.8 MB, free: 13.17 MB / 330.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & ./Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches