Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001322/0.001322, allocations: 77.88 kB / 21.42 MB, free: 3.074 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.001158/0.001158, allocations: 167 kB / 24.82 MB, free: 9.273 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.01/1.01, allocations: 177.1 MB / 205.3 MB, free: 5.492 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.924e-06/1.924e-06, allocations: 0 / 273.4 MB, free: 1.332 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.154e-05/2.346e-05, allocations: 6.25 kB / 273.4 MB, free: 1.324 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001132/0.001155, allocations: 493.2 kB / 273.8 MB, free: 0.8477 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001982/0.001354, allocations: 63.73 kB / 273.9 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.03e-05/0.001384, allocations: 4 kB / 273.9 MB, free: 0.7812 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 3.818e-05/0.001422, allocations: 0 / 273.9 MB, free: 0.7812 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 7.713e-05/0.001499, allocations: 19.91 kB / 273.9 MB, free: 0.7617 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001414/0.001641, allocations: 15.92 kB / 273.9 MB, free: 0.7461 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 7.567e-05/0.001716, allocations: 23.92 kB / 274 MB, free: 0.7227 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.375e-05/0.00175, allocations: 11.98 kB / 274 MB, free: 0.7109 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.353e-05/0.001794, allocations: 11.98 kB / 274 MB, free: 0.6992 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.389e-05/0.001867, allocations: 27.97 kB / 274 MB, free: 0.6719 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.103e-05/0.001888, allocations: 0 / 274 MB, free: 0.6719 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.383e-05/0.001932, allocations: 4 kB / 274 MB, free: 0.668 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.972e-05/0.001972, allocations: 11.92 kB / 274 MB, free: 0.6562 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 1.932e-05/0.001991, allocations: 4 kB / 274 MB, free: 0.6523 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 8.834e-05/0.00208, allocations: 27.91 kB / 274.1 MB, free: 0.625 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.433e-06/0.002081, allocations: 0 / 274.1 MB, free: 0.625 MB / 250.7 MB Notification: Performance of FrontEnd: time 4.81e-07/0.002082, allocations: 0 / 274.1 MB, free: 0.625 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.236e-06/0.002085, allocations: 8 kB / 274.1 MB, free: 0.6172 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.0002654/0.00235, allocations: 390.3 kB / 274.5 MB, free: 196 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.549e-05/0.002386, allocations: 8.031 kB / 274.5 MB, free: 188 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.62e-05/0.002412, allocations: 8.891 kB / 274.5 MB, free: 180 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.235e-05/0.002484, allocations: 108.6 kB / 274.6 MB, free: 44 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.714e-06/0.002492, allocations: 384 / 274.6 MB, free: 44 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.983e-06/0.002499, allocations: 4.375 kB / 274.6 MB, free: 40 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.03e-05/0.002579, allocations: 71.88 kB / 274.6 MB, free: 15.96 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.789e-06/0.002584, allocations: 192 / 274.6 MB, free: 15.96 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.731e-06/0.00259, allocations: 4.312 kB / 274.7 MB, free: 15.95 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.717e-06/0.002594, allocations: 4.375 kB / 274.7 MB, free: 15.95 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.75e-05/0.002611, allocations: 33.64 kB / 274.7 MB, free: 15.91 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.574e-05/0.002697, allocations: 105.3 kB / 274.8 MB, free: 15.78 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.248e-05/0.002739, allocations: 56.77 kB / 274.8 MB, free: 15.71 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.121e-05/0.00276, allocations: 37.42 kB / 274.9 MB, free: 15.66 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.049e-06/0.002766, allocations: 7.984 kB / 274.9 MB, free: 15.65 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.495e-05/0.0028, allocations: 63.08 kB / 275 MB, free: 15.57 MB / 266.7 MB Notification: Performance of pre-optimization done (n=4): time 7.51e-07/0.002801, allocations: 0 / 275 MB, free: 15.57 MB / 266.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001781/0.002979, allocations: 162.7 kB / 275.1 MB, free: 15.39 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.584e-05/0.003015, allocations: 81.11 kB / 275.2 MB, free: 15.29 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.125e-05/0.003096, allocations: 169.9 kB / 275.4 MB, free: 15.11 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.897e-06/0.003105, allocations: 29.7 kB / 275.4 MB, free: 15.07 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.169e-05/0.003147, allocations: 138.9 kB / 275.5 MB, free: 14.93 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.642e-05/0.003163, allocations: 7.891 kB / 275.5 MB, free: 14.93 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.616e-05/0.00319, allocations: 23.38 kB / 275.6 MB, free: 14.89 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001122/0.003302, allocations: 0.4961 MB / 276 MB, free: 14.39 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.501e-05/0.003327, allocations: 33.64 kB / 276.1 MB, free: 14.35 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.679e-05/0.003343, allocations: 37.69 kB / 276.1 MB, free: 14.3 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.451e-05/0.003388, allocations: 67.09 kB / 276.2 MB, free: 14.22 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.003391, allocations: 4 kB / 276.2 MB, free: 14.22 MB / 266.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.073e-05/0.003472, allocations: 109.1 kB / 276.3 MB, free: 14.09 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.905e-05/0.003501, allocations: 41.75 kB / 276.3 MB, free: 14.05 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.003505, allocations: 0 / 276.3 MB, free: 14.05 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.276e-05/0.003518, allocations: 0 / 276.3 MB, free: 14.05 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.132e-06/0.003519, allocations: 0 / 276.3 MB, free: 14.05 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.705e-06/0.003522, allocations: 0 / 276.3 MB, free: 14.05 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.624e-05/0.003538, allocations: 11.95 kB / 276.3 MB, free: 14.04 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.003e-06/0.003545, allocations: 7.922 kB / 276.4 MB, free: 14.03 MB / 266.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.353e-05/0.003619, allocations: 194.2 kB / 276.5 MB, free: 13.82 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.404e-06/0.003626, allocations: 4 kB / 276.5 MB, free: 13.82 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.29e-05/0.003639, allocations: 4 kB / 276.6 MB, free: 13.81 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.82e-07/0.00364, allocations: 4 kB / 276.6 MB, free: 13.81 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.363e-06/0.003641, allocations: 0 / 276.6 MB, free: 13.81 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.003645, allocations: 4 kB / 276.6 MB, free: 13.8 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.944e-05/0.003704, allocations: 105.2 kB / 276.7 MB, free: 13.68 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/0.003705, allocations: 3.938 kB / 276.7 MB, free: 13.67 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.003706, allocations: 0 / 276.7 MB, free: 13.67 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.92e-07/0.003706, allocations: 0 / 276.7 MB, free: 13.67 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.583e-06/0.003713, allocations: 7.984 kB / 276.7 MB, free: 13.66 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.21e-07/0.003713, allocations: 0 / 276.7 MB, free: 13.66 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-07/0.003714, allocations: 0 / 276.7 MB, free: 13.66 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000115/0.003829, allocations: 175.7 kB / 276.8 MB, free: 13.46 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.751e-06/0.003835, allocations: 8.016 kB / 276.9 MB, free: 13.45 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.135e-05/0.003846, allocations: 7.938 kB / 276.9 MB, free: 13.44 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.582e-06/0.003853, allocations: 256 / 276.9 MB, free: 13.44 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.807e-06/0.003862, allocations: 4 kB / 276.9 MB, free: 13.44 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.166e-06/0.003865, allocations: 4 kB / 276.9 MB, free: 13.43 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.695e-05/0.003902, allocations: 123.2 kB / 277 MB, free: 13.31 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.003902, allocations: 0 / 277 MB, free: 13.31 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001173/0.004019, allocations: 15.98 kB / 277 MB, free: 13.3 MB / 266.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.0001959/0.004215, allocations: 138.7 kB / 277.1 MB, free: 13.16 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001002/0.004315, allocations: 138.5 kB / 277.3 MB, free: 13 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.004317, allocations: 0 / 277.3 MB, free: 13 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.591e-05/0.004353, allocations: 100.8 kB / 277.4 MB, free: 12.88 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.617e-05/0.004449, allocations: 11.94 kB / 277.4 MB, free: 12.87 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001602/0.004609, allocations: 151.9 kB / 277.5 MB, free: 12.68 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.68e-05/0.004636, allocations: 59.3 kB / 277.6 MB, free: 12.61 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.43e-06/0.004641, allocations: 0 / 277.6 MB, free: 12.61 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.236e-05/0.004704, allocations: 94.3 kB / 277.7 MB, free: 12.51 MB / 266.7 MB Notification: Performance of SimCode: time 4.1e-07/0.004704, allocations: 0 / 277.7 MB, free: 12.51 MB / 266.7 MB Notification: Performance of Templates: time 0.002058/0.006762, allocations: 0.7431 MB / 278.4 MB, free: 11.78 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & ./Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.724848954938352]