Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001451/0.001451, allocations: 87.92 kB / 20.78 MB, free: 0.5977 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001447/0.001447, allocations: 147.1 kB / 24.05 MB, free: 3.586 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.436/1.436, allocations: 173.3 MB / 200.6 MB, free: 12.84 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.763e-06/1.763e-06, allocations: 0 / 319.1 MB, free: 3.574 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.85e-05/3.027e-05, allocations: 2.281 kB / 319.1 MB, free: 3.57 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001352/0.001382, allocations: 489.1 kB / 319.5 MB, free: 3.281 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002369/0.001619, allocations: 59.66 kB / 319.6 MB, free: 3.246 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.169e-05/0.001651, allocations: 0 / 319.6 MB, free: 3.246 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.535e-05/0.001686, allocations: 0.5156 kB / 319.6 MB, free: 3.246 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 9.268e-05/0.001779, allocations: 13.16 kB / 319.6 MB, free: 3.246 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001547/0.001934, allocations: 22.38 kB / 319.6 MB, free: 3.234 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000109/0.002043, allocations: 24.3 kB / 319.7 MB, free: 3.227 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.962e-05/0.002092, allocations: 10.42 kB / 319.7 MB, free: 3.219 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.95e-05/0.002142, allocations: 15.7 kB / 319.7 MB, free: 3.215 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.693e-05/0.002239, allocations: 22.83 kB / 319.7 MB, free: 3.215 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.024e-05/0.002259, allocations: 0 / 319.7 MB, free: 3.215 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.071e-05/0.00231, allocations: 9.766 kB / 319.7 MB, free: 3.211 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.854e-05/0.002358, allocations: 4.125 kB / 319.7 MB, free: 3.211 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.319e-05/0.002391, allocations: 12.2 kB / 319.7 MB, free: 3.203 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000125/0.002516, allocations: 26.2 kB / 319.8 MB, free: 3.195 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.00252, allocations: 0.75 kB / 319.8 MB, free: 3.195 MB / 286.1 MB Notification: Performance of FrontEnd: time 5.71e-07/0.00252, allocations: 0 / 319.8 MB, free: 3.195 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.002e-05/0.00253, allocations: 4 kB / 319.8 MB, free: 3.191 MB / 286.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.0003479/0.002878, allocations: 294.2 kB / 320.1 MB, free: 2.883 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.433e-05/0.002923, allocations: 10.77 kB / 320.1 MB, free: 2.883 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.802e-05/0.002961, allocations: 2.188 kB / 320.1 MB, free: 2.883 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.456e-05/0.003045, allocations: 122 kB / 320.2 MB, free: 2.742 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.525e-05/0.00306, allocations: 1.531 kB / 320.2 MB, free: 2.742 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.396e-05/0.003074, allocations: 1.625 kB / 320.2 MB, free: 2.742 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001359/0.00321, allocations: 91.05 kB / 320.3 MB, free: 2.676 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.358e-06/0.00322, allocations: 192 / 320.3 MB, free: 2.676 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.056e-05/0.00323, allocations: 1.219 kB / 320.3 MB, free: 2.676 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.857e-06/0.003234, allocations: 4.375 kB / 320.3 MB, free: 2.672 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.684e-05/0.003291, allocations: 58.92 kB / 320.3 MB, free: 2.637 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001072/0.003398, allocations: 105.3 kB / 320.4 MB, free: 2.512 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.07e-05/0.003489, allocations: 71.72 kB / 320.5 MB, free: 2.453 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.625e-05/0.003545, allocations: 62.66 kB / 320.6 MB, free: 2.41 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.197e-05/0.003557, allocations: 1.969 kB / 320.6 MB, free: 2.41 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.452e-05/0.003592, allocations: 62.23 kB / 320.6 MB, free: 2.336 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 9.72e-07/0.003593, allocations: 1.438 kB / 320.6 MB, free: 2.336 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.00035/0.003943, allocations: 240.3 kB / 320.9 MB, free: 2.199 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.193e-05/0.003984, allocations: 79.56 kB / 321 MB, free: 2.105 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.543e-05/0.00408, allocations: 127.2 kB / 321.1 MB, free: 1.988 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.335e-05/0.004093, allocations: 27.02 kB / 321.1 MB, free: 1.957 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.052e-05/0.004124, allocations: 85.95 kB / 321.2 MB, free: 1.871 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.48e-05/0.004149, allocations: 9.844 kB / 321.2 MB, free: 1.863 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.471e-05/0.004183, allocations: 16.75 kB / 321.2 MB, free: 1.848 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 5.658e-05/0.00424, allocations: 319.1 kB / 321.5 MB, free: 1.531 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.31e-05/0.004293, allocations: 53.27 kB / 321.6 MB, free: 1.5 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.325e-05/0.004336, allocations: 57.16 kB / 321.6 MB, free: 1.465 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001114/0.004448, allocations: 121.2 kB / 321.8 MB, free: 1.387 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.004451, allocations: 0.6562 kB / 321.8 MB, free: 1.387 MB / 286.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001961/0.004647, allocations: 179.6 kB / 321.9 MB, free: 1.285 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.486e-05/0.004682, allocations: 42.69 kB / 322 MB, free: 1.246 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.698e-06/0.004686, allocations: 1.062 kB / 322 MB, free: 1.246 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.807e-05/0.004704, allocations: 0 / 322 MB, free: 1.246 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.824e-06/0.004706, allocations: 5.031 kB / 322 MB, free: 1.242 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.74e-06/0.004712, allocations: 0.9844 kB / 322 MB, free: 1.242 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.236e-05/0.004734, allocations: 6.156 kB / 322 MB, free: 1.238 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.578e-06/0.004744, allocations: 2.156 kB / 322 MB, free: 1.238 MB / 286.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 7.961e-05/0.004823, allocations: 143.3 kB / 322.1 MB, free: 1.094 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.53e-05/0.004839, allocations: 7.703 kB / 322.1 MB, free: 1.09 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.75e-05/0.004856, allocations: 7.578 kB / 322.1 MB, free: 1.078 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.312e-06/0.004858, allocations: 4 kB / 322.1 MB, free: 1.074 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.004863, allocations: 0 / 322.1 MB, free: 1.074 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.004866, allocations: 3.938 kB / 322.1 MB, free: 1.07 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.906e-05/0.004935, allocations: 107.7 kB / 322.3 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.004938, allocations: 5.406 kB / 322.3 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.573e-06/0.00494, allocations: 0.5625 kB / 322.3 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.72e-07/0.004941, allocations: 0 / 322.3 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.42e-05/0.004955, allocations: 3.344 kB / 322.3 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.004956, allocations: 0 / 322.3 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.004959, allocations: 0.7031 kB / 322.3 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002157/0.005174, allocations: 224.5 kB / 322.5 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.247e-06/0.005183, allocations: 21.28 kB / 322.5 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.722e-05/0.005201, allocations: 2.562 kB / 322.5 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.429e-05/0.005215, allocations: 2.891 kB / 322.5 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.733e-05/0.005232, allocations: 0 / 322.5 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.521e-06/0.005238, allocations: 3.094 kB / 322.5 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of sorting global known variables: time 3.629e-05/0.005274, allocations: 87.41 kB / 322.6 MB, free: 0.707 MB / 286.1 MB Notification: Performance of sort global known variables: time 8e-08/0.005274, allocations: 0 / 322.6 MB, free: 0.707 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0001975/0.005472, allocations: 17.34 kB / 322.6 MB, free: 0.6992 MB / 286.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.0003133/0.005785, allocations: 140.7 kB / 322.8 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001891/0.005974, allocations: 179.2 kB / 322.9 MB, free: 472 kB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.005976, allocations: 0 / 322.9 MB, free: 472 kB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 7.387e-05/0.00605, allocations: 112.7 kB / 323 MB, free: 376 kB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001455/0.006195, allocations: 8 kB / 323 MB, free: 372 kB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002891/0.006484, allocations: 175.2 kB / 323.2 MB, free: 220 kB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.673e-05/0.006551, allocations: 63.84 kB / 323.3 MB, free: 148 kB / 286.1 MB Notification: Performance of simCode: alias equations: time 5.751e-06/0.006557, allocations: 5.062 kB / 323.3 MB, free: 144 kB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.229e-05/0.006569, allocations: 8.5 kB / 323.3 MB, free: 132 kB / 286.1 MB Notification: Performance of SimCode: time 3.81e-07/0.006569, allocations: 0 / 323.3 MB, free: 132 kB / 286.1 MB Notification: Performance of Templates: time 0.003442/0.01001, allocations: 0.6816 MB / 324 MB, free: 12 kB / 286.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & ./Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.252196043729782]