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.001638/0.001638, allocations: 115.9 kB / 20.43 MB, free: 1.449 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.001681/0.001681, allocations: 213.4 kB / 23.74 MB, free: 4.656 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.535/1.535, allocations: 230.6 MB / 257.5 MB, free: 8.023 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.001628/0.001628, allocations: 47.92 kB / 378.2 MB, free: 2.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3032/0.3049, allocations: 53.36 MB / 431.6 MB, free: 6.938 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001681/0.3065, allocations: 488.7 kB / 432.1 MB, free: 6.465 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002608/0.3068, allocations: 63.78 kB / 432.1 MB, free: 6.402 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.928e-05/0.3068, allocations: 0 / 432.1 MB, free: 6.402 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.102e-05/0.3069, allocations: 0 / 432.1 MB, free: 6.402 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.073e-05/0.3069, allocations: 15.97 kB / 432.2 MB, free: 6.387 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001508/0.3071, allocations: 19.92 kB / 432.2 MB, free: 6.367 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.633e-05/0.3072, allocations: 19.98 kB / 432.2 MB, free: 6.348 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.94e-05/0.3072, allocations: 3.984 kB / 432.2 MB, free: 6.344 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.586e-05/0.3073, allocations: 15.98 kB / 432.2 MB, free: 6.328 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.503e-05/0.3073, allocations: 27.91 kB / 432.2 MB, free: 6.301 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.761e-05/0.3074, allocations: 0 / 432.2 MB, free: 6.301 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.162e-05/0.3074, allocations: 7.984 kB / 432.2 MB, free: 6.293 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.843e-05/0.3074, allocations: 7.125 kB / 432.3 MB, free: 6.289 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.69e-05/0.3075, allocations: 15.92 kB / 432.3 MB, free: 6.273 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 9.413e-05/0.3076, allocations: 23.91 kB / 432.3 MB, free: 6.25 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.3076, allocations: 0 / 432.3 MB, free: 6.25 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.3076, allocations: 0 / 432.3 MB, free: 6.25 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.159e-06/0.3076, allocations: 3.938 kB / 432.3 MB, free: 6.246 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.0003669/0.3079, allocations: 297.2 kB / 432.6 MB, free: 5.922 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.291e-05/0.308, allocations: 8.031 kB / 432.6 MB, free: 5.914 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.594e-05/0.308, allocations: 4.891 kB / 432.6 MB, free: 5.91 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001083/0.3081, allocations: 118.5 kB / 432.7 MB, free: 5.77 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.66e-05/0.3081, allocations: 384 / 432.7 MB, free: 5.77 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.244e-05/0.3081, allocations: 4.375 kB / 432.7 MB, free: 5.766 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001206/0.3083, allocations: 58.23 kB / 432.8 MB, free: 5.703 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.833e-06/0.3083, allocations: 4.125 kB / 432.8 MB, free: 5.699 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.52e-05/0.3083, allocations: 3.938 kB / 432.8 MB, free: 5.695 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.699e-06/0.3083, allocations: 4 kB / 432.8 MB, free: 5.691 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.128e-05/0.3083, allocations: 27.98 kB / 432.8 MB, free: 5.664 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001464/0.3085, allocations: 124.8 kB / 432.9 MB, free: 5.5 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.534e-05/0.3086, allocations: 50.5 kB / 433 MB, free: 5.441 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.255e-05/0.3086, allocations: 32.92 kB / 433 MB, free: 5.406 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.873e-06/0.3086, allocations: 0 / 433 MB, free: 5.406 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.814e-05/0.3087, allocations: 56.27 kB / 433.1 MB, free: 5.336 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 8.82e-07/0.3087, allocations: 4 kB / 433.1 MB, free: 5.332 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002957/0.309, allocations: 195.2 kB / 433.3 MB, free: 5.129 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.679e-05/0.309, allocations: 77.11 kB / 433.3 MB, free: 5.035 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001048/0.3091, allocations: 113.8 kB / 433.5 MB, free: 4.914 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.782e-05/0.3091, allocations: 29.7 kB / 433.5 MB, free: 4.879 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.517e-05/0.3092, allocations: 80.14 kB / 433.6 MB, free: 4.797 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.673e-05/0.3092, allocations: 3.953 kB / 433.6 MB, free: 4.793 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.902e-05/0.3092, allocations: 25.7 kB / 433.6 MB, free: 4.762 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001399/0.3094, allocations: 314.9 kB / 433.9 MB, free: 4.445 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.012e-05/0.3094, allocations: 32.23 kB / 433.9 MB, free: 4.414 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.036e-05/0.3095, allocations: 23.98 kB / 434 MB, free: 4.391 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001125/0.3096, allocations: 120.2 kB / 434.1 MB, free: 4.258 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.3096, allocations: 0 / 434.1 MB, free: 4.258 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001749/0.3097, allocations: 159.3 kB / 434.2 MB, free: 4.09 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.363e-05/0.3098, allocations: 29.7 kB / 434.3 MB, free: 4.055 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.127e-05/0.3098, allocations: 7.922 kB / 434.3 MB, free: 4.047 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.137e-05/0.3098, allocations: 0 / 434.3 MB, free: 4.047 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.02e-07/0.3098, allocations: 8.062 kB / 434.3 MB, free: 4.039 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.248e-06/0.3098, allocations: 0 / 434.3 MB, free: 4.039 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.219e-05/0.3098, allocations: 3.953 kB / 434.3 MB, free: 4.035 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.997e-06/0.3098, allocations: 4 kB / 434.3 MB, free: 4.031 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.0001034/0.3099, allocations: 147.5 kB / 434.4 MB, free: 3.871 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.035e-05/0.3099, allocations: 0 / 434.4 MB, free: 3.871 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.866e-05/0.31, allocations: 15.94 kB / 434.4 MB, free: 3.848 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.382e-06/0.31, allocations: 0 / 434.4 MB, free: 3.848 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.31, allocations: 3.938 kB / 434.4 MB, free: 3.844 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.345e-06/0.31, allocations: 192 / 434.4 MB, free: 3.844 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001092/0.3101, allocations: 136.6 kB / 434.6 MB, free: 3.668 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/0.3101, allocations: 7.969 kB / 434.6 MB, free: 3.66 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.41e-07/0.3101, allocations: 0 / 434.6 MB, free: 3.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.3101, allocations: 0 / 434.6 MB, free: 3.66 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.244e-05/0.3101, allocations: 11.94 kB / 434.6 MB, free: 3.648 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.3101, allocations: 0 / 434.6 MB, free: 3.648 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.3101, allocations: 0 / 434.6 MB, free: 3.648 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002239/0.3103, allocations: 202.7 kB / 434.8 MB, free: 3.426 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.092e-06/0.3103, allocations: 4.031 kB / 434.8 MB, free: 3.422 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.656e-05/0.3104, allocations: 3.938 kB / 434.8 MB, free: 3.418 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.324e-05/0.3104, allocations: 4 kB / 434.8 MB, free: 3.414 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.818e-06/0.3104, allocations: 0 / 434.8 MB, free: 3.414 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.643e-06/0.3104, allocations: 4 kB / 434.8 MB, free: 3.41 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.925e-05/0.3104, allocations: 95.27 kB / 434.9 MB, free: 3.316 MB / 334.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.3104, allocations: 0 / 434.9 MB, free: 3.316 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001964/0.3106, allocations: 8 kB / 434.9 MB, free: 3.309 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.0002987/0.3109, allocations: 127.7 kB / 435 MB, free: 3.191 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001719/0.3111, allocations: 123.4 kB / 435.2 MB, free: 3.059 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.3111, allocations: 0 / 435.2 MB, free: 3.059 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.227e-05/0.3112, allocations: 91.33 kB / 435.2 MB, free: 2.957 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001344/0.3113, allocations: 6.656 kB / 435.2 MB, free: 2.953 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002664/0.3116, allocations: 145 kB / 435.4 MB, free: 2.785 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003144/0.3119, allocations: 0.6807 MB / 436.1 MB, free: 2.078 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.799e-06/0.3119, allocations: 0 / 436.1 MB, free: 2.078 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.387e-05/0.3119, allocations: 7.438 kB / 436.1 MB, free: 2.07 MB / 334.1 MB Notification: Performance of SimCode: time 3.7e-07/0.3119, allocations: 0 / 436.1 MB, free: 2.07 MB / 334.1 MB Notification: Performance of Templates: time 0.003124/0.3151, allocations: 0.7014 MB / 436.8 MB, free: 1.375 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/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_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.5106745711527765]