Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile") translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001033/0.001033, allocations: 101.3 kB / 17.05 MB, free: 6.125 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.001177/0.001177, allocations: 196.1 kB / 18 MB, free: 5.199 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.342/1.342, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001024/0.001024, allocations: 51.92 kB / 351.3 MB, free: 3.277 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2553/0.2564, allocations: 49.44 MB / 400.7 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001546/0.258, allocations: 488 kB / 401.2 MB, free: 8.371 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002299/0.2582, allocations: 59.23 kB / 401.2 MB, free: 8.328 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.695e-05/0.2583, allocations: 1.25 kB / 401.2 MB, free: 8.328 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.844e-05/0.2583, allocations: 4 kB / 401.2 MB, free: 8.324 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.032e-05/0.2584, allocations: 15.75 kB / 401.3 MB, free: 8.316 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001449/0.2585, allocations: 22.75 kB / 401.3 MB, free: 8.301 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 9.379e-05/0.2586, allocations: 19.67 kB / 401.3 MB, free: 8.285 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.355e-05/0.2587, allocations: 4 kB / 401.3 MB, free: 8.281 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.479e-05/0.2587, allocations: 11.98 kB / 401.3 MB, free: 8.27 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.337e-05/0.2588, allocations: 27.91 kB / 401.3 MB, free: 8.242 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.679e-05/0.2588, allocations: 0 / 401.3 MB, free: 8.242 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.263e-05/0.2589, allocations: 4 kB / 401.3 MB, free: 8.238 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.774e-05/0.2589, allocations: 7.984 kB / 401.3 MB, free: 8.23 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.652e-05/0.259, allocations: 15.94 kB / 401.4 MB, free: 8.215 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 9.805e-05/0.2591, allocations: 27.91 kB / 401.4 MB, free: 8.188 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.2591, allocations: 0 / 401.4 MB, free: 8.188 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2591, allocations: 0 / 401.4 MB, free: 8.188 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.899e-06/0.2591, allocations: 0 / 401.4 MB, free: 8.188 MB / 318.1 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.0003992/0.2595, allocations: 365.1 kB / 401.7 MB, free: 7.773 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.774e-05/0.2596, allocations: 8.031 kB / 401.8 MB, free: 7.766 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.994e-05/0.2596, allocations: 8.875 kB / 401.8 MB, free: 7.758 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001144/0.2597, allocations: 165.6 kB / 401.9 MB, free: 7.559 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.421e-05/0.2598, allocations: 4.375 kB / 401.9 MB, free: 7.555 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.167e-06/0.2598, allocations: 4.375 kB / 401.9 MB, free: 7.551 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001244/0.2599, allocations: 66.22 kB / 402 MB, free: 7.48 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.328e-06/0.2599, allocations: 192 / 402 MB, free: 7.48 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.378e-05/0.2599, allocations: 7.938 kB / 402 MB, free: 7.473 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.2599, allocations: 0 / 402 MB, free: 7.473 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.005e-05/0.26, allocations: 23.98 kB / 402 MB, free: 7.449 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001556/0.2602, allocations: 161.5 kB / 402.2 MB, free: 7.246 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.696e-05/0.2602, allocations: 50.5 kB / 402.2 MB, free: 7.188 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.425e-05/0.2603, allocations: 36.92 kB / 402.3 MB, free: 7.148 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.016e-05/0.2603, allocations: 4 kB / 402.3 MB, free: 7.145 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.058e-05/0.2604, allocations: 56.27 kB / 402.3 MB, free: 7.074 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 1.322e-06/0.2604, allocations: 0 / 402.3 MB, free: 7.074 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003367/0.2607, allocations: 187.2 kB / 402.5 MB, free: 6.879 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.348e-05/0.2608, allocations: 81.11 kB / 402.6 MB, free: 6.781 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.639e-05/0.2609, allocations: 109.8 kB / 402.7 MB, free: 6.664 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.449e-05/0.2609, allocations: 29.73 kB / 402.7 MB, free: 6.629 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.086e-05/0.2609, allocations: 88.12 kB / 402.8 MB, free: 6.539 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.792e-05/0.261, allocations: 7.906 kB / 402.8 MB, free: 6.531 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.081e-05/0.261, allocations: 13.72 kB / 402.8 MB, free: 6.512 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001077/0.2611, allocations: 318.8 kB / 403.2 MB, free: 6.191 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.262e-05/0.2612, allocations: 23.98 kB / 403.2 MB, free: 6.168 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.843e-05/0.2612, allocations: 27.98 kB / 403.2 MB, free: 6.141 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.234e-05/0.2613, allocations: 116.2 kB / 403.3 MB, free: 6.012 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.2613, allocations: 4.031 kB / 403.3 MB, free: 6.008 MB / 318.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.000155/0.2615, allocations: 159.2 kB / 403.5 MB, free: 5.84 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.408e-05/0.2615, allocations: 37.69 kB / 403.5 MB, free: 5.797 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.186e-05/0.2615, allocations: 4.188 kB / 403.5 MB, free: 5.793 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.086e-05/0.2615, allocations: 0 / 403.5 MB, free: 5.793 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.024e-06/0.2615, allocations: 4 kB / 403.5 MB, free: 5.789 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.869e-06/0.2616, allocations: 0 / 403.5 MB, free: 5.789 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.261e-05/0.2616, allocations: 4 kB / 403.5 MB, free: 5.785 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.073e-06/0.2616, allocations: 0 / 403.5 MB, free: 5.785 MB / 318.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: 4 (success4,success3,success2,success1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.636e-05/0.2617, allocations: 151.5 kB / 403.7 MB, free: 5.621 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.351e-05/0.2617, allocations: 11.97 kB / 403.7 MB, free: 5.609 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.757e-05/0.2617, allocations: 11.84 kB / 403.7 MB, free: 5.59 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.233e-06/0.2617, allocations: 0 / 403.7 MB, free: 5.59 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.2617, allocations: 0 / 403.7 MB, free: 5.59 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-06/0.2618, allocations: 3.938 kB / 403.7 MB, free: 5.586 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001016/0.2619, allocations: 165.6 kB / 403.9 MB, free: 5.375 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.2619, allocations: 0 / 403.9 MB, free: 5.375 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.41e-07/0.2619, allocations: 0 / 403.9 MB, free: 5.375 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.282e-06/0.2619, allocations: 0 / 403.9 MB, free: 5.375 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.708e-06/0.2619, allocations: 3.938 kB / 403.9 MB, free: 5.371 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.203e-06/0.2619, allocations: 8 kB / 403.9 MB, free: 5.363 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.2619, allocations: 0 / 403.9 MB, free: 5.363 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001952/0.2621, allocations: 198.9 kB / 404.1 MB, free: 5.145 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.031e-05/0.2622, allocations: 77.11 kB / 404.1 MB, free: 5.051 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.79e-05/0.2622, allocations: 7.938 kB / 404.1 MB, free: 5.043 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.435e-05/0.2622, allocations: 0 / 404.1 MB, free: 5.043 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.33e-05/0.2622, allocations: 0 / 404.1 MB, free: 5.043 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.504e-06/0.2622, allocations: 4 kB / 404.2 MB, free: 5.039 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.353e-05/0.2623, allocations: 95.3 kB / 404.2 MB, free: 4.945 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2623, allocations: 0 / 404.2 MB, free: 4.945 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0001918/0.2625, allocations: 12 kB / 404.3 MB, free: 4.934 MB / 318.1 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 (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.0002456/0.2627, allocations: 131.8 kB / 404.4 MB, free: 4.812 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001491/0.2629, allocations: 127.4 kB / 404.5 MB, free: 4.676 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.2629, allocations: 4.062 kB / 404.5 MB, free: 4.672 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 8.196e-05/0.263, allocations: 99.33 kB / 404.6 MB, free: 4.562 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001344/0.2631, allocations: 7.984 kB / 404.6 MB, free: 4.555 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002314/0.2634, allocations: 140.9 kB / 404.8 MB, free: 4.391 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003027/0.2637, allocations: 0.6883 MB / 405.4 MB, free: 3.676 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 5.64e-06/0.2637, allocations: 0 / 405.4 MB, free: 3.676 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.498e-06/0.2638, allocations: 7.438 kB / 405.5 MB, free: 3.668 MB / 318.1 MB Notification: Performance of SimCode: time 5.91e-07/0.2638, allocations: 4 kB / 405.5 MB, free: 3.664 MB / 318.1 MB Notification: Performance of Templates: time 0.002617/0.2664, allocations: 0.6824 MB / 406.1 MB, free: 2.996 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile (rm -f Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & ./Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches