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.00145/0.00145, allocations: 82.17 kB / 21.42 MB, free: 3.078 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.001671/0.001671, allocations: 149.2 kB / 24.8 MB, free: 8.785 MB / 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.9808/0.9808, allocations: 173.3 MB / 201.4 MB, free: 9.238 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.723e-06/1.723e-06, allocations: 0 / 268.4 MB, free: 6.27 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.474e-05/2.646e-05, allocations: 6.25 kB / 268.4 MB, free: 6.262 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001318/0.001345, allocations: 0.4986 MB / 268.9 MB, free: 5.762 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001884/0.001533, allocations: 61.19 kB / 268.9 MB, free: 5.703 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.958e-05/0.001563, allocations: 0 / 268.9 MB, free: 5.703 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 3.201e-05/0.001595, allocations: 0 / 268.9 MB, free: 5.703 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 6.806e-05/0.001663, allocations: 23.91 kB / 268.9 MB, free: 5.68 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001262/0.001789, allocations: 19.92 kB / 269 MB, free: 5.66 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 7.408e-05/0.001863, allocations: 23.97 kB / 269 MB, free: 5.637 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.115e-05/0.001894, allocations: 0 / 269 MB, free: 5.637 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.549e-05/0.00194, allocations: 11.98 kB / 269 MB, free: 5.625 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.728e-05/0.002007, allocations: 27.91 kB / 269 MB, free: 5.598 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.795e-05/0.002025, allocations: 0 / 269 MB, free: 5.598 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.055e-05/0.002066, allocations: 12 kB / 269 MB, free: 5.586 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.323e-05/0.002099, allocations: 3.984 kB / 269 MB, free: 5.582 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.156e-05/0.00212, allocations: 7.984 kB / 269 MB, free: 5.574 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 8.499e-05/0.002205, allocations: 31.86 kB / 269.1 MB, free: 5.543 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.593e-06/0.002207, allocations: 4 kB / 269.1 MB, free: 5.539 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.81e-07/0.002208, allocations: 0 / 269.1 MB, free: 5.539 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.236e-06/0.002211, allocations: 0 / 269.1 MB, free: 5.539 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.0002492/0.00246, allocations: 386.3 kB / 269.5 MB, free: 5.117 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.577e-05/0.002496, allocations: 12.92 kB / 269.5 MB, free: 5.105 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.419e-05/0.00252, allocations: 0.9375 kB / 269.5 MB, free: 5.105 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.759e-05/0.002588, allocations: 120.5 kB / 269.6 MB, free: 4.961 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.706e-06/0.002596, allocations: 384 / 269.6 MB, free: 4.961 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.191e-06/0.002602, allocations: 4.375 kB / 269.6 MB, free: 4.957 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.614e-05/0.002669, allocations: 67.94 kB / 269.7 MB, free: 4.879 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.441e-06/0.002674, allocations: 4.188 kB / 269.7 MB, free: 4.875 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.46e-06/0.00268, allocations: 384 / 269.7 MB, free: 4.875 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/0.002684, allocations: 384 / 269.7 MB, free: 4.875 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.754e-05/0.002701, allocations: 37.64 kB / 269.7 MB, free: 4.832 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.615e-05/0.002777, allocations: 97.25 kB / 269.8 MB, free: 4.711 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.113e-05/0.002818, allocations: 64.73 kB / 269.9 MB, free: 4.629 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.995e-05/0.002838, allocations: 41.42 kB / 269.9 MB, free: 4.578 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.466e-06/0.002842, allocations: 0 / 269.9 MB, free: 4.578 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.601e-05/0.002878, allocations: 67.12 kB / 270 MB, free: 4.496 MB / 250.7 MB Notification: Performance of pre-optimization done (n=4): time 6.62e-07/0.002879, allocations: 0 / 270 MB, free: 4.496 MB / 250.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001548/0.003033, allocations: 146.8 kB / 270.1 MB, free: 4.328 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.132e-05/0.003065, allocations: 93.06 kB / 270.2 MB, free: 4.219 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.124e-05/0.003136, allocations: 169.9 kB / 270.4 MB, free: 4.035 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 8.175e-06/0.003144, allocations: 25.7 kB / 270.4 MB, free: 4.004 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.325e-05/0.003177, allocations: 134.9 kB / 270.5 MB, free: 3.867 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.43e-05/0.003192, allocations: 7.891 kB / 270.5 MB, free: 3.859 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.421e-05/0.003216, allocations: 27.36 kB / 270.6 MB, free: 3.824 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001089/0.003325, allocations: 0.4961 MB / 271.1 MB, free: 3.316 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.675e-05/0.003342, allocations: 29.95 kB / 271.1 MB, free: 3.281 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.488e-05/0.003356, allocations: 29.84 kB / 271.1 MB, free: 3.246 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.226e-05/0.003399, allocations: 87.11 kB / 271.2 MB, free: 3.145 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-06/0.0034, allocations: 4.031 kB / 271.2 MB, free: 3.141 MB / 250.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.017e-05/0.00347, allocations: 113.1 kB / 271.3 MB, free: 3.012 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.273e-05/0.003493, allocations: 37.62 kB / 271.3 MB, free: 2.969 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.437e-06/0.003496, allocations: 0 / 271.3 MB, free: 2.969 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.217e-06/0.003506, allocations: 0 / 271.3 MB, free: 2.969 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.064e-06/0.003508, allocations: 4 kB / 271.4 MB, free: 2.965 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.154e-06/0.00351, allocations: 0 / 271.4 MB, free: 2.965 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.16e-05/0.003521, allocations: 0 / 271.4 MB, free: 2.965 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.923e-06/0.003528, allocations: 7.938 kB / 271.4 MB, free: 2.957 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.64e-05/0.003595, allocations: 190.3 kB / 271.5 MB, free: 2.754 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.516e-06/0.003603, allocations: 7.984 kB / 271.6 MB, free: 2.746 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.973e-05/0.003623, allocations: 12 kB / 271.6 MB, free: 2.727 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.113e-06/0.003624, allocations: 0 / 271.6 MB, free: 2.727 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.773e-06/0.003626, allocations: 0 / 271.6 MB, free: 2.727 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-06/0.003628, allocations: 0 / 271.6 MB, free: 2.727 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.548e-05/0.003683, allocations: 105.2 kB / 271.7 MB, free: 2.598 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.22e-07/0.003684, allocations: 0 / 271.7 MB, free: 2.598 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.9e-07/0.003684, allocations: 4 kB / 271.7 MB, free: 2.594 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.61e-07/0.003685, allocations: 0 / 271.7 MB, free: 2.594 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.248e-06/0.003689, allocations: 0 / 271.7 MB, free: 2.594 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.41e-07/0.00369, allocations: 0 / 271.7 MB, free: 2.594 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.81e-07/0.00369, allocations: 0 / 271.7 MB, free: 2.594 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001038/0.003794, allocations: 179.7 kB / 271.8 MB, free: 2.383 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.354e-06/0.003801, allocations: 11.94 kB / 271.9 MB, free: 2.371 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.989e-06/0.003811, allocations: 0 / 271.9 MB, free: 2.371 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.386e-06/0.00382, allocations: 4 kB / 271.9 MB, free: 2.367 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.263e-06/0.003827, allocations: 4 kB / 271.9 MB, free: 2.363 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.345e-06/0.003829, allocations: 0 / 271.9 MB, free: 2.363 MB / 250.7 MB Notification: Performance of sorting global known variables: time 3.166e-05/0.003861, allocations: 131.2 kB / 272 MB, free: 2.234 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.003861, allocations: 0 / 272 MB, free: 2.234 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001217/0.003983, allocations: 8 kB / 272 MB, free: 2.227 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.0001859/0.004169, allocations: 148.5 kB / 272.1 MB, free: 2.09 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 9.713e-05/0.004266, allocations: 142.5 kB / 272.3 MB, free: 1.922 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.132e-06/0.004267, allocations: 0 / 272.3 MB, free: 1.922 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 3.639e-05/0.004303, allocations: 104.7 kB / 272.4 MB, free: 1.797 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.013e-05/0.004394, allocations: 7.938 kB / 272.4 MB, free: 1.789 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001509/0.004544, allocations: 155.9 kB / 272.6 MB, free: 1.602 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.513e-05/0.00457, allocations: 55.48 kB / 272.6 MB, free: 1.527 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 4.228e-06/0.004574, allocations: 4 kB / 272.6 MB, free: 1.523 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.13e-05/0.004635, allocations: 94.17 kB / 272.7 MB, free: 1.43 MB / 250.7 MB Notification: Performance of SimCode: time 5.11e-07/0.004636, allocations: 0 / 272.7 MB, free: 1.43 MB / 250.7 MB Notification: Performance of Templates: time 0.001902/0.006537, allocations: 0.7357 MB / 273.4 MB, free: 0.7031 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.6042055003345013]