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.001508/0.001508, allocations: 113.6 kB / 18.45 MB, free: 4.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001582/0.001582, allocations: 202.8 kB / 19.4 MB, free: 3.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.233/2.233, allocations: 227.4 MB / 247.6 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002393/0.002393, allocations: 60.12 kB / 359.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4479/0.4503, allocations: 50.54 MB / 409.9 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.002868/0.4532, allocations: 484.5 kB / 410.4 MB, free: 1.09 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000421/0.4537, allocations: 63.8 kB / 410.4 MB, free: 1.027 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.03e-05/0.4537, allocations: 0 / 410.4 MB, free: 1.027 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.831e-05/0.4538, allocations: 0 / 410.4 MB, free: 1.027 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001046/0.454, allocations: 19.91 kB / 410.5 MB, free: 1.008 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002416/0.4542, allocations: 19.92 kB / 410.5 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001517/0.4544, allocations: 19.98 kB / 410.5 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.115e-05/0.4545, allocations: 3.984 kB / 410.5 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.917e-05/0.4545, allocations: 8 kB / 410.5 MB, free: 0.957 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001209/0.4547, allocations: 31.89 kB / 410.5 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.416e-05/0.4547, allocations: 0 / 410.5 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.694e-05/0.4548, allocations: 8 kB / 410.5 MB, free: 0.918 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.669e-05/0.4549, allocations: 8 kB / 410.5 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.557e-05/0.4549, allocations: 7.938 kB / 410.6 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001497/0.4551, allocations: 27.91 kB / 410.6 MB, free: 0.875 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.494e-06/0.4551, allocations: 4 kB / 410.6 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.4551, allocations: 0 / 410.6 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.612e-06/0.4551, allocations: 0 / 410.6 MB, free: 0.8711 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.0005232/0.4557, allocations: 353.2 kB / 410.9 MB, free: 480 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.203e-05/0.4557, allocations: 12.03 kB / 410.9 MB, free: 468 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.636e-05/0.4558, allocations: 8.922 kB / 411 MB, free: 460 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002107/0.4561, allocations: 184 kB / 411.1 MB, free: 240 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.176e-05/0.4561, allocations: 384 / 411.1 MB, free: 240 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.524e-05/0.4561, allocations: 384 / 411.1 MB, free: 240 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001899/0.4563, allocations: 58.23 kB / 411.2 MB, free: 176 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.284e-05/0.4563, allocations: 4.188 kB / 411.2 MB, free: 172 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.875e-05/0.4564, allocations: 3.938 kB / 411.2 MB, free: 168 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.169e-05/0.4564, allocations: 0 / 411.2 MB, free: 168 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.34e-05/0.4565, allocations: 27.92 kB / 411.2 MB, free: 140 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002693/0.4568, allocations: 157.7 kB / 411.4 MB, free: 15.93 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000107/0.4569, allocations: 50.52 kB / 411.4 MB, free: 15.88 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.166e-05/0.457, allocations: 36.92 kB / 411.5 MB, free: 15.84 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.372e-05/0.457, allocations: 0 / 411.5 MB, free: 15.84 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.014e-05/0.4571, allocations: 60.25 kB / 411.5 MB, free: 15.76 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 2.585e-06/0.4571, allocations: 0 / 411.5 MB, free: 15.76 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0005155/0.4577, allocations: 187.3 kB / 411.7 MB, free: 15.57 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.019e-05/0.4578, allocations: 77.11 kB / 411.8 MB, free: 15.47 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001579/0.458, allocations: 121.7 kB / 411.9 MB, free: 15.34 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.495e-05/0.458, allocations: 25.7 kB / 411.9 MB, free: 15.31 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.453e-05/0.4581, allocations: 92.12 kB / 412 MB, free: 15.22 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.267e-05/0.4581, allocations: 3.906 kB / 412 MB, free: 15.21 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.096e-05/0.4582, allocations: 21.7 kB / 412 MB, free: 15.19 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001826/0.4584, allocations: 314.8 kB / 412.3 MB, free: 14.87 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.744e-05/0.4585, allocations: 27.98 kB / 412.4 MB, free: 14.84 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.09e-05/0.4586, allocations: 23.98 kB / 412.4 MB, free: 14.82 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001877/0.4588, allocations: 124.5 kB / 412.5 MB, free: 14.68 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.4588, allocations: 3.938 kB / 412.5 MB, free: 14.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0003298/0.4592, allocations: 151.3 kB / 412.7 MB, free: 14.52 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.057e-05/0.4593, allocations: 33.7 kB / 412.7 MB, free: 14.48 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.562e-05/0.4593, allocations: 3.938 kB / 412.7 MB, free: 14.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.713e-05/0.4593, allocations: 3.938 kB / 412.7 MB, free: 14.47 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.983e-06/0.4593, allocations: 0 / 412.7 MB, free: 14.47 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.167e-05/0.4594, allocations: 4 kB / 412.7 MB, free: 14.47 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.275e-05/0.4594, allocations: 3.984 kB / 412.7 MB, free: 14.46 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.43e-05/0.4594, allocations: 0 / 412.7 MB, free: 14.46 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 0.0001831/0.4596, allocations: 155.5 kB / 412.9 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.229e-05/0.4597, allocations: 0 / 412.9 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.612e-05/0.4597, allocations: 15.83 kB / 412.9 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.065e-06/0.4598, allocations: 0 / 412.9 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.4598, allocations: 0 / 412.9 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.815e-05/0.4598, allocations: 0 / 412.9 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001991/0.46, allocations: 162.8 kB / 413 MB, free: 14.06 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.46, allocations: 256 / 413 MB, free: 14.06 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.013e-06/0.46, allocations: 4 kB / 413.1 MB, free: 14.05 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.4601, allocations: 3.938 kB / 413.1 MB, free: 14.05 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.343e-05/0.4601, allocations: 15.92 kB / 413.1 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.514e-06/0.4601, allocations: 0 / 413.1 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.4601, allocations: 0 / 413.1 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003742/0.4605, allocations: 190.7 kB / 413.3 MB, free: 13.82 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.831e-05/0.4606, allocations: 81.09 kB / 413.3 MB, free: 13.73 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.252e-05/0.4606, allocations: 7.938 kB / 413.3 MB, free: 13.72 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.557e-05/0.4607, allocations: 0 / 413.3 MB, free: 13.72 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.707e-05/0.4607, allocations: 0 / 413.3 MB, free: 13.72 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.184e-05/0.4607, allocations: 12.03 kB / 413.4 MB, free: 13.71 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.21e-05/0.4608, allocations: 87.27 kB / 413.4 MB, free: 13.62 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.4609, allocations: 0 / 413.4 MB, free: 13.62 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003787/0.4612, allocations: 16 kB / 413.5 MB, free: 13.61 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.0004463/0.4617, allocations: 117.6 kB / 413.6 MB, free: 13.49 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002912/0.462, allocations: 135.4 kB / 413.7 MB, free: 13.35 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.462, allocations: 0 / 413.7 MB, free: 13.35 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001275/0.4622, allocations: 95.39 kB / 413.8 MB, free: 13.24 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002406/0.4624, allocations: 4 kB / 413.8 MB, free: 13.24 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004987/0.463, allocations: 170.6 kB / 414 MB, free: 13.04 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004583/0.4634, allocations: 0.6768 MB / 414.6 MB, free: 12.34 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.142e-05/0.4635, allocations: 11.44 kB / 414.7 MB, free: 12.32 MB / 334.1 MB Notification: Performance of SimCode: time 6.91e-07/0.4635, allocations: 128 / 414.7 MB, free: 12.32 MB / 334.1 MB Notification: Performance of Templates: time 0.004027/0.4675, allocations: 0.688 MB / 415.3 MB, free: 11.65 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