Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001838/0.001838, allocations: 83.16 kB / 20.68 MB, free: 1.039 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002429/0.002429, allocations: 157.6 kB / 23.95 MB, free: 4.168 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.483/1.483, allocations: 177 MB / 204.1 MB, free: 9.176 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile") translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.024e-06/2.024e-06, allocations: 0.5625 kB / 325 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.181e-05/2.384e-05, allocations: 2.281 kB / 325 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001399/0.001423, allocations: 491.8 kB / 325.4 MB, free: 224 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002435/0.001666, allocations: 60.53 kB / 325.5 MB, free: 188 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.43e-05/0.001701, allocations: 1.062 kB / 325.5 MB, free: 188 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.92e-05/0.00174, allocations: 0.7031 kB / 325.5 MB, free: 188 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 7.417e-05/0.001814, allocations: 12.28 kB / 325.5 MB, free: 188 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001587/0.001973, allocations: 22.25 kB / 325.5 MB, free: 176 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 9.103e-05/0.002064, allocations: 28.69 kB / 325.6 MB, free: 164 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.622e-05/0.0021, allocations: 5.922 kB / 325.6 MB, free: 160 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.407e-05/0.002154, allocations: 12.31 kB / 325.6 MB, free: 160 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.293e-05/0.002247, allocations: 25.98 kB / 325.6 MB, free: 156 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.936e-05/0.002266, allocations: 5.062 kB / 325.6 MB, free: 152 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.87e-05/0.002315, allocations: 9.188 kB / 325.6 MB, free: 148 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.218e-05/0.002357, allocations: 4.922 kB / 325.6 MB, free: 148 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.081e-05/0.002388, allocations: 3.5 kB / 325.6 MB, free: 148 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001189/0.002507, allocations: 30.16 kB / 325.7 MB, free: 136 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.785e-06/0.00251, allocations: 0 / 325.7 MB, free: 136 kB / 286.1 MB Notification: Performance of FrontEnd: time 9.32e-07/0.002511, allocations: 1.094 kB / 325.7 MB, free: 136 kB / 286.1 MB Notification: Performance of Transformations before backend: time 4.599e-06/0.002515, allocations: 0 / 325.7 MB, free: 136 kB / 286.1 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.0003821/0.002897, allocations: 297.2 kB / 326 MB, free: 15.82 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.388e-05/0.002941, allocations: 13.59 kB / 326 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.733e-05/0.002989, allocations: 7.266 kB / 326 MB, free: 15.81 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001202/0.003109, allocations: 108.9 kB / 326.1 MB, free: 15.68 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.505e-05/0.003124, allocations: 2.156 kB / 326.1 MB, free: 15.68 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.969e-06/0.003134, allocations: 2.656 kB / 326.1 MB, free: 15.68 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000155/0.003289, allocations: 90 kB / 326.2 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.356e-06/0.003297, allocations: 192 / 326.2 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.297e-06/0.003306, allocations: 1.781 kB / 326.2 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.003311, allocations: 384 / 326.2 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.821e-05/0.003379, allocations: 62.28 kB / 326.2 MB, free: 15.58 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001438/0.003523, allocations: 108.8 kB / 326.3 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.896e-05/0.003622, allocations: 77.47 kB / 326.4 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.49e-05/0.003687, allocations: 58.28 kB / 326.5 MB, free: 15.35 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.448e-06/0.003696, allocations: 0 / 326.5 MB, free: 15.35 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.611e-05/0.003752, allocations: 65.03 kB / 326.5 MB, free: 15.27 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 9.42e-07/0.003753, allocations: 0 / 326.5 MB, free: 15.27 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003565/0.00411, allocations: 240.4 kB / 326.8 MB, free: 15.14 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.56e-05/0.004185, allocations: 82.98 kB / 326.9 MB, free: 15.04 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001117/0.004297, allocations: 119.2 kB / 327 MB, free: 14.93 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.888e-05/0.004316, allocations: 31.67 kB / 327 MB, free: 14.89 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.744e-05/0.004373, allocations: 82.03 kB / 327.1 MB, free: 14.81 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.314e-05/0.004397, allocations: 9.141 kB / 327.1 MB, free: 14.8 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.34e-05/0.00444, allocations: 21.98 kB / 327.1 MB, free: 14.79 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001527/0.004593, allocations: 317.3 kB / 327.4 MB, free: 14.47 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.631e-05/0.004649, allocations: 57.72 kB / 327.5 MB, free: 14.43 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.236e-05/0.004701, allocations: 54.45 kB / 327.5 MB, free: 14.4 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001276/0.004829, allocations: 120.1 kB / 327.7 MB, free: 14.32 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.004832, allocations: 1.734 kB / 327.7 MB, free: 14.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002121/0.005044, allocations: 179.7 kB / 327.8 MB, free: 14.22 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.945e-05/0.005084, allocations: 41.78 kB / 327.9 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.219e-06/0.005089, allocations: 4.062 kB / 327.9 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.556e-05/0.005105, allocations: 1.344 kB / 327.9 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.182e-06/0.005106, allocations: 0.5156 kB / 327.9 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.95e-06/0.005111, allocations: 0 / 327.9 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.619e-05/0.005137, allocations: 6.672 kB / 327.9 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.728e-06/0.005147, allocations: 2.406 kB / 327.9 MB, free: 14.18 MB / 302.1 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 0.0001394/0.005286, allocations: 143.3 kB / 328 MB, free: 14.03 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.017e-05/0.005306, allocations: 12.25 kB / 328 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.861e-05/0.005325, allocations: 9.609 kB / 328 MB, free: 14.01 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.394e-06/0.005327, allocations: 1.25 kB / 328 MB, free: 14.01 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.005332, allocations: 4.656 kB / 328.1 MB, free: 14.01 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.005337, allocations: 3.938 kB / 328.1 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001018/0.005439, allocations: 103.9 kB / 328.2 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.00544, allocations: 0 / 328.2 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.252e-06/0.005441, allocations: 1.062 kB / 328.2 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.886e-06/0.005444, allocations: 0.6562 kB / 328.2 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.356e-05/0.005457, allocations: 6.344 kB / 328.2 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.005459, allocations: 0.9375 kB / 328.2 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.00546, allocations: 1.562 kB / 328.2 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002444/0.005705, allocations: 231.6 kB / 328.4 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.296e-06/0.005713, allocations: 3.469 kB / 328.4 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.015e-05/0.005733, allocations: 8.875 kB / 328.4 MB, free: 13.72 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.378e-05/0.005747, allocations: 1.312 kB / 328.4 MB, free: 13.72 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.666e-05/0.005764, allocations: 2.219 kB / 328.4 MB, free: 13.72 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.102e-06/0.00577, allocations: 2.625 kB / 328.4 MB, free: 13.72 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.17e-05/0.005842, allocations: 91.36 kB / 328.5 MB, free: 13.64 MB / 302.1 MB Notification: Performance of sort global known variables: time 8e-08/0.005842, allocations: 0 / 328.5 MB, free: 13.64 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.00021/0.006052, allocations: 12.97 kB / 328.5 MB, free: 13.64 MB / 302.1 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.000356/0.006408, allocations: 142.6 kB / 328.7 MB, free: 13.53 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002255/0.006633, allocations: 179.4 kB / 328.8 MB, free: 13.39 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.225e-06/0.006635, allocations: 0 / 328.8 MB, free: 13.39 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001008/0.006736, allocations: 116.4 kB / 328.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001398/0.006876, allocations: 6.438 kB / 328.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003035/0.007179, allocations: 178.4 kB / 329.1 MB, free: 13.14 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.889e-05/0.007258, allocations: 64.67 kB / 329.2 MB, free: 13.07 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.905e-06/0.007266, allocations: 0.75 kB / 329.2 MB, free: 13.07 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.462e-05/0.007281, allocations: 12.62 kB / 329.2 MB, free: 13.06 MB / 302.1 MB Notification: Performance of SimCode: time 4.51e-07/0.007281, allocations: 1.219 kB / 329.2 MB, free: 13.06 MB / 302.1 MB Notification: Performance of Templates: time 0.0034/0.01068, allocations: 0.6621 MB / 329.9 MB, free: 12.96 MB / 302.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & ./Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.269068866968155]