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.001298/0.001298, allocations: 106.5 kB / 21.22 MB, free: 0.6797 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.00155/0.00155, allocations: 209.3 kB / 24.54 MB, free: 4.055 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.426/1.426, allocations: 230.6 MB / 258.3 MB, free: 8.082 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.001933/0.001933, allocations: 68.77 kB / 379 MB, free: 2.676 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2342/0.2361, allocations: 53.38 MB / 432.4 MB, free: 6.965 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001525/0.2376, allocations: 484.7 kB / 432.9 MB, free: 6.496 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002396/0.2378, allocations: 63.78 kB / 432.9 MB, free: 6.434 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.607e-05/0.2379, allocations: 0 / 432.9 MB, free: 6.434 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.258e-05/0.2379, allocations: 0 / 432.9 MB, free: 6.434 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.338e-05/0.238, allocations: 11.98 kB / 432.9 MB, free: 6.422 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000142/0.2381, allocations: 27.91 kB / 433 MB, free: 6.395 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 8.527e-05/0.2382, allocations: 19.98 kB / 433 MB, free: 6.375 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.457e-05/0.2382, allocations: 0 / 433 MB, free: 6.375 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.932e-05/0.2383, allocations: 19.97 kB / 433 MB, free: 6.355 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.647e-05/0.2383, allocations: 27.91 kB / 433 MB, free: 6.328 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.466e-05/0.2383, allocations: 0 / 433 MB, free: 6.328 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.726e-05/0.2384, allocations: 7.938 kB / 433 MB, free: 6.32 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.414e-05/0.2384, allocations: 7.125 kB / 433 MB, free: 6.316 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.202e-05/0.2384, allocations: 15.92 kB / 433.1 MB, free: 6.301 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 8.693e-05/0.2385, allocations: 25.88 kB / 433.1 MB, free: 6.277 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.2385, allocations: 0 / 433.1 MB, free: 6.277 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2385, allocations: 4 kB / 433.1 MB, free: 6.273 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.579e-06/0.2385, allocations: 0 / 433.1 MB, free: 6.273 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.0003404/0.2389, allocations: 291.7 kB / 433.4 MB, free: 5.953 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.048e-05/0.2389, allocations: 8.031 kB / 433.4 MB, free: 5.945 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.077e-05/0.2389, allocations: 8.875 kB / 433.4 MB, free: 5.938 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.72e-05/0.239, allocations: 110.5 kB / 433.5 MB, free: 5.805 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.792e-06/0.239, allocations: 384 / 433.5 MB, free: 5.805 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.14e-05/0.2391, allocations: 4.375 kB / 433.5 MB, free: 5.801 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000113/0.2392, allocations: 66.17 kB / 433.6 MB, free: 5.73 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.524e-06/0.2392, allocations: 4.188 kB / 433.6 MB, free: 5.727 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.152e-05/0.2392, allocations: 7.922 kB / 433.6 MB, free: 5.719 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.626e-06/0.2392, allocations: 4 kB / 433.6 MB, free: 5.715 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.795e-05/0.2392, allocations: 20 kB / 433.6 MB, free: 5.695 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001292/0.2394, allocations: 128.8 kB / 433.7 MB, free: 5.527 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.993e-05/0.2394, allocations: 46.55 kB / 433.8 MB, free: 5.473 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.901e-05/0.2395, allocations: 32.92 kB / 433.8 MB, free: 5.438 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.003e-06/0.2395, allocations: 0 / 433.8 MB, free: 5.438 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.706e-05/0.2395, allocations: 68.23 kB / 433.9 MB, free: 5.355 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 7.92e-07/0.2395, allocations: 0 / 433.9 MB, free: 5.355 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002897/0.2398, allocations: 195.2 kB / 434.1 MB, free: 5.152 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.021e-05/0.2399, allocations: 77.11 kB / 434.1 MB, free: 5.059 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.353e-05/0.24, allocations: 109.8 kB / 434.2 MB, free: 4.941 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.823e-05/0.24, allocations: 29.7 kB / 434.3 MB, free: 4.906 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.133e-05/0.24, allocations: 84.14 kB / 434.4 MB, free: 4.82 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.625e-05/0.24, allocations: 7.984 kB / 434.4 MB, free: 4.812 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.486e-05/0.2401, allocations: 25.7 kB / 434.4 MB, free: 4.781 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001228/0.2402, allocations: 310.8 kB / 434.7 MB, free: 4.469 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.545e-05/0.2402, allocations: 27.98 kB / 434.7 MB, free: 4.441 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.938e-05/0.2403, allocations: 27.98 kB / 434.7 MB, free: 4.414 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001025/0.2404, allocations: 116.2 kB / 434.9 MB, free: 4.285 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.04e-06/0.2404, allocations: 4 kB / 434.9 MB, free: 4.281 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001565/0.2405, allocations: 151.3 kB / 435 MB, free: 4.121 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.509e-05/0.2406, allocations: 29.7 kB / 435 MB, free: 4.086 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.2406, allocations: 8 kB / 435 MB, free: 4.078 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.738e-05/0.2406, allocations: 4 kB / 435 MB, free: 4.074 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.61e-07/0.2406, allocations: 0 / 435 MB, free: 4.074 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.218e-06/0.2406, allocations: 0 / 435 MB, free: 4.074 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.097e-05/0.2406, allocations: 12.14 kB / 435.1 MB, free: 4.062 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.009e-05/0.2406, allocations: 8 kB / 435.1 MB, free: 4.055 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 9.515e-05/0.2407, allocations: 147.5 kB / 435.2 MB, free: 3.895 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.229e-05/0.2407, allocations: 4 kB / 435.2 MB, free: 3.891 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.723e-05/0.2407, allocations: 11.92 kB / 435.2 MB, free: 3.871 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-06/0.2407, allocations: 4 kB / 435.2 MB, free: 3.867 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.2407, allocations: 0 / 435.2 MB, free: 3.867 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.734e-06/0.2407, allocations: 3.938 kB / 435.2 MB, free: 3.863 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001003/0.2408, allocations: 132.7 kB / 435.4 MB, free: 3.691 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.62e-07/0.2408, allocations: 0 / 435.4 MB, free: 3.691 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.91e-07/0.2408, allocations: 0 / 435.4 MB, free: 3.691 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.91e-07/0.2408, allocations: 0 / 435.4 MB, free: 3.691 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.167e-05/0.2409, allocations: 7.938 kB / 435.4 MB, free: 3.684 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.01e-07/0.2409, allocations: 0 / 435.4 MB, free: 3.684 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.2409, allocations: 3.984 kB / 435.4 MB, free: 3.68 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002139/0.2411, allocations: 206.9 kB / 435.6 MB, free: 3.453 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.762e-06/0.2411, allocations: 4 kB / 435.6 MB, free: 3.449 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.663e-05/0.2411, allocations: 7.938 kB / 435.6 MB, free: 3.441 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.293e-05/0.2411, allocations: 3.984 kB / 435.6 MB, free: 3.438 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.241e-05/0.2411, allocations: 0 / 435.6 MB, free: 3.438 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.172e-06/0.2411, allocations: 4 kB / 435.6 MB, free: 3.434 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.416e-05/0.2412, allocations: 87.28 kB / 435.7 MB, free: 3.348 MB / 334.1 MB Notification: Performance of sort global known variables: time 5e-08/0.2412, allocations: 0 / 435.7 MB, free: 3.348 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000182/0.2414, allocations: 16.02 kB / 435.7 MB, free: 3.332 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.0002747/0.2416, allocations: 124 kB / 435.8 MB, free: 3.215 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001755/0.2418, allocations: 119.4 kB / 435.9 MB, free: 3.086 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.2418, allocations: 0 / 435.9 MB, free: 3.086 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.11e-05/0.2419, allocations: 95.31 kB / 436 MB, free: 2.98 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001242/0.242, allocations: 8.125 kB / 436 MB, free: 2.973 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002465/0.2423, allocations: 136.9 kB / 436.2 MB, free: 2.812 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003453/0.2426, allocations: 0.6807 MB / 436.9 MB, free: 2.105 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.598e-06/0.2426, allocations: 0 / 436.9 MB, free: 2.105 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.267e-05/0.2426, allocations: 7.438 kB / 436.9 MB, free: 2.098 MB / 334.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2426, allocations: 0 / 436.9 MB, free: 2.098 MB / 334.1 MB Notification: Performance of Templates: time 0.002855/0.2455, allocations: 0.7048 MB / 437.6 MB, free: 1.402 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/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_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.011817838065326]