Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009329/0.0009329, allocations: 80.8 kB / 22.29 MB, free: 2.203 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001001/0.001001, allocations: 167.1 kB / 25.7 MB, free: 8.445 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9829/0.9829, allocations: 158.6 MB / 187.6 MB, free: 2.793 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile") translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.603e-06/1.603e-06, allocations: 3.938 kB / 251.5 MB, free: 7.266 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.286e-05/2.447e-05, allocations: 2.312 kB / 251.5 MB, free: 7.262 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001558/0.001582, allocations: 0.5424 MB / 252.1 MB, free: 6.719 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002253/0.001808, allocations: 71.73 kB / 252.1 MB, free: 6.648 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.702e-05/0.001835, allocations: 0 / 252.1 MB, free: 6.648 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 3.467e-05/0.001869, allocations: 0 / 252.1 MB, free: 6.648 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 7.813e-05/0.001948, allocations: 19.91 kB / 252.2 MB, free: 6.629 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001431/0.002091, allocations: 19.92 kB / 252.2 MB, free: 6.609 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 8.277e-05/0.002173, allocations: 27.97 kB / 252.2 MB, free: 6.582 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.92e-05/0.002213, allocations: 3.984 kB / 252.2 MB, free: 6.578 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.097e-05/0.002254, allocations: 11.98 kB / 252.2 MB, free: 6.566 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.752e-05/0.002321, allocations: 23.97 kB / 252.2 MB, free: 6.543 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 1.583e-05/0.002337, allocations: 3.938 kB / 252.3 MB, free: 6.539 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.995e-05/0.002377, allocations: 12 kB / 252.3 MB, free: 6.527 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 3.208e-05/0.002409, allocations: 4 kB / 252.3 MB, free: 6.523 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 2.258e-05/0.002432, allocations: 7.984 kB / 252.3 MB, free: 6.516 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 8.484e-05/0.002516, allocations: 31.84 kB / 252.3 MB, free: 6.484 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.014e-06/0.002518, allocations: 0 / 252.3 MB, free: 6.484 MB / 234.7 MB Notification: Performance of FrontEnd: time 7.41e-07/0.002519, allocations: 0 / 252.3 MB, free: 6.484 MB / 234.7 MB Notification: Performance of Transformations before backend: time 3.056e-06/0.002522, allocations: 0 / 252.3 MB, free: 6.484 MB / 234.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.0002337/0.002756, allocations: 254.6 kB / 252.6 MB, free: 6.203 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.413e-05/0.00279, allocations: 15.98 kB / 252.6 MB, free: 6.188 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.534e-05/0.002815, allocations: 0.9375 kB / 252.6 MB, free: 6.188 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.063e-05/0.002896, allocations: 121.7 kB / 252.7 MB, free: 6.043 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.155e-05/0.002908, allocations: 4.375 kB / 252.7 MB, free: 6.039 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.943e-06/0.002914, allocations: 4.312 kB / 252.7 MB, free: 6.035 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.559e-05/0.00299, allocations: 70.78 kB / 252.8 MB, free: 5.953 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.472e-06/0.002997, allocations: 192 / 252.8 MB, free: 5.953 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.951e-06/0.003002, allocations: 384 / 252.8 MB, free: 5.953 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.57e-06/0.003008, allocations: 4.359 kB / 252.8 MB, free: 5.949 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.077e-05/0.003029, allocations: 37.64 kB / 252.8 MB, free: 5.906 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.608e-05/0.003095, allocations: 55.88 kB / 252.9 MB, free: 5.836 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.116e-05/0.003146, allocations: 52.31 kB / 252.9 MB, free: 5.77 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.155e-05/0.003168, allocations: 38.53 kB / 253 MB, free: 5.723 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.725e-06/0.00317, allocations: 4 kB / 253 MB, free: 5.719 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.063e-05/0.003211, allocations: 64.3 kB / 253 MB, free: 5.641 MB / 234.7 MB Notification: Performance of pre-optimization done (n=4): time 7.91e-07/0.003212, allocations: 0 / 253 MB, free: 5.641 MB / 234.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001241/0.003336, allocations: 130.8 kB / 253.1 MB, free: 5.488 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.56e-05/0.003371, allocations: 81.11 kB / 253.2 MB, free: 5.391 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.496e-05/0.003436, allocations: 106.7 kB / 253.3 MB, free: 5.273 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 1.047e-05/0.003447, allocations: 29.7 kB / 253.4 MB, free: 5.238 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.392e-05/0.003471, allocations: 85.36 kB / 253.4 MB, free: 5.152 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.636e-05/0.003487, allocations: 7.891 kB / 253.5 MB, free: 5.145 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.911e-05/0.003516, allocations: 25.7 kB / 253.5 MB, free: 5.113 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 7.591e-05/0.003592, allocations: 318.8 kB / 253.8 MB, free: 4.793 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.451e-05/0.003617, allocations: 40.45 kB / 253.8 MB, free: 4.746 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.624e-05/0.003633, allocations: 29.7 kB / 253.9 MB, free: 4.711 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.811e-05/0.003681, allocations: 75.08 kB / 253.9 MB, free: 4.621 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.003683, allocations: 0 / 253.9 MB, free: 4.621 MB / 234.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.374e-05/0.003756, allocations: 97.09 kB / 254 MB, free: 4.508 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.923e-05/0.003785, allocations: 41.62 kB / 254.1 MB, free: 4.461 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.957e-06/0.003789, allocations: 0 / 254.1 MB, free: 4.461 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.095e-05/0.0038, allocations: 0 / 254.1 MB, free: 4.461 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.112e-06/0.003802, allocations: 0 / 254.1 MB, free: 4.461 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.404e-06/0.003804, allocations: 0 / 254.1 MB, free: 4.461 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.544e-05/0.003819, allocations: 4.062 kB / 254.1 MB, free: 4.457 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.805e-06/0.003827, allocations: 8 kB / 254.1 MB, free: 4.449 MB / 234.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.173e-05/0.003899, allocations: 154.2 kB / 254.2 MB, free: 4.281 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.307e-06/0.003908, allocations: 4.25 kB / 254.2 MB, free: 4.277 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.4e-05/0.003922, allocations: 8 kB / 254.2 MB, free: 4.27 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.003925, allocations: 3.984 kB / 254.2 MB, free: 4.266 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.705e-06/0.003928, allocations: 4 kB / 254.2 MB, free: 4.262 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-06/0.00393, allocations: 0 / 254.2 MB, free: 4.262 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.572e-05/0.003986, allocations: 65.84 kB / 254.3 MB, free: 4.18 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.51e-07/0.003986, allocations: 0 / 254.3 MB, free: 4.18 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.784e-06/0.003988, allocations: 8 kB / 254.3 MB, free: 4.172 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.21e-07/0.003989, allocations: 0 / 254.3 MB, free: 4.172 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.869e-06/0.003994, allocations: 0 / 254.3 MB, free: 4.172 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.71e-07/0.003995, allocations: 0 / 254.3 MB, free: 4.172 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.003996, allocations: 0 / 254.3 MB, free: 4.172 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001092/0.004105, allocations: 150.1 kB / 254.5 MB, free: 3.992 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.983e-06/0.004112, allocations: 8.078 kB / 254.5 MB, free: 3.984 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.459e-05/0.004126, allocations: 4 kB / 254.5 MB, free: 3.98 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.08e-05/0.004137, allocations: 3.984 kB / 254.5 MB, free: 3.977 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.504e-06/0.004145, allocations: 0 / 254.5 MB, free: 3.977 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.33e-06/0.00415, allocations: 4 kB / 254.5 MB, free: 3.973 MB / 234.7 MB Notification: Performance of sorting global known variables: time 1.556e-05/0.004166, allocations: 16.88 kB / 254.5 MB, free: 3.953 MB / 234.7 MB Notification: Performance of sort global known variables: time 7e-08/0.004166, allocations: 0 / 254.5 MB, free: 3.953 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0001466/0.004312, allocations: 11.98 kB / 254.5 MB, free: 3.941 MB / 234.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.0002453/0.004557, allocations: 108.7 kB / 254.6 MB, free: 3.84 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0001057/0.004663, allocations: 139.6 kB / 254.8 MB, free: 3.676 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.004666, allocations: 0 / 254.8 MB, free: 3.676 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 4.102e-05/0.004707, allocations: 102 kB / 254.9 MB, free: 3.555 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 6.215e-05/0.004769, allocations: 7.938 kB / 254.9 MB, free: 3.547 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001897/0.004959, allocations: 163.8 kB / 255 MB, free: 3.352 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.001e-05/0.004989, allocations: 59.34 kB / 255.1 MB, free: 3.273 MB / 234.7 MB Notification: Performance of simCode: alias equations: time 4.899e-06/0.004994, allocations: 0 / 255.1 MB, free: 3.273 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.121e-05/0.005065, allocations: 67.36 kB / 255.1 MB, free: 3.207 MB / 234.7 MB Notification: Performance of SimCode: time 6.71e-07/0.005066, allocations: 0 / 255.1 MB, free: 3.207 MB / 234.7 MB Notification: Performance of Templates: time 0.002445/0.007511, allocations: 0.7414 MB / 255.9 MB, free: 2.477 MB / 234.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & ./Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.574407758191228]