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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009231/0.0009231, allocations: 83.89 kB / 21.19 MB, free: 3.387 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008822/0.0008822, allocations: 145.1 kB / 24.54 MB, free: 32 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9524/0.9524, allocations: 173.3 MB / 201.1 MB, free: 9.344 MB / 186.7 MB " [Timeout remaining time 179] 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=5002,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=5002,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.493e-06/1.493e-06, allocations: 0 / 267.9 MB, free: 6.488 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.279e-05/2.429e-05, allocations: 2.312 kB / 268 MB, free: 6.484 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001103/0.001127, allocations: 0.4939 MB / 268.4 MB, free: 5.992 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002118/0.001339, allocations: 65.19 kB / 268.5 MB, free: 5.93 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.91e-05/0.001368, allocations: 4 kB / 268.5 MB, free: 5.926 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 3.604e-05/0.001404, allocations: 0 / 268.5 MB, free: 5.926 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 7.731e-05/0.001481, allocations: 23.89 kB / 268.5 MB, free: 5.902 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001452/0.001627, allocations: 11.94 kB / 268.5 MB, free: 5.891 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 8.031e-05/0.001707, allocations: 23.97 kB / 268.6 MB, free: 5.867 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.464e-05/0.001741, allocations: 7.984 kB / 268.6 MB, free: 5.859 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.627e-05/0.001778, allocations: 8 kB / 268.6 MB, free: 5.852 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.139e-05/0.001849, allocations: 31.89 kB / 268.6 MB, free: 5.82 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.583e-05/0.001865, allocations: 4 kB / 268.6 MB, free: 5.816 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.174e-05/0.001907, allocations: 8 kB / 268.6 MB, free: 5.809 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.655e-05/0.001953, allocations: 7.984 kB / 268.6 MB, free: 5.801 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.873e-05/0.001982, allocations: 4 kB / 268.6 MB, free: 5.797 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001149/0.002097, allocations: 35.78 kB / 268.7 MB, free: 5.762 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.405e-06/0.002099, allocations: 0 / 268.7 MB, free: 5.762 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.233e-06/0.002101, allocations: 0 / 268.7 MB, free: 5.762 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.037e-06/0.002105, allocations: 4 kB / 268.7 MB, free: 5.758 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.0003124/0.002417, allocations: 386.3 kB / 269.1 MB, free: 5.336 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.791e-05/0.002455, allocations: 8.922 kB / 269.1 MB, free: 5.328 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.967e-05/0.002495, allocations: 4.938 kB / 269.1 MB, free: 5.324 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.266e-05/0.002587, allocations: 120.6 kB / 269.2 MB, free: 5.18 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.092e-05/0.002598, allocations: 384 / 269.2 MB, free: 5.18 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.727e-06/0.002607, allocations: 384 / 269.2 MB, free: 5.18 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.344e-05/0.0027, allocations: 71.95 kB / 269.3 MB, free: 5.098 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.043e-06/0.002707, allocations: 192 / 269.3 MB, free: 5.098 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.426e-06/0.002716, allocations: 384 / 269.3 MB, free: 5.098 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.752e-06/0.002722, allocations: 384 / 269.3 MB, free: 5.098 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.534e-05/0.002748, allocations: 37.58 kB / 269.3 MB, free: 5.055 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001037/0.002851, allocations: 120.7 kB / 269.4 MB, free: 4.902 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.02e-05/0.002902, allocations: 56.77 kB / 269.5 MB, free: 4.828 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.473e-05/0.002926, allocations: 45.45 kB / 269.5 MB, free: 4.773 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.577e-06/0.00293, allocations: 4 kB / 269.5 MB, free: 4.77 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.133e-05/0.002961, allocations: 63.09 kB / 269.6 MB, free: 4.691 MB / 250.7 MB Notification: Performance of pre-optimization done (n=4): time 7.92e-07/0.002962, allocations: 0 / 269.6 MB, free: 4.691 MB / 250.7 MB Notification: Performance of matching and sorting (n=4): time 0.000199/0.003161, allocations: 158.7 kB / 269.7 MB, free: 4.512 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.682e-05/0.003198, allocations: 81.11 kB / 269.8 MB, free: 4.414 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.638e-05/0.003274, allocations: 173.9 kB / 270 MB, free: 4.227 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.096e-05/0.003285, allocations: 25.7 kB / 270 MB, free: 4.195 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.783e-05/0.003323, allocations: 130.9 kB / 270.1 MB, free: 4.062 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.805e-05/0.003341, allocations: 11.89 kB / 270.1 MB, free: 4.051 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.848e-05/0.00337, allocations: 27.36 kB / 270.2 MB, free: 4.016 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001056/0.003475, allocations: 0.4884 MB / 270.7 MB, free: 3.516 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.251e-05/0.003498, allocations: 33.7 kB / 270.7 MB, free: 3.477 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.834e-05/0.003516, allocations: 33.69 kB / 270.7 MB, free: 3.438 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.704e-05/0.003563, allocations: 79.22 kB / 270.8 MB, free: 3.344 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.003566, allocations: 7.984 kB / 270.8 MB, free: 3.336 MB / 250.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.996e-05/0.003656, allocations: 117 kB / 270.9 MB, free: 3.203 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.695e-05/0.003683, allocations: 33.7 kB / 271 MB, free: 3.164 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.003687, allocations: 0 / 271 MB, free: 3.164 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.109e-05/0.003698, allocations: 0 / 271 MB, free: 3.164 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.998e-06/0.003702, allocations: 4.234 kB / 271 MB, free: 3.16 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.528e-06/0.003707, allocations: 0 / 271 MB, free: 3.16 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.535e-05/0.003722, allocations: 16 kB / 271 MB, free: 3.145 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.222e-06/0.003729, allocations: 0 / 271 MB, free: 3.145 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 7.728e-05/0.003806, allocations: 190.3 kB / 271.2 MB, free: 2.941 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.558e-06/0.003815, allocations: 7.953 kB / 271.2 MB, free: 2.934 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.261e-05/0.003828, allocations: 7.984 kB / 271.2 MB, free: 2.918 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.00383, allocations: 0 / 271.2 MB, free: 2.918 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.003833, allocations: 4 kB / 271.2 MB, free: 2.914 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.167e-06/0.003837, allocations: 3.938 kB / 271.2 MB, free: 2.91 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.923e-05/0.003896, allocations: 116.6 kB / 271.3 MB, free: 2.762 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.003897, allocations: 4 kB / 271.3 MB, free: 2.758 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.82e-07/0.003898, allocations: 4 kB / 271.3 MB, free: 2.754 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.003899, allocations: 0 / 271.3 MB, free: 2.754 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.133e-06/0.003907, allocations: 0 / 271.3 MB, free: 2.754 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.003908, allocations: 0 / 271.3 MB, free: 2.754 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.003909, allocations: 7.938 kB / 271.3 MB, free: 2.746 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001222/0.004031, allocations: 175.8 kB / 271.5 MB, free: 2.539 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.952e-06/0.004037, allocations: 3.953 kB / 271.5 MB, free: 2.535 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.659e-05/0.004054, allocations: 4 kB / 271.5 MB, free: 2.531 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.603e-06/0.00406, allocations: 0 / 271.5 MB, free: 2.531 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.093e-05/0.004071, allocations: 0 / 271.5 MB, free: 2.531 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.122e-05/0.004083, allocations: 7.984 kB / 271.5 MB, free: 2.523 MB / 250.7 MB Notification: Performance of sorting global known variables: time 3.522e-05/0.004118, allocations: 131.2 kB / 271.6 MB, free: 2.395 MB / 250.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.004118, allocations: 0 / 271.6 MB, free: 2.395 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001284/0.004246, allocations: 11.94 kB / 271.6 MB, free: 2.383 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.0002262/0.004472, allocations: 135.5 kB / 271.8 MB, free: 2.258 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001145/0.004587, allocations: 146.4 kB / 271.9 MB, free: 2.086 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.004589, allocations: 0 / 271.9 MB, free: 2.086 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 4.279e-05/0.004632, allocations: 112.8 kB / 272 MB, free: 1.953 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001011/0.004733, allocations: 8 kB / 272 MB, free: 1.945 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001963/0.004929, allocations: 151.9 kB / 272.2 MB, free: 1.762 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.114e-05/0.00496, allocations: 59.34 kB / 272.2 MB, free: 1.684 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 5.38e-06/0.004966, allocations: 0 / 272.2 MB, free: 1.684 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.348e-05/0.004979, allocations: 8.5 kB / 272.3 MB, free: 1.676 MB / 250.7 MB Notification: Performance of SimCode: time 6.92e-07/0.00498, allocations: 0 / 272.3 MB, free: 1.676 MB / 250.7 MB Notification: Performance of Templates: time 0.002325/0.007305, allocations: 0.7644 MB / 273 MB, free: 0.9297 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 240] 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","",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.573993262834847]