Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_Modelica.Utilities.Examples.WriteRealMatrixToFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00108/0.00108, allocations: 121.7 kB / 18.46 MB, free: 4.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001093/0.001093, allocations: 212.8 kB / 19.41 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.376/1.376, allocations: 227.4 MB / 247.6 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001198/0.001198, allocations: 59.91 kB / 359.3 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2591/0.2603, allocations: 50.55 MB / 409.9 MB, free: 1.723 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001411/0.2618, allocations: 484.6 kB / 410.4 MB, free: 1.254 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002513/0.2621, allocations: 63.78 kB / 410.4 MB, free: 1.191 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.286e-05/0.2621, allocations: 0 / 410.4 MB, free: 1.191 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.822e-05/0.2621, allocations: 3.938 kB / 410.4 MB, free: 1.188 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.052e-05/0.2622, allocations: 11.98 kB / 410.5 MB, free: 1.176 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001462/0.2624, allocations: 19.97 kB / 410.5 MB, free: 1.156 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 9.615e-05/0.2625, allocations: 27.86 kB / 410.5 MB, free: 1.129 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.003e-05/0.2625, allocations: 0 / 410.5 MB, free: 1.129 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.926e-05/0.2625, allocations: 19.97 kB / 410.5 MB, free: 1.109 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.897e-05/0.2626, allocations: 23.92 kB / 410.5 MB, free: 1.086 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.542e-05/0.2626, allocations: 0 / 410.5 MB, free: 1.086 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.788e-05/0.2627, allocations: 4 kB / 410.5 MB, free: 1.082 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.951e-05/0.2627, allocations: 8 kB / 410.6 MB, free: 1.074 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.649e-05/0.2628, allocations: 7.938 kB / 410.6 MB, free: 1.066 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 8.748e-05/0.2629, allocations: 31.89 kB / 410.6 MB, free: 1.035 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.2629, allocations: 0 / 410.6 MB, free: 1.035 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2629, allocations: 0 / 410.6 MB, free: 1.035 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.958e-06/0.2629, allocations: 0 / 410.6 MB, free: 1.035 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.0003169/0.2632, allocations: 361.2 kB / 410.9 MB, free: 0.625 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.09e-05/0.2632, allocations: 8.031 kB / 411 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.873e-05/0.2633, allocations: 4.938 kB / 411 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001067/0.2634, allocations: 169.6 kB / 411.1 MB, free: 420 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.002e-05/0.2634, allocations: 4.375 kB / 411.1 MB, free: 416 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.059e-05/0.2634, allocations: 384 / 411.1 MB, free: 416 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000112/0.2635, allocations: 62.17 kB / 411.2 MB, free: 348 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.163e-06/0.2635, allocations: 4.188 kB / 411.2 MB, free: 344 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.031e-05/0.2636, allocations: 3.938 kB / 411.2 MB, free: 340 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.2636, allocations: 4 kB / 411.2 MB, free: 336 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.565e-05/0.2636, allocations: 27.92 kB / 411.2 MB, free: 308 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001296/0.2637, allocations: 161.7 kB / 411.4 MB, free: 96 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.924e-05/0.2638, allocations: 46.56 kB / 411.4 MB, free: 40 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.757e-05/0.2639, allocations: 36.92 kB / 411.5 MB, free: 0 / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.382e-06/0.2639, allocations: 0 / 411.5 MB, free: 0 / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.332e-05/0.2639, allocations: 60.2 kB / 411.5 MB, free: 15.93 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 9.72e-07/0.2639, allocations: 4 kB / 411.5 MB, free: 15.92 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.000261/0.2642, allocations: 187.3 kB / 411.7 MB, free: 15.73 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.124e-05/0.2643, allocations: 81.11 kB / 411.8 MB, free: 15.63 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.803e-05/0.2643, allocations: 113.8 kB / 411.9 MB, free: 15.51 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.309e-05/0.2644, allocations: 25.7 kB / 411.9 MB, free: 15.48 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.183e-05/0.2644, allocations: 88.14 kB / 412 MB, free: 15.39 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.884e-05/0.2644, allocations: 7.891 kB / 412 MB, free: 15.38 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.216e-05/0.2645, allocations: 17.72 kB / 412 MB, free: 15.36 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.917e-05/0.2646, allocations: 318.9 kB / 412.3 MB, free: 15.04 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.543e-05/0.2646, allocations: 23.98 kB / 412.4 MB, free: 15.01 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.603e-05/0.2647, allocations: 27.98 kB / 412.4 MB, free: 14.98 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.86e-05/0.2648, allocations: 128.3 kB / 412.5 MB, free: 14.84 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.2648, allocations: 0 / 412.5 MB, free: 14.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001524/0.2649, allocations: 147.4 kB / 412.7 MB, free: 14.68 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.295e-05/0.265, allocations: 41.62 kB / 412.7 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.039e-06/0.265, allocations: 3.938 kB / 412.7 MB, free: 14.63 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.05e-05/0.265, allocations: 0 / 412.7 MB, free: 14.63 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.61e-07/0.265, allocations: 64 / 412.7 MB, free: 14.63 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.917e-06/0.265, allocations: 4 kB / 412.7 MB, free: 14.63 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.906e-05/0.265, allocations: 4 kB / 412.7 MB, free: 14.62 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.584e-06/0.265, allocations: 0 / 412.7 MB, free: 14.62 MB / 334.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.18e-05/0.2651, allocations: 151.7 kB / 412.9 MB, free: 14.46 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.083e-05/0.2652, allocations: 4 kB / 412.9 MB, free: 14.46 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.621e-05/0.2652, allocations: 11.84 kB / 412.9 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.2652, allocations: 4 kB / 412.9 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.586e-06/0.2652, allocations: 0 / 412.9 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.2652, allocations: 0 / 412.9 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001082/0.2653, allocations: 169.6 kB / 413.1 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.2653, allocations: 3.938 kB / 413.1 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.773e-06/0.2653, allocations: 0 / 413.1 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.383e-06/0.2653, allocations: 3.938 kB / 413.1 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.12e-05/0.2654, allocations: 7.938 kB / 413.1 MB, free: 14.2 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.32e-07/0.2654, allocations: 0 / 413.1 MB, free: 14.2 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.2654, allocations: 0 / 413.1 MB, free: 14.2 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001873/0.2656, allocations: 190.8 kB / 413.3 MB, free: 13.99 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.111e-05/0.2656, allocations: 81.14 kB / 413.3 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.752e-05/0.2656, allocations: 7.938 kB / 413.3 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.174e-05/0.2656, allocations: 0 / 413.3 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.343e-05/0.2657, allocations: 0 / 413.3 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.102e-06/0.2657, allocations: 4 kB / 413.3 MB, free: 13.88 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.046e-05/0.2657, allocations: 91.27 kB / 413.4 MB, free: 13.79 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2657, allocations: 0 / 413.4 MB, free: 13.79 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001915/0.2659, allocations: 16 kB / 413.5 MB, free: 13.77 MB / 334.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.0002307/0.2662, allocations: 128.6 kB / 413.6 MB, free: 13.65 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001561/0.2663, allocations: 131.3 kB / 413.7 MB, free: 13.51 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.009e-06/0.2663, allocations: 0 / 413.7 MB, free: 13.51 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.579e-05/0.2664, allocations: 95.39 kB / 413.8 MB, free: 13.41 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001365/0.2666, allocations: 4 kB / 413.8 MB, free: 13.4 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002372/0.2668, allocations: 170.8 kB / 414 MB, free: 13.2 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002334/0.2671, allocations: 0.6846 MB / 414.7 MB, free: 12.49 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.109e-05/0.2671, allocations: 7.438 kB / 414.7 MB, free: 12.48 MB / 334.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2671, allocations: 0 / 414.7 MB, free: 12.48 MB / 334.1 MB Notification: Performance of Templates: time 0.001863/0.2689, allocations: 0.6772 MB / 415.3 MB, free: 11.82 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile (rm -f Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & ./Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches