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.0009785/0.0009785, allocations: 80.31 kB / 22.21 MB, free: 2.285 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.001771/0.001771, allocations: 170.8 kB / 25.61 MB, free: 8.855 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 0.9764/0.9764, allocations: 177.1 MB / 206 MB, free: 4.512 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.232e-06/1.232e-06, allocations: 0 / 274.1 MB, free: 4.465 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.024e-05/2.147e-05, allocations: 5.547 kB / 274.2 MB, free: 4.461 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001114/0.001135, allocations: 482 kB / 274.6 MB, free: 4.008 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001438/0.001279, allocations: 71.66 kB / 274.7 MB, free: 3.938 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.935e-05/0.001298, allocations: 0 / 274.7 MB, free: 3.938 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 2.662e-05/0.001325, allocations: 5.266 kB / 274.7 MB, free: 3.934 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 4.503e-05/0.00137, allocations: 15.92 kB / 274.7 MB, free: 3.918 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 9.754e-05/0.001467, allocations: 19.92 kB / 274.7 MB, free: 3.898 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 5.625e-05/0.001524, allocations: 24.5 kB / 274.8 MB, free: 3.875 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.574e-05/0.001549, allocations: 0 / 274.8 MB, free: 3.875 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.748e-05/0.001577, allocations: 12.52 kB / 274.8 MB, free: 3.863 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.023e-05/0.001627, allocations: 24.66 kB / 274.8 MB, free: 3.84 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.043e-05/0.001638, allocations: 0 / 274.8 MB, free: 3.84 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.689e-05/0.001664, allocations: 16.48 kB / 274.8 MB, free: 3.824 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.562e-05/0.00169, allocations: 4.812 kB / 274.8 MB, free: 3.82 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 1.433e-05/0.001704, allocations: 4 kB / 274.8 MB, free: 3.816 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 6.243e-05/0.001767, allocations: 32.53 kB / 274.9 MB, free: 3.785 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.373e-06/0.001768, allocations: 3.938 kB / 274.9 MB, free: 3.781 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.52e-07/0.001769, allocations: 2.344 kB / 274.9 MB, free: 3.781 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.866e-06/0.001772, allocations: 0 / 274.9 MB, free: 3.781 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.0002058/0.001978, allocations: 382.3 kB / 275.2 MB, free: 3.363 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.585e-05/0.002003, allocations: 12.03 kB / 275.2 MB, free: 3.352 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.913e-05/0.002023, allocations: 4.938 kB / 275.2 MB, free: 3.348 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.306e-05/0.002086, allocations: 120.5 kB / 275.4 MB, free: 3.203 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.624e-06/0.002093, allocations: 6.406 kB / 275.4 MB, free: 3.199 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.851e-06/0.002099, allocations: 8.312 kB / 275.4 MB, free: 3.191 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.94e-05/0.002149, allocations: 63.95 kB / 275.4 MB, free: 3.117 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.418e-06/0.002153, allocations: 192 / 275.4 MB, free: 3.117 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.178e-06/0.002157, allocations: 384 / 275.4 MB, free: 3.117 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.916e-06/0.00216, allocations: 384 / 275.4 MB, free: 3.117 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.839e-05/0.002178, allocations: 42.28 kB / 275.5 MB, free: 3.07 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.21e-05/0.002241, allocations: 105.2 kB / 275.6 MB, free: 2.941 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.701e-05/0.002278, allocations: 56.8 kB / 275.6 MB, free: 2.867 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.097e-05/0.002299, allocations: 45.41 kB / 275.7 MB, free: 2.812 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.615e-06/0.002301, allocations: 0 / 275.7 MB, free: 2.812 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.684e-05/0.002328, allocations: 63.09 kB / 275.7 MB, free: 2.734 MB / 250.7 MB Notification: Performance of pre-optimization done (n=4): time 9.72e-07/0.002329, allocations: 0 / 275.7 MB, free: 2.734 MB / 250.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001339/0.002463, allocations: 154.7 kB / 275.9 MB, free: 2.559 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.043e-05/0.002493, allocations: 81.11 kB / 276 MB, free: 2.461 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.301e-05/0.002556, allocations: 165.9 kB / 276.1 MB, free: 2.281 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 8.466e-06/0.002565, allocations: 25.7 kB / 276.2 MB, free: 2.25 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.515e-05/0.0026, allocations: 138.9 kB / 276.3 MB, free: 2.109 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.137e-05/0.002611, allocations: 11.89 kB / 276.3 MB, free: 2.098 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.369e-05/0.002635, allocations: 27.36 kB / 276.3 MB, free: 2.062 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001046/0.00274, allocations: 0.4922 MB / 276.8 MB, free: 1.559 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.503e-05/0.002755, allocations: 33.64 kB / 276.9 MB, free: 1.52 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.526e-05/0.00277, allocations: 37.69 kB / 276.9 MB, free: 1.477 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.574e-05/0.002806, allocations: 71.09 kB / 277 MB, free: 1.391 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.31e-07/0.002806, allocations: 0 / 277 MB, free: 1.391 MB / 250.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.779e-05/0.002874, allocations: 117.1 kB / 277.1 MB, free: 1.258 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.044e-05/0.002895, allocations: 29.7 kB / 277.1 MB, free: 1.223 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.076e-06/0.002898, allocations: 0 / 277.1 MB, free: 1.223 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.639e-06/0.002902, allocations: 8 kB / 277.1 MB, free: 1.215 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.91e-07/0.002903, allocations: 4 kB / 277.1 MB, free: 1.211 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.122e-06/0.002904, allocations: 0 / 277.1 MB, free: 1.211 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.056e-05/0.002915, allocations: 3.984 kB / 277.1 MB, free: 1.207 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.31e-06/0.00292, allocations: 11.88 kB / 277.1 MB, free: 1.195 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 6.252e-05/0.002983, allocations: 186.3 kB / 277.3 MB, free: 0.9961 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.786e-06/0.002991, allocations: 7.953 kB / 277.3 MB, free: 0.9883 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.082e-05/0.003002, allocations: 8 kB / 277.3 MB, free: 0.9766 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.003004, allocations: 3.984 kB / 277.3 MB, free: 0.9727 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.463e-06/0.003006, allocations: 0 / 277.3 MB, free: 0.9727 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.593e-06/0.003007, allocations: 4 kB / 277.3 MB, free: 0.9688 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.988e-05/0.003057, allocations: 97.2 kB / 277.4 MB, free: 0.8477 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.2e-07/0.003058, allocations: 0 / 277.4 MB, free: 0.8477 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.32e-07/0.003058, allocations: 4.25 kB / 277.4 MB, free: 0.8438 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.71e-07/0.003059, allocations: 0 / 277.4 MB, free: 0.8438 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.721e-06/0.003065, allocations: 11.98 kB / 277.5 MB, free: 0.832 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.11e-07/0.003065, allocations: 0 / 277.5 MB, free: 0.832 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.003066, allocations: 4 kB / 277.5 MB, free: 0.8281 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.437e-05/0.003161, allocations: 171.7 kB / 277.6 MB, free: 0.625 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.681e-06/0.003167, allocations: 7.953 kB / 277.6 MB, free: 0.6172 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.095e-06/0.003175, allocations: 0 / 277.6 MB, free: 0.6172 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.144e-06/0.003182, allocations: 8.219 kB / 277.6 MB, free: 0.6094 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.466e-06/0.00319, allocations: 4 kB / 277.6 MB, free: 0.6055 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.458e-06/0.003195, allocations: 7.984 kB / 277.7 MB, free: 0.5977 MB / 250.7 MB Notification: Performance of sorting global known variables: time 3.788e-05/0.003233, allocations: 127.2 kB / 277.8 MB, free: 484 kB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.003233, allocations: 0 / 277.8 MB, free: 484 kB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001154/0.003348, allocations: 8 kB / 277.8 MB, free: 476 kB / 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.0001689/0.003517, allocations: 127.7 kB / 277.9 MB, free: 348 kB / 250.7 MB Notification: Performance of simCode: created initialization part: time 8.127e-05/0.003598, allocations: 146.5 kB / 278.1 MB, free: 172 kB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.342e-06/0.003599, allocations: 0 / 278.1 MB, free: 172 kB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 3.723e-05/0.003637, allocations: 104.8 kB / 278.2 MB, free: 44 kB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.089e-05/0.003718, allocations: 10.28 kB / 278.2 MB, free: 36 kB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001405/0.003858, allocations: 156 kB / 278.3 MB, free: 15.85 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.432e-05/0.003882, allocations: 59.22 kB / 278.4 MB, free: 15.77 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.256e-06/0.003886, allocations: 3.938 kB / 278.4 MB, free: 15.77 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.747e-05/0.003943, allocations: 94.17 kB / 278.5 MB, free: 15.67 MB / 266.7 MB Notification: Performance of SimCode: time 4.11e-07/0.003944, allocations: 0 / 278.5 MB, free: 15.67 MB / 266.7 MB Notification: Performance of Templates: time 0.001672/0.005616, allocations: 0.7503 MB / 279.2 MB, free: 14.93 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.754513958003372]