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.001332/0.001332, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001471/0.001471, allocations: 205.4 kB / 23.73 MB, free: 4.379 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.527/1.527, allocations: 230.6 MB / 257.5 MB, free: 7.789 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.001566/0.001566, allocations: 47.92 kB / 378.2 MB, free: 2.484 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2697/0.2712, allocations: 53.37 MB / 431.6 MB, free: 6.723 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001775/0.273, allocations: 484.6 kB / 432 MB, free: 6.254 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002909/0.2733, allocations: 67.05 kB / 432.1 MB, free: 6.191 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.392e-05/0.2733, allocations: 4 kB / 432.1 MB, free: 6.188 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.074e-05/0.2733, allocations: 0 / 432.1 MB, free: 6.188 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.746e-05/0.2734, allocations: 23.89 kB / 432.1 MB, free: 6.164 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001572/0.2736, allocations: 12 kB / 432.1 MB, free: 6.152 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.341e-05/0.2737, allocations: 19.97 kB / 432.1 MB, free: 6.133 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.415e-05/0.2737, allocations: 3.984 kB / 432.2 MB, free: 6.129 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.252e-05/0.2738, allocations: 15.94 kB / 432.2 MB, free: 6.113 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.1e-05/0.2738, allocations: 31.89 kB / 432.2 MB, free: 6.082 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.576e-05/0.2738, allocations: 0 / 432.2 MB, free: 6.082 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.279e-05/0.2739, allocations: 7.938 kB / 432.2 MB, free: 6.074 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.907e-05/0.2739, allocations: 11.92 kB / 432.2 MB, free: 6.062 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.684e-05/0.274, allocations: 12 kB / 432.2 MB, free: 6.051 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001017/0.2741, allocations: 27.56 kB / 432.3 MB, free: 6.027 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.2741, allocations: 0 / 432.3 MB, free: 6.027 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.2741, allocations: 0 / 432.3 MB, free: 6.027 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.881e-06/0.2741, allocations: 0 / 432.3 MB, free: 6.027 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.0003891/0.2745, allocations: 290.5 kB / 432.5 MB, free: 5.707 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.231e-05/0.2745, allocations: 8.031 kB / 432.5 MB, free: 5.699 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.238e-05/0.2746, allocations: 8.891 kB / 432.6 MB, free: 5.691 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001161/0.2747, allocations: 106.5 kB / 432.7 MB, free: 5.562 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.089e-05/0.2747, allocations: 4.375 kB / 432.7 MB, free: 5.559 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.405e-05/0.2747, allocations: 4.375 kB / 432.7 MB, free: 5.555 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001401/0.2748, allocations: 91.94 kB / 432.8 MB, free: 5.453 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.995e-06/0.2749, allocations: 192 / 432.8 MB, free: 5.453 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.05e-05/0.2749, allocations: 3.938 kB / 432.8 MB, free: 5.449 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.677e-06/0.2749, allocations: 0 / 432.8 MB, free: 5.449 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.311e-05/0.2749, allocations: 61.62 kB / 432.8 MB, free: 5.383 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001311/0.2751, allocations: 101.3 kB / 432.9 MB, free: 5.254 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.151e-05/0.2752, allocations: 76.31 kB / 433 MB, free: 5.164 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.623e-05/0.2752, allocations: 58.62 kB / 433.1 MB, free: 5.098 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.234e-06/0.2752, allocations: 4 kB / 433.1 MB, free: 5.094 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.016e-05/0.2753, allocations: 56.27 kB / 433.1 MB, free: 5.023 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.162e-06/0.2753, allocations: 4 kB / 433.1 MB, free: 5.02 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003595/0.2756, allocations: 250.6 kB / 433.4 MB, free: 4.75 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.66e-05/0.2757, allocations: 85.11 kB / 433.4 MB, free: 4.648 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001011/0.2758, allocations: 109.8 kB / 433.6 MB, free: 4.531 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.721e-05/0.2758, allocations: 25.7 kB / 433.6 MB, free: 4.5 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.695e-05/0.2759, allocations: 84.14 kB / 433.7 MB, free: 4.414 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.105e-05/0.2759, allocations: 7.953 kB / 433.7 MB, free: 4.406 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.957e-05/0.2759, allocations: 21.7 kB / 433.7 MB, free: 4.379 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001438/0.2761, allocations: 310.8 kB / 434 MB, free: 4.066 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.097e-05/0.2761, allocations: 57.69 kB / 434 MB, free: 4.004 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.566e-05/0.2762, allocations: 61.72 kB / 434.1 MB, free: 3.938 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001148/0.2763, allocations: 120.4 kB / 434.2 MB, free: 3.805 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.2763, allocations: 0 / 434.2 MB, free: 3.805 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002031/0.2765, allocations: 185 kB / 434.4 MB, free: 3.605 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.724e-05/0.2766, allocations: 33.7 kB / 434.4 MB, free: 3.566 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/0.2766, allocations: 256 / 434.4 MB, free: 3.566 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.122e-05/0.2766, allocations: 3.938 kB / 434.4 MB, free: 3.562 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.835e-06/0.2766, allocations: 7.938 kB / 434.5 MB, free: 3.555 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.1e-06/0.2766, allocations: 4 kB / 434.5 MB, free: 3.551 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.179e-05/0.2766, allocations: 3.953 kB / 434.5 MB, free: 3.547 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.528e-06/0.2766, allocations: 8 kB / 434.5 MB, free: 3.539 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.0001266/0.2768, allocations: 155.5 kB / 434.6 MB, free: 3.371 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.162e-05/0.2768, allocations: 0 / 434.6 MB, free: 3.371 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.133e-05/0.2768, allocations: 11.98 kB / 434.6 MB, free: 3.352 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.596e-06/0.2768, allocations: 3.938 kB / 434.6 MB, free: 3.348 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.2768, allocations: 0 / 434.6 MB, free: 3.348 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.325e-06/0.2768, allocations: 0 / 434.6 MB, free: 3.348 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001048/0.2769, allocations: 117.2 kB / 434.7 MB, free: 3.203 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.2769, allocations: 0 / 434.7 MB, free: 3.203 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.2769, allocations: 0 / 434.7 MB, free: 3.203 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.363e-06/0.2769, allocations: 0 / 434.7 MB, free: 3.203 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.989e-06/0.2769, allocations: 8 kB / 434.8 MB, free: 3.195 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.2769, allocations: 0 / 434.8 MB, free: 3.195 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.826e-06/0.2769, allocations: 3.938 kB / 434.8 MB, free: 3.191 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002436/0.2772, allocations: 228.4 kB / 435 MB, free: 2.938 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.581e-06/0.2772, allocations: 0 / 435 MB, free: 2.938 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.852e-05/0.2772, allocations: 4 kB / 435 MB, free: 2.934 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.207e-05/0.2772, allocations: 0 / 435 MB, free: 2.934 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.666e-05/0.2772, allocations: 7.938 kB / 435 MB, free: 2.926 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.677e-06/0.2772, allocations: 7.984 kB / 435 MB, free: 2.918 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.182e-05/0.2773, allocations: 83.28 kB / 435.1 MB, free: 2.836 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2773, allocations: 0 / 435.1 MB, free: 2.836 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001972/0.2775, allocations: 16.03 kB / 435.1 MB, free: 2.82 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.0003418/0.2778, allocations: 133.4 kB / 435.2 MB, free: 2.695 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002103/0.278, allocations: 182.7 kB / 435.4 MB, free: 2.492 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.468e-06/0.278, allocations: 4 kB / 435.4 MB, free: 2.488 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.21e-05/0.2781, allocations: 117.1 kB / 435.5 MB, free: 2.355 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001426/0.2783, allocations: 10.78 kB / 435.5 MB, free: 2.348 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002924/0.2786, allocations: 166.6 kB / 435.7 MB, free: 2.152 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.368e-05/0.2786, allocations: 67.34 kB / 435.8 MB, free: 2.066 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.719e-06/0.2786, allocations: 0 / 435.8 MB, free: 2.066 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.777e-05/0.2786, allocations: 7.438 kB / 435.8 MB, free: 2.059 MB / 334.1 MB Notification: Performance of SimCode: time 3.9e-07/0.2786, allocations: 0 / 435.8 MB, free: 2.059 MB / 334.1 MB Notification: Performance of Templates: time 0.003138/0.2818, allocations: 0.737 MB / 436.5 MB, free: 1.332 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.4448323752731085]