Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.001846/0.001846, allocations: 99.53 kB / 20.96 MB, free: 3.457 MB / 18.57 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.001989/0.001989, allocations: 160.8 kB / 24.27 MB, free: 156 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.546/1.546, allocations: 177 MB / 204.5 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile") translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.224e-06/2.224e-06, allocations: 0 / 272.1 MB, free: 1.852 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.391e-05/3.614e-05, allocations: 2.312 kB / 272.1 MB, free: 1.848 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.002289/0.002325, allocations: 0.4912 MB / 272.6 MB, free: 1.355 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003441/0.002669, allocations: 59.81 kB / 272.7 MB, free: 1.297 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.169e-05/0.002711, allocations: 0 / 272.7 MB, free: 1.297 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 5.392e-05/0.002765, allocations: 0 / 272.7 MB, free: 1.297 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001019/0.002867, allocations: 19.91 kB / 272.7 MB, free: 1.277 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001819/0.003049, allocations: 19.92 kB / 272.7 MB, free: 1.258 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000101/0.00315, allocations: 19.97 kB / 272.8 MB, free: 1.238 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.491e-05/0.003195, allocations: 7.984 kB / 272.8 MB, free: 1.23 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.584e-05/0.003271, allocations: 19.92 kB / 272.8 MB, free: 1.211 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001012/0.003372, allocations: 23.97 kB / 272.8 MB, free: 1.188 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.957e-05/0.003391, allocations: 0 / 272.8 MB, free: 1.188 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.17e-05/0.003443, allocations: 4 kB / 272.8 MB, free: 1.184 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.299e-05/0.003496, allocations: 7.984 kB / 272.8 MB, free: 1.176 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.412e-05/0.00354, allocations: 11.94 kB / 272.8 MB, free: 1.164 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001323/0.003673, allocations: 23.92 kB / 272.9 MB, free: 1.141 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.565e-06/0.003675, allocations: 0 / 272.9 MB, free: 1.141 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.02e-07/0.003676, allocations: 0 / 272.9 MB, free: 1.141 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.749e-06/0.003681, allocations: 4 kB / 272.9 MB, free: 1.137 MB / 250.7 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.0006401/0.004321, allocations: 393.9 kB / 273.2 MB, free: 0.707 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.093e-05/0.004372, allocations: 11.98 kB / 273.3 MB, free: 0.6953 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.807e-05/0.00445, allocations: 8.891 kB / 273.3 MB, free: 0.6875 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001774/0.004627, allocations: 116.6 kB / 273.4 MB, free: 0.5469 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.8e-05/0.004645, allocations: 384 / 273.4 MB, free: 0.5469 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.647e-05/0.004662, allocations: 4.375 kB / 273.4 MB, free: 0.543 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001699/0.004832, allocations: 67.94 kB / 273.4 MB, free: 476 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.004843, allocations: 192 / 273.4 MB, free: 476 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.089e-05/0.004854, allocations: 384 / 273.4 MB, free: 476 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/0.00486, allocations: 384 / 273.4 MB, free: 476 kB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.311e-05/0.004943, allocations: 49.58 kB / 273.5 MB, free: 420 kB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002294/0.005172, allocations: 116.7 kB / 273.6 MB, free: 268 kB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001332/0.005305, allocations: 60.77 kB / 273.7 MB, free: 188 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.784e-05/0.005393, allocations: 49.45 kB / 273.7 MB, free: 128 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.282e-05/0.005406, allocations: 0 / 273.7 MB, free: 128 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.924e-05/0.005495, allocations: 63.09 kB / 273.8 MB, free: 48 kB / 250.7 MB Notification: Performance of pre-optimization done (n=4): time 1.302e-06/0.005497, allocations: 0 / 273.8 MB, free: 48 kB / 250.7 MB Notification: Performance of matching and sorting (n=4): time 0.0004815/0.005978, allocations: 162.7 kB / 273.9 MB, free: 15.86 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.924e-05/0.006077, allocations: 85.05 kB / 274 MB, free: 15.76 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002211/0.006298, allocations: 177.9 kB / 274.2 MB, free: 15.57 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.917e-05/0.006328, allocations: 29.73 kB / 274.2 MB, free: 15.54 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003746/0.006702, allocations: 134.9 kB / 274.4 MB, free: 15.4 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.279e-05/0.006735, allocations: 7.891 kB / 274.4 MB, free: 15.39 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.189e-05/0.006817, allocations: 27.36 kB / 274.4 MB, free: 15.36 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0004019/0.007219, allocations: 496.1 kB / 274.9 MB, free: 14.86 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.406e-05/0.007283, allocations: 33.7 kB / 274.9 MB, free: 14.82 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.357e-05/0.007346, allocations: 37.69 kB / 274.9 MB, free: 14.78 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001426/0.007489, allocations: 75.09 kB / 275 MB, free: 14.69 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.007492, allocations: 4 kB / 275 MB, free: 14.68 MB / 266.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.00026/0.007752, allocations: 121 kB / 275.1 MB, free: 14.55 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.247e-05/0.007815, allocations: 33.7 kB / 275.2 MB, free: 14.51 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.00782, allocations: 4.062 kB / 275.2 MB, free: 14.5 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.864e-05/0.007838, allocations: 0 / 275.2 MB, free: 14.5 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.443e-06/0.00784, allocations: 4 kB / 275.2 MB, free: 14.5 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.184e-05/0.007852, allocations: 3.984 kB / 275.2 MB, free: 14.5 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.295e-05/0.007885, allocations: 3.938 kB / 275.2 MB, free: 14.49 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.425e-05/0.007899, allocations: 4 kB / 275.2 MB, free: 14.49 MB / 266.7 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.0002203/0.008119, allocations: 182.3 kB / 275.4 MB, free: 14.29 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.227e-05/0.008152, allocations: 7.953 kB / 275.4 MB, free: 14.29 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.412e-05/0.008176, allocations: 11.98 kB / 275.4 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.993e-06/0.008178, allocations: 0 / 275.4 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.008182, allocations: 4 kB / 275.4 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.755e-06/0.00819, allocations: 3.938 kB / 275.4 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001865/0.008376, allocations: 120.6 kB / 275.5 MB, free: 14.11 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.008378, allocations: 0 / 275.5 MB, free: 14.11 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.82e-07/0.008378, allocations: 0 / 275.5 MB, free: 14.11 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.00838, allocations: 0 / 275.5 MB, free: 14.11 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.887e-05/0.008399, allocations: 8 kB / 275.5 MB, free: 14.11 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.694e-06/0.008401, allocations: 3.938 kB / 275.5 MB, free: 14.1 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.008402, allocations: 192 / 275.5 MB, free: 14.1 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003723/0.008775, allocations: 179.7 kB / 275.7 MB, free: 13.89 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.393e-05/0.008788, allocations: 4 kB / 275.7 MB, free: 13.89 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.767e-05/0.008816, allocations: 8.031 kB / 275.7 MB, free: 13.88 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.673e-05/0.008843, allocations: 4 kB / 275.7 MB, free: 13.88 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.178e-05/0.008865, allocations: 3.938 kB / 275.7 MB, free: 13.87 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.285e-05/0.008878, allocations: 4.234 kB / 275.7 MB, free: 13.87 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001209/0.008998, allocations: 131.2 kB / 275.9 MB, free: 13.74 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.008999, allocations: 0 / 275.9 MB, free: 13.74 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003697/0.009368, allocations: 11.94 kB / 275.9 MB, free: 13.73 MB / 266.7 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.0006682/0.01004, allocations: 140.1 kB / 276 MB, free: 13.59 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003168/0.01035, allocations: 146.4 kB / 276.1 MB, free: 13.42 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.01036, allocations: 0 / 276.1 MB, free: 13.42 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001761/0.01053, allocations: 112.8 kB / 276.3 MB, free: 13.29 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000257/0.01079, allocations: 10.75 kB / 276.3 MB, free: 13.28 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004441/0.01123, allocations: 151.9 kB / 276.4 MB, free: 13.09 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001071/0.01134, allocations: 67.25 kB / 276.5 MB, free: 13.01 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.344e-06/0.01135, allocations: 0 / 276.5 MB, free: 13.01 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.199e-05/0.01137, allocations: 16.62 kB / 276.5 MB, free: 12.99 MB / 266.7 MB Notification: Performance of SimCode: time 5.51e-07/0.01137, allocations: 0 / 276.5 MB, free: 12.99 MB / 266.7 MB Notification: Performance of Templates: time 0.005617/0.01699, allocations: 0.6804 MB / 277.2 MB, free: 12.32 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & ./Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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_trunk_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.350527910981327]