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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007915/0.0007915, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001112/0.001904, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001023/0.001023, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001058/0.002081, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9525/0.9525, allocations: 177.4 MB / 189.9 MB, free: 4.84 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08181/1.034, allocations: 53.87 MB / 243.7 MB, free: 14.91 MB / 250.7 MB " [Timeout remaining time 179] 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=5002,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile") translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.393e-06/1.393e-06, allocations: 0 / 245 MB, free: 13.69 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.659e-05/1.798e-05, allocations: 5.828 kB / 245 MB, free: 13.68 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001455/0.001473, allocations: 0.5323 MB / 245.5 MB, free: 13.15 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001282/0.001602, allocations: 67.72 kB / 245.6 MB, free: 13.09 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.053e-05/0.001622, allocations: 0 / 245.6 MB, free: 13.09 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 1.816e-05/0.00164, allocations: 0 / 245.6 MB, free: 13.09 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 5.429e-05/0.001695, allocations: 15.98 kB / 245.6 MB, free: 13.07 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 8.194e-05/0.001776, allocations: 27.91 kB / 245.6 MB, free: 13.04 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 9.944e-05/0.001876, allocations: 19.97 kB / 245.6 MB, free: 13.02 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.792e-05/0.001914, allocations: 7.938 kB / 245.6 MB, free: 13.02 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.543e-05/0.001969, allocations: 11.98 kB / 245.7 MB, free: 13 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.249e-05/0.002042, allocations: 23.98 kB / 245.7 MB, free: 12.98 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.787e-05/0.00206, allocations: 0 / 245.7 MB, free: 12.98 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.452e-05/0.002104, allocations: 7.984 kB / 245.7 MB, free: 12.97 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.368e-05/0.002138, allocations: 7.938 kB / 245.7 MB, free: 12.96 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.068e-05/0.002158, allocations: 4 kB / 245.7 MB, free: 12.96 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 9.02e-05/0.002249, allocations: 27.91 kB / 245.7 MB, free: 12.93 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.606e-05/0.002265, allocations: 4 kB / 245.7 MB, free: 12.93 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.002266, allocations: 0 / 245.7 MB, free: 12.93 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.645e-05/0.002282, allocations: 0 / 245.7 MB, free: 12.93 MB / 250.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.0003003/0.002582, allocations: 266.3 kB / 246 MB, free: 12.64 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.883e-05/0.002611, allocations: 16.56 kB / 246 MB, free: 12.62 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.765e-05/0.002639, allocations: 12.86 kB / 246 MB, free: 12.61 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.273e-05/0.002712, allocations: 109.7 kB / 246.1 MB, free: 12.48 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.035e-05/0.002722, allocations: 4.375 kB / 246.1 MB, free: 12.47 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.603e-06/0.002729, allocations: 384 / 246.1 MB, free: 12.47 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.913e-05/0.002798, allocations: 66.78 kB / 246.2 MB, free: 12.39 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.362e-06/0.002804, allocations: 4.188 kB / 246.2 MB, free: 12.39 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.691e-06/0.00281, allocations: 4.375 kB / 246.2 MB, free: 12.39 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.579e-06/0.002814, allocations: 384 / 246.2 MB, free: 12.39 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.147e-05/0.002836, allocations: 41.62 kB / 246.2 MB, free: 12.34 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.663e-05/0.002892, allocations: 59.88 kB / 246.3 MB, free: 12.27 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.349e-05/0.002936, allocations: 52.22 kB / 246.4 MB, free: 12.2 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.86e-05/0.002955, allocations: 42.67 kB / 246.4 MB, free: 12.15 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.845e-06/0.002957, allocations: 0 / 246.4 MB, free: 12.15 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.755e-05/0.002985, allocations: 56.27 kB / 246.5 MB, free: 12.08 MB / 250.7 MB Notification: Performance of pre-optimization done (n=4): time 2.054e-06/0.002987, allocations: 3.984 kB / 246.5 MB, free: 12.07 MB / 250.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001129/0.0031, allocations: 150.7 kB / 246.6 MB, free: 11.9 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.291e-05/0.003133, allocations: 77.11 kB / 246.7 MB, free: 11.81 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.076e-05/0.003194, allocations: 110.7 kB / 246.8 MB, free: 11.69 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 8.356e-06/0.003202, allocations: 25.7 kB / 246.8 MB, free: 11.66 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.896e-05/0.003221, allocations: 84.14 kB / 246.9 MB, free: 11.57 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.437e-05/0.003245, allocations: 7.938 kB / 246.9 MB, free: 11.56 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.535e-05/0.003271, allocations: 21.7 kB / 246.9 MB, free: 11.54 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.256e-05/0.003343, allocations: 318.8 kB / 247.2 MB, free: 11.21 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.923e-05/0.003362, allocations: 36.78 kB / 247.3 MB, free: 11.17 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.629e-05/0.003379, allocations: 37.69 kB / 247.3 MB, free: 11.13 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.411e-05/0.003423, allocations: 83.14 kB / 247.4 MB, free: 11.03 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.003425, allocations: 4 kB / 247.4 MB, free: 11.03 MB / 250.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 5.977e-05/0.003484, allocations: 105 kB / 247.5 MB, free: 10.91 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.207e-05/0.003516, allocations: 33.7 kB / 247.5 MB, free: 10.87 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.717e-06/0.00352, allocations: 0 / 247.5 MB, free: 10.87 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.023e-06/0.003527, allocations: 0 / 247.5 MB, free: 10.87 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.998e-06/0.003531, allocations: 0 / 247.5 MB, free: 10.87 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.986e-06/0.003534, allocations: 3.984 kB / 247.5 MB, free: 10.86 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.266e-05/0.003547, allocations: 4 kB / 247.5 MB, free: 10.86 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.482e-06/0.003553, allocations: 0 / 247.5 MB, free: 10.86 MB / 250.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 (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 5.845e-05/0.003612, allocations: 154.2 kB / 247.7 MB, free: 10.69 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.862e-06/0.003619, allocations: 12.03 kB / 247.7 MB, free: 10.68 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.022e-05/0.003629, allocations: 7.984 kB / 247.7 MB, free: 10.68 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.41e-07/0.00363, allocations: 0 / 247.7 MB, free: 10.68 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.162e-06/0.003631, allocations: 0 / 247.7 MB, free: 10.68 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.613e-06/0.003632, allocations: 0 / 247.7 MB, free: 10.68 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.401e-05/0.003676, allocations: 69.84 kB / 247.8 MB, free: 10.59 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.01e-07/0.003677, allocations: 0 / 247.8 MB, free: 10.59 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.7e-07/0.003677, allocations: 0 / 247.8 MB, free: 10.59 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.216e-06/0.003685, allocations: 11.89 kB / 247.8 MB, free: 10.58 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.51e-07/0.003686, allocations: 0 / 247.8 MB, free: 10.58 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.31e-06/0.003691, allocations: 7.984 kB / 247.8 MB, free: 10.57 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.31e-07/0.003692, allocations: 4 kB / 247.8 MB, free: 10.57 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.92e-07/0.003692, allocations: 0 / 247.8 MB, free: 10.57 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.631e-05/0.003768, allocations: 154 kB / 247.9 MB, free: 10.38 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.254e-05/0.003781, allocations: 4 kB / 248 MB, free: 10.38 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.082e-06/0.003787, allocations: 0 / 248 MB, free: 10.38 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.625e-06/0.003795, allocations: 0 / 248 MB, free: 10.38 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.667e-06/0.003798, allocations: 4 kB / 248 MB, free: 10.38 MB / 250.7 MB Notification: Performance of sorting global known variables: time 1.313e-05/0.003812, allocations: 16.84 kB / 248 MB, free: 10.36 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.003812, allocations: 0 / 248 MB, free: 10.36 MB / 250.7 MB Notification: Performance of remove unused functions: time 9.265e-05/0.003904, allocations: 8 kB / 248 MB, free: 10.35 MB / 250.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) * 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.0002261/0.00413, allocations: 117.9 kB / 248.1 MB, free: 10.24 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001071/0.004237, allocations: 143.6 kB / 248.2 MB, free: 10.07 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.004241, allocations: 3.984 kB / 248.2 MB, free: 10.07 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 3.881e-05/0.00428, allocations: 101.9 kB / 248.3 MB, free: 9.945 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.842e-05/0.004338, allocations: 11.94 kB / 248.4 MB, free: 9.934 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001701/0.004509, allocations: 167.9 kB / 248.5 MB, free: 9.734 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.765e-05/0.004536, allocations: 59.34 kB / 248.6 MB, free: 9.656 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 4.078e-06/0.00454, allocations: 0 / 248.6 MB, free: 9.656 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.718e-05/0.004597, allocations: 63.36 kB / 248.6 MB, free: 9.594 MB / 250.7 MB Notification: Performance of SimCode: time 5.01e-07/0.004598, allocations: 0 / 248.6 MB, free: 9.594 MB / 250.7 MB Notification: Performance of Templates: time 0.00192/0.006518, allocations: 0.7449 MB / 249.4 MB, free: 8.859 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile [Timeout 660] (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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.6001867465674877]