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.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.001328/0.001328, allocations: 106 kB / 21.18 MB, free: 0.7188 MB / 14.72 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.001472/0.001472, allocations: 189.2 kB / 24.47 MB, free: 4.094 MB / 14.72 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 1.518/1.518, allocations: 207.6 MB / 235.2 MB, free: 10.02 MB / 190.1 MB " [Timeout remaining time 178] 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.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_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: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002392/0.002392, allocations: 51.92 kB / 347.6 MB, free: 9.598 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3219/0.3243, allocations: 49.16 MB / 396.8 MB, free: 9.516 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001502/0.3258, allocations: 488 kB / 397.3 MB, free: 9.234 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002406/0.326, allocations: 59.64 kB / 397.3 MB, free: 9.199 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.191e-05/0.326, allocations: 0 / 397.3 MB, free: 9.199 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.85e-05/0.3261, allocations: 0.6094 kB / 397.3 MB, free: 9.199 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.307e-05/0.3261, allocations: 13.92 kB / 397.3 MB, free: 9.199 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001505/0.3263, allocations: 25.8 kB / 397.4 MB, free: 9.184 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 9.055e-05/0.3264, allocations: 16.06 kB / 397.4 MB, free: 9.184 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.985e-05/0.3264, allocations: 1.953 kB / 397.4 MB, free: 9.184 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.868e-05/0.3264, allocations: 23.25 kB / 397.4 MB, free: 9.172 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.859e-05/0.3265, allocations: 26.03 kB / 397.4 MB, free: 9.168 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.695e-05/0.3265, allocations: 1.125 kB / 397.4 MB, free: 9.168 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.162e-05/0.3266, allocations: 9.547 kB / 397.4 MB, free: 9.164 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.868e-05/0.3266, allocations: 12.23 kB / 397.4 MB, free: 9.156 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.677e-05/0.3266, allocations: 10.97 kB / 397.5 MB, free: 9.148 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 9.175e-05/0.3267, allocations: 33.16 kB / 397.5 MB, free: 9.137 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.3267, allocations: 0 / 397.5 MB, free: 9.137 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.3267, allocations: 0 / 397.5 MB, free: 9.137 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.067e-06/0.3267, allocations: 1.125 kB / 397.5 MB, free: 9.137 MB / 318.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.0002556/0.327, allocations: 292.2 kB / 397.8 MB, free: 8.836 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.103e-05/0.327, allocations: 12.33 kB / 397.8 MB, free: 8.832 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.202e-05/0.3271, allocations: 11.48 kB / 397.8 MB, free: 8.824 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.567e-05/0.3271, allocations: 106.9 kB / 397.9 MB, free: 8.699 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.243e-05/0.3271, allocations: 1.812 kB / 397.9 MB, free: 8.699 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.233e-05/0.3271, allocations: 1.625 kB / 397.9 MB, free: 8.699 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000107/0.3273, allocations: 61.91 kB / 398 MB, free: 8.664 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.484e-06/0.3273, allocations: 192 / 398 MB, free: 8.664 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.666e-06/0.3273, allocations: 3.938 kB / 398 MB, free: 8.66 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.679e-06/0.3273, allocations: 6.219 kB / 398 MB, free: 8.656 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.059e-05/0.3273, allocations: 30.14 kB / 398 MB, free: 8.652 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.635e-05/0.3274, allocations: 125 kB / 398.1 MB, free: 8.496 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.227e-05/0.3275, allocations: 45.3 kB / 398.2 MB, free: 8.469 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.728e-05/0.3275, allocations: 30.5 kB / 398.2 MB, free: 8.461 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.373e-06/0.3275, allocations: 0 / 398.2 MB, free: 8.461 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.793e-05/0.3275, allocations: 59.47 kB / 398.3 MB, free: 8.391 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 8.62e-07/0.3275, allocations: 4 kB / 398.3 MB, free: 8.387 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002612/0.3278, allocations: 197.8 kB / 398.5 MB, free: 8.301 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.655e-05/0.3278, allocations: 80.2 kB / 398.5 MB, free: 8.207 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.448e-05/0.3279, allocations: 109.8 kB / 398.6 MB, free: 8.105 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.304e-06/0.3279, allocations: 26.89 kB / 398.7 MB, free: 8.074 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.812e-05/0.3279, allocations: 86.31 kB / 398.8 MB, free: 7.988 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.691e-05/0.3279, allocations: 9.844 kB / 398.8 MB, free: 7.98 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.847e-05/0.328, allocations: 21.81 kB / 398.8 MB, free: 7.961 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.207e-05/0.328, allocations: 317.6 kB / 399.1 MB, free: 7.645 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.644e-05/0.328, allocations: 25.05 kB / 399.1 MB, free: 7.645 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.059e-05/0.3281, allocations: 29.66 kB / 399.1 MB, free: 7.641 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.825e-05/0.3281, allocations: 121 kB / 399.3 MB, free: 7.562 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.3281, allocations: 0 / 399.3 MB, free: 7.562 MB / 318.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.000144/0.3283, allocations: 152.1 kB / 399.4 MB, free: 7.492 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.465e-05/0.3283, allocations: 38.25 kB / 399.5 MB, free: 7.457 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.007e-06/0.3283, allocations: 3.938 kB / 399.5 MB, free: 7.453 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.363e-05/0.3283, allocations: 2.031 kB / 399.5 MB, free: 7.453 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.31e-07/0.3283, allocations: 4.062 kB / 399.5 MB, free: 7.449 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.508e-06/0.3283, allocations: 1.125 kB / 399.5 MB, free: 7.449 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.935e-05/0.3284, allocations: 9.016 kB / 399.5 MB, free: 7.441 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.285e-06/0.3284, allocations: 6.203 kB / 399.5 MB, free: 7.438 MB / 318.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 5.624e-05/0.3284, allocations: 147.7 kB / 399.6 MB, free: 7.289 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.234e-05/0.3284, allocations: 6.797 kB / 399.6 MB, free: 7.285 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.199e-05/0.3284, allocations: 10.98 kB / 399.6 MB, free: 7.27 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.91e-07/0.3284, allocations: 0 / 399.6 MB, free: 7.27 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.916e-06/0.3285, allocations: 1.344 kB / 399.6 MB, free: 7.27 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.593e-06/0.3285, allocations: 4 kB / 399.6 MB, free: 7.266 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.826e-05/0.3285, allocations: 134.4 kB / 399.8 MB, free: 7.105 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-06/0.3285, allocations: 1.5 kB / 399.8 MB, free: 7.105 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.3285, allocations: 0 / 399.8 MB, free: 7.105 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.92e-07/0.3285, allocations: 1.156 kB / 399.8 MB, free: 7.105 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.686e-06/0.3285, allocations: 6.375 kB / 399.8 MB, free: 7.102 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.81e-07/0.3285, allocations: 0 / 399.8 MB, free: 7.102 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.3285, allocations: 0 / 399.8 MB, free: 7.102 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001875/0.3287, allocations: 199.2 kB / 400 MB, free: 6.988 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.113e-06/0.3287, allocations: 11.08 kB / 400 MB, free: 6.98 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.592e-05/0.3287, allocations: 6.078 kB / 400 MB, free: 6.977 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.273e-05/0.3287, allocations: 1.344 kB / 400 MB, free: 6.977 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.563e-05/0.3288, allocations: 1.922 kB / 400 MB, free: 6.977 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.631e-06/0.3288, allocations: 3.141 kB / 400 MB, free: 6.977 MB / 318.1 MB Notification: Performance of sorting global known variables: time 2.85e-05/0.3288, allocations: 89.78 kB / 400.1 MB, free: 6.898 MB / 318.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3288, allocations: 0 / 400.1 MB, free: 6.898 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0001886/0.329, allocations: 10.66 kB / 400.1 MB, free: 6.898 MB / 318.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.0002405/0.3292, allocations: 128.9 kB / 400.2 MB, free: 6.785 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001386/0.3294, allocations: 117.2 kB / 400.3 MB, free: 6.719 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.3294, allocations: 3.938 kB / 400.3 MB, free: 6.715 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 5.116e-05/0.3294, allocations: 91.78 kB / 400.4 MB, free: 6.645 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001296/0.3295, allocations: 7.094 kB / 400.4 MB, free: 6.641 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002085/0.3298, allocations: 150.8 kB / 400.6 MB, free: 6.52 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.044e-05/0.3298, allocations: 0.6802 MB / 401.3 MB, free: 5.824 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 5.661e-06/0.3299, allocations: 1.188 kB / 401.3 MB, free: 5.824 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.767e-06/0.3299, allocations: 7.438 kB / 401.3 MB, free: 5.816 MB / 318.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3299, allocations: 0 / 401.3 MB, free: 5.816 MB / 318.1 MB Notification: Performance of Templates: time 0.003025/0.3329, allocations: 0.6986 MB / 402 MB, free: 5.707 MB / 318.1 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=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.529021735303104]