Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00135/0.00135, allocations: 107.6 kB / 21.18 MB, free: 0.5273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001444/0.001444, allocations: 206.8 kB / 24.47 MB, free: 3.699 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.465/1.465, allocations: 230.6 MB / 258.2 MB, free: 7.805 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+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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_4.1.0_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_Modelica.Utilities.Examples.WriteRealMatrixToFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001557/0.001557, allocations: 47.92 kB / 378.9 MB, free: 2.594 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3131/0.3147, allocations: 53.35 MB / 432.3 MB, free: 6.75 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001791/0.3165, allocations: 490.8 kB / 432.8 MB, free: 6.277 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003151/0.3168, allocations: 71.02 kB / 432.8 MB, free: 6.211 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.626e-05/0.3168, allocations: 0 / 432.8 MB, free: 6.211 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.431e-05/0.3168, allocations: 0 / 432.8 MB, free: 6.211 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.479e-05/0.3169, allocations: 15.92 kB / 432.9 MB, free: 6.195 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001825/0.3171, allocations: 23.97 kB / 432.9 MB, free: 6.172 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001097/0.3172, allocations: 27.91 kB / 432.9 MB, free: 6.145 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.141e-05/0.3173, allocations: 0 / 432.9 MB, free: 6.145 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.47e-05/0.3173, allocations: 15.92 kB / 432.9 MB, free: 6.129 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.559e-05/0.3174, allocations: 27.97 kB / 433 MB, free: 6.102 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.04e-05/0.3174, allocations: 3.984 kB / 433 MB, free: 6.098 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.933e-05/0.3175, allocations: 4 kB / 433 MB, free: 6.094 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.797e-05/0.3175, allocations: 7.938 kB / 433 MB, free: 6.086 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.58e-05/0.3176, allocations: 7.938 kB / 433 MB, free: 6.078 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001152/0.3177, allocations: 25.94 kB / 433 MB, free: 6.055 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.3177, allocations: 0 / 433 MB, free: 6.055 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.3177, allocations: 3.938 kB / 433 MB, free: 6.051 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.56e-06/0.3177, allocations: 4 kB / 433 MB, free: 6.047 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.0004114/0.3181, allocations: 290.6 kB / 433.3 MB, free: 5.73 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.977e-05/0.3181, allocations: 12.03 kB / 433.3 MB, free: 5.719 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.817e-05/0.3182, allocations: 4.891 kB / 433.3 MB, free: 5.715 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001401/0.3183, allocations: 110.5 kB / 433.4 MB, free: 5.582 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.767e-05/0.3183, allocations: 384 / 433.4 MB, free: 5.582 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.193e-05/0.3183, allocations: 4.375 kB / 433.4 MB, free: 5.578 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000147/0.3185, allocations: 87.94 kB / 433.5 MB, free: 5.48 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.105e-05/0.3185, allocations: 8.125 kB / 433.5 MB, free: 5.473 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.142e-05/0.3185, allocations: 3.938 kB / 433.5 MB, free: 5.469 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.3185, allocations: 4 kB / 433.5 MB, free: 5.465 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.01e-05/0.3186, allocations: 53.69 kB / 433.6 MB, free: 5.406 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001611/0.3188, allocations: 101.3 kB / 433.7 MB, free: 5.277 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001175/0.3189, allocations: 76.3 kB / 433.8 MB, free: 5.188 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.235e-05/0.3189, allocations: 58.62 kB / 433.8 MB, free: 5.121 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.499e-06/0.3189, allocations: 0 / 433.8 MB, free: 5.121 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.667e-05/0.319, allocations: 64.27 kB / 433.9 MB, free: 5.043 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 8.41e-07/0.319, allocations: 0 / 433.9 MB, free: 5.043 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0004276/0.3194, allocations: 246.6 kB / 434.1 MB, free: 4.777 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.492e-05/0.3195, allocations: 81.09 kB / 434.2 MB, free: 4.68 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001105/0.3196, allocations: 121.9 kB / 434.3 MB, free: 4.551 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.933e-05/0.3196, allocations: 25.7 kB / 434.3 MB, free: 4.52 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.694e-05/0.3197, allocations: 80.14 kB / 434.4 MB, free: 4.438 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.919e-05/0.3197, allocations: 11.89 kB / 434.4 MB, free: 4.426 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.705e-05/0.3197, allocations: 17.72 kB / 434.4 MB, free: 4.402 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001546/0.3199, allocations: 318.8 kB / 434.8 MB, free: 4.082 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.722e-05/0.32, allocations: 57.69 kB / 434.8 MB, free: 4.02 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.671e-05/0.32, allocations: 49.69 kB / 434.9 MB, free: 3.965 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000118/0.3202, allocations: 128.2 kB / 435 MB, free: 3.824 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.3202, allocations: 0 / 435 MB, free: 3.824 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002269/0.3204, allocations: 177.1 kB / 435.2 MB, free: 3.633 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.008e-05/0.3204, allocations: 41.75 kB / 435.2 MB, free: 3.586 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.3204, allocations: 0 / 435.2 MB, free: 3.586 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.702e-05/0.3204, allocations: 3.938 kB / 435.2 MB, free: 3.582 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.042e-06/0.3205, allocations: 3.938 kB / 435.2 MB, free: 3.578 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.649e-06/0.3205, allocations: 0 / 435.2 MB, free: 3.578 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.463e-05/0.3205, allocations: 7.953 kB / 435.2 MB, free: 3.57 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.705e-06/0.3205, allocations: 256 / 435.2 MB, free: 3.57 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.0001224/0.3206, allocations: 155.5 kB / 435.4 MB, free: 3.402 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.218e-05/0.3206, allocations: 4 kB / 435.4 MB, free: 3.398 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.955e-05/0.3206, allocations: 8 kB / 435.4 MB, free: 3.383 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.486e-06/0.3206, allocations: 8.125 kB / 435.4 MB, free: 3.375 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.3206, allocations: 0 / 435.4 MB, free: 3.375 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.548e-06/0.3207, allocations: 3.984 kB / 435.4 MB, free: 3.371 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001014/0.3208, allocations: 109.2 kB / 435.5 MB, free: 3.234 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.3208, allocations: 0 / 435.5 MB, free: 3.234 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/0.3208, allocations: 0 / 435.5 MB, free: 3.234 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.142e-06/0.3208, allocations: 3.938 kB / 435.5 MB, free: 3.23 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.012e-05/0.3208, allocations: 4 kB / 435.5 MB, free: 3.227 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.3208, allocations: 7.984 kB / 435.5 MB, free: 3.219 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.3208, allocations: 3.938 kB / 435.5 MB, free: 3.215 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000248/0.321, allocations: 220.4 kB / 435.7 MB, free: 2.969 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.972e-06/0.321, allocations: 8.031 kB / 435.7 MB, free: 2.961 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.478e-05/0.321, allocations: 0 / 435.7 MB, free: 2.961 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.127e-05/0.3211, allocations: 4 kB / 435.7 MB, free: 2.957 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.332e-05/0.3211, allocations: 3.938 kB / 435.7 MB, free: 2.953 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.785e-06/0.3211, allocations: 4 kB / 435.7 MB, free: 2.949 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.528e-05/0.3211, allocations: 91.27 kB / 435.8 MB, free: 2.859 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3211, allocations: 0 / 435.8 MB, free: 2.859 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001886/0.3213, allocations: 8 kB / 435.8 MB, free: 2.852 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.0003458/0.3217, allocations: 138.3 kB / 436 MB, free: 2.727 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002353/0.3219, allocations: 186.7 kB / 436.2 MB, free: 2.52 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.3219, allocations: 0 / 436.2 MB, free: 2.52 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.471e-05/0.322, allocations: 117.1 kB / 436.3 MB, free: 2.387 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001432/0.3221, allocations: 4 kB / 436.3 MB, free: 2.383 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003246/0.3225, allocations: 200.3 kB / 436.5 MB, free: 2.148 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.745e-05/0.3225, allocations: 63.34 kB / 436.5 MB, free: 2.066 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.538e-05/0.3225, allocations: 11.56 kB / 436.6 MB, free: 2.055 MB / 334.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3225, allocations: 7.938 kB / 436.6 MB, free: 2.047 MB / 334.1 MB Notification: Performance of Templates: time 0.002327/0.3249, allocations: 0.6852 MB / 437.2 MB, free: 1.367 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & ./Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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.974349474010523]