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.001838/0.001838, allocations: 114.5 kB / 21.17 MB, free: 0.6172 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.002297/0.002297, allocations: 206.2 kB / 24.47 MB, free: 4.023 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.539/1.539, 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.002013/0.002013, allocations: 67.83 kB / 378.7 MB, free: 2.945 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2652/0.2672, allocations: 53.31 MB / 432 MB, free: 7.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001909/0.2691, allocations: 0.4887 MB / 432.5 MB, free: 6.945 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003248/0.2694, allocations: 66.94 kB / 432.6 MB, free: 6.883 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.05e-05/0.2695, allocations: 0 / 432.6 MB, free: 6.883 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.078e-05/0.2695, allocations: 0 / 432.6 MB, free: 6.883 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.345e-05/0.2696, allocations: 15.97 kB / 432.6 MB, free: 6.867 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001794/0.2698, allocations: 23.91 kB / 432.6 MB, free: 6.844 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001097/0.2699, allocations: 19.98 kB / 432.6 MB, free: 6.824 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.804e-05/0.2699, allocations: 0 / 432.6 MB, free: 6.824 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.483e-05/0.27, allocations: 15.92 kB / 432.6 MB, free: 6.809 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.355e-05/0.2701, allocations: 31.95 kB / 432.7 MB, free: 6.777 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.59e-05/0.2701, allocations: 0 / 432.7 MB, free: 6.777 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.713e-05/0.2701, allocations: 4 kB / 432.7 MB, free: 6.773 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.519e-05/0.2702, allocations: 8 kB / 432.7 MB, free: 6.766 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.44e-05/0.2702, allocations: 7.938 kB / 432.7 MB, free: 6.758 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001132/0.2703, allocations: 29.86 kB / 432.7 MB, free: 6.73 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.2703, allocations: 0 / 432.7 MB, free: 6.73 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.2703, allocations: 0 / 432.7 MB, free: 6.73 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.18e-06/0.2703, allocations: 0 / 432.7 MB, free: 6.73 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.0004389/0.2708, allocations: 365 kB / 433.1 MB, free: 6.316 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.843e-05/0.2708, allocations: 16.03 kB / 433.1 MB, free: 6.301 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.754e-05/0.2708, allocations: 4.891 kB / 433.1 MB, free: 6.297 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001445/0.271, allocations: 176.3 kB / 433.3 MB, free: 6.086 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.346e-05/0.271, allocations: 384 / 433.3 MB, free: 6.086 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.397e-06/0.271, allocations: 384 / 433.3 MB, free: 6.086 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001281/0.2711, allocations: 62.23 kB / 433.3 MB, free: 6.02 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.443e-06/0.2711, allocations: 192 / 433.3 MB, free: 6.02 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.561e-05/0.2712, allocations: 3.938 kB / 433.3 MB, free: 6.016 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.509e-06/0.2712, allocations: 0 / 433.3 MB, free: 6.016 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.237e-05/0.2712, allocations: 27.98 kB / 433.4 MB, free: 5.988 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001633/0.2714, allocations: 161.7 kB / 433.5 MB, free: 5.781 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.443e-05/0.2714, allocations: 50.5 kB / 433.6 MB, free: 5.723 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.772e-05/0.2715, allocations: 28.92 kB / 433.6 MB, free: 5.691 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.376e-06/0.2715, allocations: 0 / 433.6 MB, free: 5.691 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.218e-05/0.2715, allocations: 60.27 kB / 433.7 MB, free: 5.617 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 8.31e-07/0.2715, allocations: 0 / 433.7 MB, free: 5.617 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002993/0.2718, allocations: 191.4 kB / 433.8 MB, free: 5.418 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.756e-05/0.2719, allocations: 85.14 kB / 433.9 MB, free: 5.316 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.296e-05/0.272, allocations: 109.8 kB / 434 MB, free: 5.199 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.641e-05/0.272, allocations: 25.7 kB / 434.1 MB, free: 5.168 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.562e-05/0.2721, allocations: 88.08 kB / 434.1 MB, free: 5.078 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.338e-05/0.2721, allocations: 15.88 kB / 434.2 MB, free: 5.062 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.379e-05/0.2721, allocations: 17.72 kB / 434.2 MB, free: 5.039 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001454/0.2723, allocations: 314.8 kB / 434.5 MB, free: 4.723 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.794e-05/0.2723, allocations: 27.98 kB / 434.5 MB, free: 4.695 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.352e-05/0.2723, allocations: 31.98 kB / 434.5 MB, free: 4.664 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001142/0.2724, allocations: 116.2 kB / 434.7 MB, free: 4.535 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.2724, allocations: 0 / 434.7 MB, free: 4.535 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001599/0.2726, allocations: 147.4 kB / 434.8 MB, free: 4.379 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.585e-05/0.2727, allocations: 41.69 kB / 434.8 MB, free: 4.332 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.2727, allocations: 3.938 kB / 434.8 MB, free: 4.328 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.388e-05/0.2727, allocations: 0 / 434.8 MB, free: 4.328 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.61e-07/0.2727, allocations: 0 / 434.8 MB, free: 4.328 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.981e-06/0.2727, allocations: 3.938 kB / 434.8 MB, free: 4.324 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.119e-05/0.2727, allocations: 12.02 kB / 434.9 MB, free: 4.312 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.404e-06/0.2727, allocations: 3.938 kB / 434.9 MB, free: 4.309 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.0001146/0.2728, allocations: 147.5 kB / 435 MB, free: 4.148 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.411e-05/0.2728, allocations: 4 kB / 435 MB, free: 4.145 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.782e-05/0.2729, allocations: 7.844 kB / 435 MB, free: 4.133 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-06/0.2729, allocations: 0 / 435 MB, free: 4.133 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.2729, allocations: 4 kB / 435 MB, free: 4.129 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-06/0.2729, allocations: 0 / 435 MB, free: 4.129 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001161/0.273, allocations: 157.7 kB / 435.2 MB, free: 3.926 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.11e-07/0.273, allocations: 0 / 435.2 MB, free: 3.926 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.01e-07/0.273, allocations: 8 kB / 435.2 MB, free: 3.918 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.062e-06/0.273, allocations: 0 / 435.2 MB, free: 3.918 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.927e-06/0.273, allocations: 3.938 kB / 435.2 MB, free: 3.914 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.51e-07/0.273, allocations: 256 / 435.2 MB, free: 3.914 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.273, allocations: 0 / 435.2 MB, free: 3.914 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002144/0.2732, allocations: 202.7 kB / 435.4 MB, free: 3.691 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.294e-05/0.2733, allocations: 85.05 kB / 435.5 MB, free: 3.59 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.854e-05/0.2733, allocations: 7.938 kB / 435.5 MB, free: 3.582 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.16e-05/0.2733, allocations: 4.031 kB / 435.5 MB, free: 3.578 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.119e-05/0.2733, allocations: 3.938 kB / 435.5 MB, free: 3.574 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.111e-06/0.2733, allocations: 4 kB / 435.5 MB, free: 3.57 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.456e-05/0.2734, allocations: 91.27 kB / 435.6 MB, free: 3.48 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2734, allocations: 0 / 435.6 MB, free: 3.48 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000186/0.2735, allocations: 8 kB / 435.6 MB, free: 3.473 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.0003122/0.2739, allocations: 127.5 kB / 435.7 MB, free: 3.348 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001666/0.274, allocations: 119.4 kB / 435.8 MB, free: 3.219 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.274, allocations: 0 / 435.8 MB, free: 3.219 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.409e-05/0.2741, allocations: 83.39 kB / 435.9 MB, free: 3.125 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001342/0.2742, allocations: 4 kB / 435.9 MB, free: 3.121 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002568/0.2745, allocations: 148.9 kB / 436.1 MB, free: 2.949 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002955/0.2748, allocations: 0.6847 MB / 436.7 MB, free: 2.238 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.17e-06/0.2748, allocations: 7.938 kB / 436.7 MB, free: 2.23 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.252e-05/0.2748, allocations: 7.438 kB / 436.8 MB, free: 2.223 MB / 334.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2748, allocations: 4 kB / 436.8 MB, free: 2.219 MB / 334.1 MB Notification: Performance of Templates: time 0.003101/0.2779, allocations: 0.6859 MB / 437.4 MB, free: 1.543 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 -s cvode -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: 4.4410418048501015]