Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001236/0.001236, allocations: 115.3 kB / 21.17 MB, free: 0.7812 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.001408/0.001408, allocations: 217.3 kB / 24.47 MB, free: 4.359 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.397/1.397, allocations: 230.4 MB / 258.1 MB, free: 8.148 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001927/0.001927, allocations: 67.83 kB / 378.7 MB, free: 2.965 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2664/0.2683, allocations: 53.32 MB / 432 MB, free: 7.441 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001577/0.2699, allocations: 492.6 kB / 432.5 MB, free: 6.965 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002731/0.2702, allocations: 66.92 kB / 432.6 MB, free: 6.902 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.372e-05/0.2702, allocations: 0 / 432.6 MB, free: 6.902 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.59e-05/0.2702, allocations: 4 kB / 432.6 MB, free: 6.898 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.77e-05/0.2703, allocations: 15.92 kB / 432.6 MB, free: 6.883 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001664/0.2705, allocations: 15.97 kB / 432.6 MB, free: 6.867 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001081/0.2706, allocations: 19.98 kB / 432.6 MB, free: 6.848 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.946e-05/0.2706, allocations: 4 kB / 432.6 MB, free: 6.844 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.775e-05/0.2707, allocations: 15.97 kB / 432.6 MB, free: 6.828 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.217e-05/0.2708, allocations: 31.86 kB / 432.7 MB, free: 6.797 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.11e-05/0.2708, allocations: 0 / 432.7 MB, free: 6.797 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.243e-05/0.2708, allocations: 7.984 kB / 432.7 MB, free: 6.789 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.574e-05/0.2709, allocations: 8 kB / 432.7 MB, free: 6.781 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.143e-05/0.2709, allocations: 11.92 kB / 432.7 MB, free: 6.77 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 9.933e-05/0.271, allocations: 19.92 kB / 432.7 MB, free: 6.75 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.271, allocations: 0 / 432.7 MB, free: 6.75 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.271, allocations: 0 / 432.7 MB, free: 6.75 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.14e-06/0.271, allocations: 0 / 432.7 MB, free: 6.75 MB / 334.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.0004241/0.2714, allocations: 366.7 kB / 433.1 MB, free: 6.336 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.2715, allocations: 8.031 kB / 433.1 MB, free: 6.328 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.028e-05/0.2715, allocations: 8.891 kB / 433.1 MB, free: 6.32 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001476/0.2717, allocations: 176.3 kB / 433.3 MB, free: 6.109 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.516e-05/0.2717, allocations: 8.312 kB / 433.3 MB, free: 6.102 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.336e-06/0.2717, allocations: 384 / 433.3 MB, free: 6.102 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001241/0.2718, allocations: 54.25 kB / 433.3 MB, free: 6.043 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.2718, allocations: 4.172 kB / 433.3 MB, free: 6.039 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.469e-05/0.2718, allocations: 15.86 kB / 433.3 MB, free: 6.023 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.2718, allocations: 3.938 kB / 433.3 MB, free: 6.02 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.349e-05/0.2719, allocations: 24 kB / 433.4 MB, free: 5.996 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001721/0.2721, allocations: 157.7 kB / 433.5 MB, free: 5.793 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.74e-05/0.2721, allocations: 42.61 kB / 433.6 MB, free: 5.742 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.332e-05/0.2722, allocations: 32.92 kB / 433.6 MB, free: 5.707 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.022e-05/0.2722, allocations: 0 / 433.6 MB, free: 5.707 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.668e-05/0.2722, allocations: 60.25 kB / 433.6 MB, free: 5.633 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 9.81e-07/0.2722, allocations: 4 kB / 433.7 MB, free: 5.629 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003211/0.2726, allocations: 195.2 kB / 433.8 MB, free: 5.426 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.081e-05/0.2726, allocations: 77.11 kB / 433.9 MB, free: 5.332 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000107/0.2727, allocations: 109.8 kB / 434 MB, free: 5.215 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.736e-05/0.2727, allocations: 29.7 kB / 434.1 MB, free: 5.18 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.972e-05/0.2728, allocations: 84.14 kB / 434.1 MB, free: 5.094 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.922e-05/0.2728, allocations: 7.953 kB / 434.1 MB, free: 5.086 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.671e-05/0.2729, allocations: 21.7 kB / 434.2 MB, free: 5.059 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000152/0.273, allocations: 314.9 kB / 434.5 MB, free: 4.742 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.551e-05/0.273, allocations: 28.23 kB / 434.5 MB, free: 4.715 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.471e-05/0.2731, allocations: 27.98 kB / 434.5 MB, free: 4.688 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000119/0.2732, allocations: 124.2 kB / 434.7 MB, free: 4.551 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.2732, allocations: 4 kB / 434.7 MB, free: 4.547 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001611/0.2734, allocations: 147.4 kB / 434.8 MB, free: 4.391 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.831e-05/0.2734, allocations: 33.7 kB / 434.8 MB, free: 4.352 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.2734, allocations: 3.938 kB / 434.8 MB, free: 4.348 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.352e-05/0.2734, allocations: 4 kB / 434.8 MB, free: 4.344 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.21e-07/0.2734, allocations: 0 / 434.8 MB, free: 4.344 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.378e-06/0.2734, allocations: 4.062 kB / 434.8 MB, free: 4.34 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.084e-05/0.2734, allocations: 3.953 kB / 434.8 MB, free: 4.336 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.097e-05/0.2735, allocations: 7.984 kB / 434.9 MB, free: 4.328 MB / 334.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.0001035/0.2736, allocations: 139.5 kB / 435 MB, free: 4.176 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.365e-05/0.2736, allocations: 4 kB / 435 MB, free: 4.172 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.764e-05/0.2736, allocations: 11.83 kB / 435 MB, free: 4.156 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.02e-07/0.2736, allocations: 0 / 435 MB, free: 4.156 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.2736, allocations: 0 / 435 MB, free: 4.156 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.094e-06/0.2736, allocations: 0 / 435 MB, free: 4.156 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001292/0.2737, allocations: 161.7 kB / 435.2 MB, free: 3.949 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.2737, allocations: 0 / 435.2 MB, free: 3.949 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.81e-07/0.2737, allocations: 3.938 kB / 435.2 MB, free: 3.945 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.022e-06/0.2737, allocations: 3.938 kB / 435.2 MB, free: 3.941 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.193e-05/0.2737, allocations: 7.938 kB / 435.2 MB, free: 3.934 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.418e-06/0.2737, allocations: 7.922 kB / 435.2 MB, free: 3.926 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.2737, allocations: 0 / 435.2 MB, free: 3.926 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002241/0.274, allocations: 198.9 kB / 435.4 MB, free: 3.707 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.691e-05/0.274, allocations: 89.06 kB / 435.5 MB, free: 3.602 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.859e-05/0.274, allocations: 7.922 kB / 435.5 MB, free: 3.594 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.694e-05/0.2741, allocations: 4 kB / 435.5 MB, free: 3.59 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.055e-05/0.2741, allocations: 0 / 435.5 MB, free: 3.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.102e-06/0.2741, allocations: 4 kB / 435.5 MB, free: 3.586 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.358e-05/0.2741, allocations: 95.27 kB / 435.6 MB, free: 3.492 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2741, allocations: 0 / 435.6 MB, free: 3.492 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001915/0.2743, allocations: 8 kB / 435.6 MB, free: 3.484 MB / 334.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.0003112/0.2746, allocations: 126.8 kB / 435.7 MB, free: 3.367 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001736/0.2748, allocations: 123.3 kB / 435.8 MB, free: 3.234 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.2748, allocations: 0 / 435.8 MB, free: 3.234 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.265e-05/0.2749, allocations: 87.39 kB / 435.9 MB, free: 3.137 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001365/0.275, allocations: 4 kB / 435.9 MB, free: 3.133 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002927/0.2753, allocations: 178.8 kB / 436.1 MB, free: 2.926 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003188/0.2756, allocations: 0.6845 MB / 436.8 MB, free: 2.215 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.259e-05/0.2757, allocations: 7.438 kB / 436.8 MB, free: 2.207 MB / 334.1 MB Notification: Performance of SimCode: time 2.71e-07/0.2757, allocations: 0 / 436.8 MB, free: 2.207 MB / 334.1 MB Notification: Performance of Templates: time 0.002149/0.2778, allocations: 0.6773 MB / 437.5 MB, free: 1.535 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & ./Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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: 6.558570322114974]