Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Utilities.Examples.ReadRealMatrixFromFile.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.ReadRealMatrixFromFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="Modelica_trunk_Modelica.Utilities.Examples.ReadRealMatrixFromFile") translateModel(Modelica.Utilities.Examples.ReadRealMatrixFromFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="Modelica_trunk_Modelica.Utilities.Examples.ReadRealMatrixFromFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00124/0.00124, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.499/1.499, allocations: 226.7 MB / 245.5 MB, free: 6.969 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001222/0.001222, allocations: 108.8 kB / 296.7 MB, free: 6.453 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001293/0.001293, allocations: 47.91 kB / 356.6 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2301/0.2314, allocations: 50.46 MB / 407 MB, free: 27.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.ReadRealMatrixFromFile): time 0.001445/0.2329, allocations: 0.5715 MB / 407.6 MB, free: 27.23 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001688/0.2346, allocations: 1.824 MB / 409.4 MB, free: 25.39 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.5e-05/0.2347, allocations: 2.688 kB / 409.4 MB, free: 25.39 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003261/0.238, allocations: 146.8 kB / 409.6 MB, free: 25.28 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.505e-05/0.238, allocations: 27.91 kB / 409.6 MB, free: 25.25 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001439/0.2382, allocations: 47.11 kB / 409.7 MB, free: 25.21 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 5.901e-05/0.2382, allocations: 51.77 kB / 409.7 MB, free: 25.16 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.688e-05/0.2383, allocations: 4 kB / 409.7 MB, free: 25.15 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.694e-05/0.2383, allocations: 19.94 kB / 409.7 MB, free: 25.13 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.24e-05/0.2384, allocations: 35.83 kB / 409.8 MB, free: 25.1 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.752e-05/0.2384, allocations: 0 / 409.8 MB, free: 25.1 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.348e-05/0.2385, allocations: 12 kB / 409.8 MB, free: 25.09 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.363e-05/0.2386, allocations: 55.89 kB / 409.8 MB, free: 25.03 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.693e-05/0.2386, allocations: 23.84 kB / 409.9 MB, free: 25.01 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.428e-05/0.2387, allocations: 55.81 kB / 409.9 MB, free: 24.95 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.995e-06/0.2387, allocations: 0 / 409.9 MB, free: 24.95 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.22e-07/0.2387, allocations: 0 / 409.9 MB, free: 24.95 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.946e-06/0.2387, allocations: 0 / 409.9 MB, free: 24.95 MB / 298.7 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.0002905/0.239, allocations: 398.4 kB / 410.3 MB, free: 24.51 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.043e-05/0.2391, allocations: 12.03 kB / 410.3 MB, free: 24.5 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.469e-05/0.2391, allocations: 8.844 kB / 410.3 MB, free: 24.49 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001682/0.2393, allocations: 208.2 kB / 410.5 MB, free: 24.25 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.406e-06/0.2393, allocations: 384 / 410.5 MB, free: 24.25 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.302e-05/0.2393, allocations: 384 / 410.5 MB, free: 24.25 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.306e-05/0.2394, allocations: 74.23 kB / 410.6 MB, free: 24.16 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.192e-06/0.2394, allocations: 0 / 410.6 MB, free: 24.16 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.195e-05/0.2394, allocations: 8 kB / 410.6 MB, free: 24.15 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.216e-06/0.2394, allocations: 4 kB / 410.6 MB, free: 24.14 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.43e-05/0.2394, allocations: 4 kB / 410.6 MB, free: 24.14 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002147/0.2397, allocations: 181.6 kB / 410.8 MB, free: 23.91 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.344e-05/0.2397, allocations: 26.45 kB / 410.8 MB, free: 23.88 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.224e-05/0.2397, allocations: 8.922 kB / 410.8 MB, free: 23.87 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.13e-06/0.2397, allocations: 0 / 410.8 MB, free: 23.87 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.206e-05/0.2398, allocations: 64.2 kB / 410.9 MB, free: 23.79 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 8.12e-07/0.2398, allocations: 0 / 410.9 MB, free: 23.79 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 9.866e-05/0.2399, allocations: 41.69 kB / 410.9 MB, free: 23.74 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.994e-05/0.2399, allocations: 166.2 kB / 411.1 MB, free: 23.54 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001023/0.24, allocations: 164.5 kB / 411.3 MB, free: 23.38 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.476e-06/0.24, allocations: 25.7 kB / 411.3 MB, free: 23.34 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.618e-05/0.2401, allocations: 100.1 kB / 411.4 MB, free: 23.24 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.308e-05/0.2401, allocations: 3.906 kB / 411.4 MB, free: 23.24 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.052e-05/0.2401, allocations: 25.84 kB / 411.4 MB, free: 23.21 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.365e-05/0.2402, allocations: 322.8 kB / 411.7 MB, free: 22.88 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.155e-05/0.2402, allocations: 4 kB / 411.7 MB, free: 22.88 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.243e-05/0.2402, allocations: 36.28 kB / 411.8 MB, free: 22.83 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.154e-05/0.2402, allocations: 16.86 kB / 411.8 MB, free: 22.81 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.2402, allocations: 64 / 411.8 MB, free: 22.81 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.454e-05/0.2403, allocations: 57.53 kB / 411.8 MB, free: 22.75 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.017e-05/0.2403, allocations: 15.88 kB / 411.8 MB, free: 22.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.386e-06/0.2403, allocations: 0 / 411.8 MB, free: 22.73 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.267e-06/0.2403, allocations: 0 / 411.8 MB, free: 22.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.383e-05/0.2404, allocations: 4 kB / 411.9 MB, free: 22.73 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.907e-06/0.2404, allocations: 0 / 411.9 MB, free: 22.73 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.199e-05/0.2404, allocations: 0 / 411.9 MB, free: 22.73 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.809e-06/0.2405, allocations: 4 kB / 411.9 MB, free: 22.72 MB / 298.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: 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 5.015e-05/0.2405, allocations: 131.3 kB / 412 MB, free: 22.59 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.552e-05/0.2405, allocations: 11.84 kB / 412 MB, free: 22.57 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.756e-05/0.2406, allocations: 15.86 kB / 412 MB, free: 22.55 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-06/0.2406, allocations: 0 / 412 MB, free: 22.55 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.725e-06/0.2406, allocations: 0 / 412 MB, free: 22.55 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.633e-06/0.2406, allocations: 0 / 412 MB, free: 22.55 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001116/0.2407, allocations: 169.7 kB / 412.2 MB, free: 22.34 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.2407, allocations: 0 / 412.2 MB, free: 22.34 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.362e-05/0.2407, allocations: 4 kB / 412.2 MB, free: 22.33 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.2407, allocations: 3.938 kB / 412.2 MB, free: 22.33 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.57e-06/0.2408, allocations: 0 / 412.2 MB, free: 22.33 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.2408, allocations: 7.938 kB / 412.2 MB, free: 22.32 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.2408, allocations: 0 / 412.2 MB, free: 22.32 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004029/0.2412, allocations: 0.8502 MB / 413 MB, free: 21.34 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.15e-05/0.2412, allocations: 93.09 kB / 413.1 MB, free: 21.23 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.317e-05/0.2412, allocations: 7.938 kB / 413.1 MB, free: 21.22 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.493e-05/0.2413, allocations: 4 kB / 413.1 MB, free: 21.21 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.965e-06/0.2413, allocations: 0 / 413.1 MB, free: 21.21 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.893e-06/0.2413, allocations: 0 / 413.1 MB, free: 21.21 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.25e-05/0.2414, allocations: 133.8 kB / 413.3 MB, free: 21.09 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2414, allocations: 0 / 413.3 MB, free: 21.09 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002237/0.2416, allocations: 15.98 kB / 413.3 MB, free: 21.07 MB / 298.7 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.000205/0.2418, allocations: 147.4 kB / 413.4 MB, free: 20.94 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 6.159e-05/0.2419, allocations: 19.92 kB / 413.5 MB, free: 20.92 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.2419, allocations: 0 / 413.5 MB, free: 20.92 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.597e-06/0.2419, allocations: 8.062 kB / 413.5 MB, free: 20.91 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001386/0.2421, allocations: 8 kB / 413.5 MB, free: 20.9 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002661/0.2423, allocations: 358.5 kB / 413.8 MB, free: 20.51 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.32e-05/0.2424, allocations: 0.7159 MB / 414.5 MB, free: 19.77 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.395e-05/0.2425, allocations: 8 kB / 414.5 MB, free: 19.76 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.929e-05/0.2425, allocations: 15.42 kB / 414.6 MB, free: 19.75 MB / 298.7 MB Notification: Performance of SimCode: time 2.01e-07/0.2425, allocations: 0 / 414.6 MB, free: 19.75 MB / 298.7 MB Notification: Performance of Templates: time 0.002756/0.2453, allocations: 1.15 MB / 415.7 MB, free: 18.62 MB / 298.7 MB make -j1 -f Modelica_trunk_Modelica.Utilities.Examples.ReadRealMatrixFromFile.makefile (rm -f Modelica_trunk_Modelica.Utilities.Examples.ReadRealMatrixFromFile.pipe ; mkfifo Modelica_trunk_Modelica.Utilities.Examples.ReadRealMatrixFromFile.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Utilities.Examples.ReadRealMatrixFromFile.pipe >> ../files/Modelica_trunk_Modelica.Utilities.Examples.ReadRealMatrixFromFile.sim & ./Modelica_trunk_Modelica.Utilities.Examples.ReadRealMatrixFromFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Utilities.Examples.ReadRealMatrixFromFile.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Utilities.Examples.ReadRealMatrixFromFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Utilities/Examples/ReadRealMatrixFromFile/ReadRealMatrixFromFile.csv","../files/Modelica_trunk_Modelica.Utilities.Examples.ReadRealMatrixFromFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches