Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Utilities.Examples.ReadRealMatrixFromFile.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.ReadRealMatrixFromFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="Modelica_3.2.3_Modelica.Utilities.Examples.ReadRealMatrixFromFile") translateModel(Modelica.Utilities.Examples.ReadRealMatrixFromFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="Modelica_3.2.3_Modelica.Utilities.Examples.ReadRealMatrixFromFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001365/0.001366, allocations: 108.7 kB / 17.93 MB, free: 5.422 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.001643/0.001643, allocations: 189.8 kB / 18.86 MB, free: 4.5 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.559/1.559, allocations: 205.1 MB / 224.7 MB, free: 12.45 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.001455/0.001456, allocations: 51.92 kB / 280.8 MB, free: 3.488 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08816/0.08963, allocations: 46.62 MB / 327.4 MB, free: 4.801 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.ReadRealMatrixFromFile): time 0.001831/0.09149, allocations: 0.5891 MB / 328 MB, free: 4.207 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002382/0.0939, allocations: 1.827 MB / 329.8 MB, free: 2.359 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.636e-05/0.09397, allocations: 0 / 329.8 MB, free: 2.359 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001695/0.0957, allocations: 122.2 kB / 330 MB, free: 2.25 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 6.412e-05/0.09578, allocations: 27.91 kB / 330 MB, free: 2.223 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002138/0.096, allocations: 51.94 kB / 330 MB, free: 2.172 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 9.52e-05/0.0961, allocations: 39.91 kB / 330.1 MB, free: 2.133 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.503e-05/0.09614, allocations: 0 / 330.1 MB, free: 2.133 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.52e-05/0.0962, allocations: 35.84 kB / 330.1 MB, free: 2.098 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001087/0.09632, allocations: 31.84 kB / 330.1 MB, free: 2.066 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.52e-05/0.09635, allocations: 4 kB / 330.1 MB, free: 2.062 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.291e-05/0.09642, allocations: 15.98 kB / 330.2 MB, free: 2.047 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.811e-05/0.09651, allocations: 51.89 kB / 330.2 MB, free: 1.996 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 4.749e-05/0.09656, allocations: 31.8 kB / 330.2 MB, free: 1.965 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 9.673e-05/0.09667, allocations: 35.94 kB / 330.3 MB, free: 1.93 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.09668, allocations: 0 / 330.3 MB, free: 1.93 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.09668, allocations: 4 kB / 330.3 MB, free: 1.926 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.002e-06/0.0967, allocations: 0 / 330.3 MB, free: 1.926 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004405/0.09714, allocations: 401.1 kB / 330.7 MB, free: 1.48 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.628e-05/0.09718, allocations: 8.031 kB / 330.7 MB, free: 1.473 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.226e-05/0.09723, allocations: 8.844 kB / 330.7 MB, free: 1.465 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004219/0.09766, allocations: 312.1 kB / 331 MB, free: 1.121 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.893e-06/0.09767, allocations: 4.375 kB / 331 MB, free: 1.117 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.936e-05/0.0977, allocations: 4.375 kB / 331 MB, free: 1.113 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001163/0.09782, allocations: 78.23 kB / 331.1 MB, free: 1.016 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.612e-06/0.09783, allocations: 0 / 331.1 MB, free: 1.016 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.495e-05/0.09785, allocations: 4 kB / 331.1 MB, free: 1.012 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.09786, allocations: 0 / 331.1 MB, free: 1.012 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.692e-05/0.09788, allocations: 3.984 kB / 331.1 MB, free: 1.008 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002968/0.09819, allocations: 181.7 kB / 331.3 MB, free: 0.7812 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.615e-05/0.09823, allocations: 14.58 kB / 331.3 MB, free: 0.7578 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.78e-05/0.09826, allocations: 8.922 kB / 331.3 MB, free: 0.7461 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.813e-06/0.09827, allocations: 3.938 kB / 331.3 MB, free: 0.7422 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.62e-05/0.09832, allocations: 68.12 kB / 331.4 MB, free: 0.6602 MB / 270.1 MB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.09833, allocations: 0 / 331.4 MB, free: 0.6602 MB / 270.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001462/0.09848, allocations: 49.61 kB / 331.4 MB, free: 0.6055 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.664e-05/0.09859, allocations: 158.2 kB / 331.6 MB, free: 424 kB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001606/0.09875, allocations: 168.9 kB / 331.7 MB, free: 248 kB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 1.507e-05/0.09878, allocations: 25.7 kB / 331.7 MB, free: 216 kB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.727e-05/0.09883, allocations: 96.12 kB / 331.8 MB, free: 116 kB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.742e-05/0.09885, allocations: 7.844 kB / 331.8 MB, free: 108 kB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.493e-05/0.09889, allocations: 21.7 kB / 331.9 MB, free: 80 kB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001164/0.09901, allocations: 323 kB / 332.2 MB, free: 15.75 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.475e-05/0.09903, allocations: 7.938 kB / 332.2 MB, free: 15.75 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.644e-05/0.09908, allocations: 40.22 kB / 332.2 MB, free: 15.69 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.125e-05/0.09912, allocations: 20.84 kB / 332.3 MB, free: 15.67 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.09913, allocations: 0 / 332.3 MB, free: 15.67 MB / 286.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.99e-05/0.0992, allocations: 45.55 kB / 332.3 MB, free: 15.62 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.143e-05/0.09922, allocations: 8.094 kB / 332.3 MB, free: 15.61 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.09923, allocations: 8 kB / 332.3 MB, free: 15.6 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.788e-06/0.09925, allocations: 0 / 332.3 MB, free: 15.6 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.899e-05/0.09928, allocations: 4 kB / 332.3 MB, free: 15.6 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.051e-06/0.09929, allocations: 4 kB / 332.3 MB, free: 15.59 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.892e-05/0.09937, allocations: 3.984 kB / 332.3 MB, free: 15.59 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.108e-06/0.09938, allocations: 0 / 332.3 MB, free: 15.59 MB / 286.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * 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 9.628e-05/0.09948, allocations: 125.8 kB / 332.4 MB, free: 15.46 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.097e-05/0.0995, allocations: 11.84 kB / 332.5 MB, free: 15.45 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.657e-05/0.09954, allocations: 27.84 kB / 332.5 MB, free: 15.42 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-06/0.09954, allocations: 0 / 332.5 MB, free: 15.42 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.367e-06/0.09955, allocations: 0 / 332.5 MB, free: 15.42 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.385e-06/0.09956, allocations: 0 / 332.5 MB, free: 15.42 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001749/0.09974, allocations: 169.7 kB / 332.7 MB, free: 15.2 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.09975, allocations: 0 / 332.7 MB, free: 15.2 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.6e-05/0.09978, allocations: 3.938 kB / 332.7 MB, free: 15.2 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.963e-06/0.09979, allocations: 0 / 332.7 MB, free: 15.2 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.006e-06/0.0998, allocations: 7.984 kB / 332.7 MB, free: 15.19 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.09981, allocations: 3.984 kB / 332.7 MB, free: 15.19 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.09981, allocations: 0 / 332.7 MB, free: 15.19 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001292/0.09995, allocations: 69.12 kB / 332.7 MB, free: 15.1 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.013e-05/0.1, allocations: 88.98 kB / 332.8 MB, free: 15 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.944e-05/0.1, allocations: 4 kB / 332.8 MB, free: 14.99 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.726e-05/0.1001, allocations: 0 / 332.8 MB, free: 14.99 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.013e-05/0.1001, allocations: 15.92 kB / 332.8 MB, free: 14.98 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.924e-06/0.1001, allocations: 0 / 332.8 MB, free: 14.98 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001041/0.1002, allocations: 135.3 kB / 333 MB, free: 14.84 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1002, allocations: 0 / 333 MB, free: 14.84 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002006/0.1005, allocations: 16 kB / 333 MB, free: 14.83 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * 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.0003355/0.1008, allocations: 167.7 kB / 333.2 MB, free: 14.66 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 8.322e-05/0.1009, allocations: 16 kB / 333.2 MB, free: 14.64 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.1009, allocations: 0 / 333.2 MB, free: 14.64 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 9.899e-06/0.1009, allocations: 4 kB / 333.2 MB, free: 14.64 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001554/0.1011, allocations: 11.98 kB / 333.2 MB, free: 14.63 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002898/0.1014, allocations: 199.3 kB / 333.4 MB, free: 14.4 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002407/0.1016, allocations: 0.6885 MB / 334.1 MB, free: 13.68 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.244e-05/0.1017, allocations: 15.38 kB / 334.1 MB, free: 13.67 MB / 286.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1017, allocations: 0 / 334.1 MB, free: 13.67 MB / 286.1 MB Notification: Performance of Templates: time 0.002875/0.1045, allocations: 1.471 MB / 335.6 MB, free: 12.2 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Utilities.Examples.ReadRealMatrixFromFile.makefile (rm -f Modelica_3.2.3_Modelica.Utilities.Examples.ReadRealMatrixFromFile.pipe ; mkfifo Modelica_3.2.3_Modelica.Utilities.Examples.ReadRealMatrixFromFile.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Utilities.Examples.ReadRealMatrixFromFile.pipe >> ../files/Modelica_3.2.3_Modelica.Utilities.Examples.ReadRealMatrixFromFile.sim & ./Modelica_3.2.3_Modelica.Utilities.Examples.ReadRealMatrixFromFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Utilities.Examples.ReadRealMatrixFromFile.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Utilities.Examples.ReadRealMatrixFromFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Utilities/Examples/ReadRealMatrixFromFile/ReadRealMatrixFromFile.csv","../files/Modelica_3.2.3_Modelica.Utilities.Examples.ReadRealMatrixFromFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches