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.001408/0.001408, allocations: 79.73 kB / 21.25 MB, free: 396 kB / 14.72 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.00149/0.00149, allocations: 160.6 kB / 24.49 MB, free: 3.453 MB / 14.72 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.421/1.421, allocations: 177.1 MB / 204.7 MB, free: 8.898 MB / 190.1 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 0.002004/0.002004, allocations: 61.83 kB / 325.5 MB, free: 216 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09249/0.09449, allocations: 53.38 MB / 378.9 MB, free: 15.52 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.00183/0.09632, allocations: 0.4908 MB / 379.4 MB, free: 15.03 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003335/0.09666, allocations: 59.8 kB / 379.4 MB, free: 14.97 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.349e-05/0.09669, allocations: 0 / 379.4 MB, free: 14.97 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.876e-05/0.09673, allocations: 0 / 379.4 MB, free: 14.97 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.168e-05/0.09681, allocations: 15.98 kB / 379.4 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001748/0.09699, allocations: 23.91 kB / 379.5 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.631e-05/0.09708, allocations: 19.98 kB / 379.5 MB, free: 14.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.32e-05/0.09713, allocations: 416 / 379.5 MB, free: 14.91 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.84e-05/0.09716, allocations: 19.91 kB / 379.5 MB, free: 14.89 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.924e-05/0.09724, allocations: 23.97 kB / 379.5 MB, free: 14.87 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.714e-05/0.09726, allocations: 0 / 379.5 MB, free: 14.87 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.089e-05/0.09731, allocations: 8 kB / 379.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.011e-05/0.09736, allocations: 11.92 kB / 379.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.33e-05/0.0974, allocations: 4 kB / 379.6 MB, free: 14.85 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001326/0.09753, allocations: 31.86 kB / 379.6 MB, free: 14.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.09753, allocations: 0 / 379.6 MB, free: 14.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.09753, allocations: 0 / 379.6 MB, free: 14.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.147e-06/0.09754, allocations: 0 / 379.6 MB, free: 14.82 MB / 350.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.0004857/0.09803, allocations: 284 kB / 379.9 MB, free: 14.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.752e-05/0.09808, allocations: 23.91 kB / 379.9 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.805e-05/0.09811, allocations: 4.891 kB / 379.9 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001198/0.09823, allocations: 122.5 kB / 380 MB, free: 14.33 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.348e-06/0.09824, allocations: 384 / 380 MB, free: 14.33 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.481e-05/0.09826, allocations: 4.375 kB / 380 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001527/0.09841, allocations: 83.94 kB / 380.1 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.908e-06/0.09842, allocations: 8.188 kB / 380.1 MB, free: 14.22 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.017e-05/0.09843, allocations: 3.938 kB / 380.1 MB, free: 14.22 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.808e-06/0.09844, allocations: 0 / 380.1 MB, free: 14.22 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.146e-05/0.0985, allocations: 57.69 kB / 380.2 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000139/0.09864, allocations: 109.2 kB / 380.3 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.431e-05/0.09873, allocations: 76.28 kB / 380.3 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.106e-05/0.09879, allocations: 62.58 kB / 380.4 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.43e-06/0.0988, allocations: 0 / 380.4 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.989e-05/0.09886, allocations: 60.27 kB / 380.5 MB, free: 13.79 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 1.092e-06/0.09886, allocations: 0 / 380.5 MB, free: 13.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003535/0.09921, allocations: 250.6 kB / 380.7 MB, free: 13.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.143e-05/0.09927, allocations: 81.09 kB / 380.8 MB, free: 13.42 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001147/0.09939, allocations: 113.8 kB / 380.9 MB, free: 13.3 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.712e-05/0.0994, allocations: 25.7 kB / 380.9 MB, free: 13.27 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.898e-05/0.09945, allocations: 92.02 kB / 381 MB, free: 13.17 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.247e-05/0.09948, allocations: 7.953 kB / 381 MB, free: 13.16 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.463e-05/0.09951, allocations: 13.72 kB / 381 MB, free: 13.14 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001555/0.09967, allocations: 322.8 kB / 381.4 MB, free: 12.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.208e-05/0.09972, allocations: 53.69 kB / 381.4 MB, free: 12.76 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.755e-05/0.09977, allocations: 53.69 kB / 381.5 MB, free: 12.7 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001139/0.09988, allocations: 120.2 kB / 381.6 MB, free: 12.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.09988, allocations: 4.062 kB / 381.6 MB, free: 12.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001921/0.1001, allocations: 177.3 kB / 381.8 MB, free: 12.38 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.897e-05/0.1001, allocations: 37.69 kB / 381.8 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.767e-06/0.1001, allocations: 0 / 381.8 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.691e-05/0.1001, allocations: 7.938 kB / 381.8 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.31e-07/0.1001, allocations: 0 / 381.8 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.867e-06/0.1001, allocations: 3.938 kB / 381.8 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.222e-05/0.1002, allocations: 7.953 kB / 381.8 MB, free: 12.31 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.117e-06/0.1002, allocations: 4 kB / 381.8 MB, free: 12.31 MB / 350.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.0001102/0.1003, allocations: 147.5 kB / 382 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.296e-05/0.1003, allocations: 8.031 kB / 382 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.805e-05/0.1003, allocations: 8 kB / 382 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.1003, allocations: 3.938 kB / 382 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.996e-06/0.1003, allocations: 0 / 382 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.593e-06/0.1003, allocations: 0 / 382 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.872e-05/0.1004, allocations: 109.3 kB / 382.1 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.1004, allocations: 0 / 382.1 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.21e-07/0.1004, allocations: 0 / 382.1 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.293e-06/0.1004, allocations: 0 / 382.1 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.148e-05/0.1004, allocations: 4 kB / 382.1 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.1004, allocations: 0 / 382.1 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.1004, allocations: 7.938 kB / 382.1 MB, free: 11.97 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002388/0.1007, allocations: 224.4 kB / 382.3 MB, free: 11.72 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.605e-06/0.1007, allocations: 7.984 kB / 382.3 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.33e-05/0.1007, allocations: 0 / 382.3 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.195e-05/0.1007, allocations: 7.938 kB / 382.3 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.23e-05/0.1007, allocations: 4.125 kB / 382.3 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.281e-06/0.1007, allocations: 4 kB / 382.3 MB, free: 11.7 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.408e-05/0.1008, allocations: 91.27 kB / 382.4 MB, free: 11.61 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1008, allocations: 0 / 382.4 MB, free: 11.61 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001944/0.101, allocations: 11.94 kB / 382.4 MB, free: 11.6 MB / 350.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.0003423/0.1013, allocations: 136.6 kB / 382.6 MB, free: 11.47 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002173/0.1015, allocations: 178.8 kB / 382.7 MB, free: 11.27 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1015, allocations: 0 / 382.7 MB, free: 11.27 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001113/0.1016, allocations: 117.1 kB / 382.9 MB, free: 11.14 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001465/0.1018, allocations: 11.17 kB / 382.9 MB, free: 11.13 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000295/0.1021, allocations: 172.9 kB / 383 MB, free: 10.93 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.82e-05/0.1021, allocations: 75.27 kB / 383.1 MB, free: 10.84 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.072e-06/0.1022, allocations: 0 / 383.1 MB, free: 10.84 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.365e-05/0.1022, allocations: 8.5 kB / 383.1 MB, free: 10.83 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1022, allocations: 0 / 383.1 MB, free: 10.83 MB / 350.1 MB Notification: Performance of Templates: time 0.00304/0.1052, allocations: 0.6962 MB / 383.8 MB, free: 10.14 MB / 350.1 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=480 -s ida -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_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.095400812919252]