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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001324/0.001324, allocations: 176.4 kB / 8.349 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.387/1.387, allocations: 221.5 MB / 230.3 MB, free: 7.574 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009788/0.0009788, allocations: 93.89 kB / 281.2 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.839e-05/1.842e-05, allocations: 4 kB / 337 MB, free: 10.04 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1039, allocations: 50.42 MB / 387.5 MB, free: 7.594 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3258/0.4297, allocations: 74.21 MB / 461.7 MB, free: 4.688 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001952/0.43, allocations: 59.97 kB / 461.7 MB, free: 4.629 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.001789/0.4318, allocations: 0.8253 MB / 462.5 MB, free: 3.809 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.143e-06/0.4318, allocations: 0 / 462.5 MB, free: 3.809 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.771e-06/0.4318, allocations: 0 / 462.5 MB, free: 3.809 MB / 330.7 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.0002691/0.4321, allocations: 356.7 kB / 462.9 MB, free: 3.41 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.45e-05/0.4321, allocations: 8.031 kB / 462.9 MB, free: 3.402 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.405e-05/0.4322, allocations: 8.703 kB / 462.9 MB, free: 3.395 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001076/0.4323, allocations: 163 kB / 463.1 MB, free: 3.195 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.228e-05/0.4323, allocations: 4 kB / 463.1 MB, free: 3.191 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.417e-05/0.4323, allocations: 4 kB / 463.1 MB, free: 3.188 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.758e-05/0.4324, allocations: 38.59 kB / 463.1 MB, free: 3.152 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001014/0.4325, allocations: 77.64 kB / 463.2 MB, free: 3.07 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.354e-06/0.4326, allocations: 0 / 463.2 MB, free: 3.07 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.225e-05/0.4326, allocations: 4 kB / 463.2 MB, free: 3.066 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.4326, allocations: 7.891 kB / 463.2 MB, free: 3.059 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001352/0.4327, allocations: 134.1 kB / 463.3 MB, free: 2.895 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.485e-05/0.4328, allocations: 61.92 kB / 463.4 MB, free: 2.828 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.135e-05/0.4329, allocations: 48.91 kB / 463.4 MB, free: 2.777 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.066e-05/0.4329, allocations: 7.984 kB / 463.5 MB, free: 2.77 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.937e-05/0.4329, allocations: 56.27 kB / 463.5 MB, free: 2.699 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 9.42e-07/0.4329, allocations: 0 / 463.5 MB, free: 2.699 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002945/0.4332, allocations: 161.5 kB / 463.7 MB, free: 2.535 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.709e-05/0.4333, allocations: 81.09 kB / 463.7 MB, free: 2.438 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.549e-05/0.4334, allocations: 101 kB / 463.8 MB, free: 2.332 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.228e-05/0.4334, allocations: 25.7 kB / 463.9 MB, free: 2.301 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.774e-05/0.4335, allocations: 88.17 kB / 464 MB, free: 2.211 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.517e-05/0.4335, allocations: 15.88 kB / 464 MB, free: 2.195 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.611e-06/0.4335, allocations: 0 / 464 MB, free: 2.195 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001075/0.4336, allocations: 318.8 kB / 464.3 MB, free: 1.875 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.502e-05/0.4337, allocations: 35.97 kB / 464.3 MB, free: 1.84 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.033e-05/0.4337, allocations: 39.91 kB / 464.4 MB, free: 1.801 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.123e-05/0.4338, allocations: 35.97 kB / 464.4 MB, free: 1.766 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.4338, allocations: 4 kB / 464.4 MB, free: 1.762 MB / 330.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002057/0.434, allocations: 153.6 kB / 464.5 MB, free: 1.605 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.129e-05/0.434, allocations: 37.7 kB / 464.6 MB, free: 1.562 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.4341, allocations: 0 / 464.6 MB, free: 1.562 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.129e-05/0.4341, allocations: 4 kB / 464.6 MB, free: 1.559 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.064e-06/0.4341, allocations: 3.984 kB / 464.6 MB, free: 1.555 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.246e-06/0.4341, allocations: 0 / 464.6 MB, free: 1.555 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.755e-05/0.4341, allocations: 0 / 464.6 MB, free: 1.555 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.562e-05/0.4341, allocations: 12 kB / 464.6 MB, free: 1.543 MB / 330.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: 4 (success1,success2,success3,success4) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.356e-05/0.4342, allocations: 134.6 kB / 464.7 MB, free: 1.398 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.374e-05/0.4343, allocations: 7.906 kB / 464.7 MB, free: 1.391 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.91e-05/0.4343, allocations: 12.33 kB / 464.8 MB, free: 1.375 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.846e-06/0.4343, allocations: 4 kB / 464.8 MB, free: 1.371 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.636e-06/0.4343, allocations: 0 / 464.8 MB, free: 1.371 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.794e-06/0.4343, allocations: 0 / 464.8 MB, free: 1.371 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.447e-05/0.4344, allocations: 142.2 kB / 464.9 MB, free: 1.195 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.4344, allocations: 0 / 464.9 MB, free: 1.195 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.536e-06/0.4344, allocations: 4 kB / 464.9 MB, free: 1.191 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.313e-06/0.4344, allocations: 0 / 464.9 MB, free: 1.191 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.201e-05/0.4344, allocations: 4 kB / 464.9 MB, free: 1.188 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.4344, allocations: 0 / 464.9 MB, free: 1.188 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.4345, allocations: 3.938 kB / 464.9 MB, free: 1.184 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002633/0.4347, allocations: 197 kB / 465.1 MB, free: 0.9727 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.282e-05/0.4348, allocations: 84.97 kB / 465.2 MB, free: 0.8711 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.133e-05/0.4348, allocations: 3.938 kB / 465.2 MB, free: 0.8672 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.569e-05/0.4348, allocations: 4.25 kB / 465.2 MB, free: 0.8633 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.826e-05/0.4349, allocations: 0 / 465.2 MB, free: 0.8633 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.769e-05/0.4349, allocations: 16 kB / 465.2 MB, free: 0.8477 MB / 330.7 MB Notification: Performance of sorting global known variables: time 5.436e-05/0.4349, allocations: 87.27 kB / 465.3 MB, free: 0.7617 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4349, allocations: 4.031 kB / 465.3 MB, free: 0.7578 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0001809/0.4351, allocations: 8 kB / 465.3 MB, free: 0.75 MB / 330.7 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002773/0.4354, allocations: 124.7 kB / 465.4 MB, free: 0.6289 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001558/0.4356, allocations: 115.4 kB / 465.5 MB, free: 0.5039 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.4356, allocations: 8 kB / 465.5 MB, free: 0.4961 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.557e-05/0.4357, allocations: 95.39 kB / 465.6 MB, free: 400 kB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.648e-05/0.4358, allocations: 8.703 kB / 465.6 MB, free: 392 kB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002182/0.436, allocations: 103.8 kB / 465.7 MB, free: 264 kB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002979/0.4363, allocations: 0.6846 MB / 466.4 MB, free: 15.55 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 5.961e-06/0.4363, allocations: 4 kB / 466.4 MB, free: 15.54 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.967e-06/0.4363, allocations: 7.438 kB / 466.4 MB, free: 15.54 MB / 346.7 MB Notification: Performance of SimCode: time 2.31e-07/0.4363, allocations: 0 / 466.4 MB, free: 15.54 MB / 346.7 MB Notification: Performance of Templates: time 0.0024/0.4387, allocations: 0.6002 MB / 467 MB, free: 14.94 MB / 346.7 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","../files/Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches