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.001553/0.001553, allocations: 115.1 kB / 18.45 MB, free: 4.566 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.001721/0.001721, allocations: 215.2 kB / 21.42 MB, free: 1.605 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.515/1.515, allocations: 230.6 MB / 254.8 MB, free: 15.23 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.001674/0.001674, allocations: 51.92 kB / 374.1 MB, free: 9.742 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09877/0.1004, allocations: 53.34 MB / 427.5 MB, free: 4.316 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001749/0.1022, allocations: 477.2 kB / 427.9 MB, free: 3.852 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003051/0.1025, allocations: 71.77 kB / 428 MB, free: 3.781 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.065e-05/0.1025, allocations: 0 / 428 MB, free: 3.781 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.711e-05/0.1026, allocations: 0 / 428 MB, free: 3.781 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.033e-05/0.1026, allocations: 15.98 kB / 428 MB, free: 3.766 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00016/0.1028, allocations: 23.91 kB / 428 MB, free: 3.742 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.311e-05/0.1029, allocations: 19.92 kB / 428.1 MB, free: 3.723 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.69e-05/0.1029, allocations: 8 kB / 428.1 MB, free: 3.715 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.283e-05/0.103, allocations: 15.97 kB / 428.1 MB, free: 3.699 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.421e-05/0.103, allocations: 15.98 kB / 428.1 MB, free: 3.684 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.474e-05/0.103, allocations: 4 kB / 428.1 MB, free: 3.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.287e-05/0.1031, allocations: 15.92 kB / 428.1 MB, free: 3.664 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.684e-05/0.1031, allocations: 4 kB / 428.1 MB, free: 3.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.682e-05/0.1032, allocations: 15.92 kB / 428.1 MB, free: 3.645 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.674e-05/0.1033, allocations: 19.92 kB / 428.2 MB, free: 3.625 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.1033, allocations: 0 / 428.2 MB, free: 3.625 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.1033, allocations: 3.938 kB / 428.2 MB, free: 3.621 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.639e-06/0.1033, allocations: 0 / 428.2 MB, free: 3.621 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.0004304/0.1037, allocations: 365 kB / 428.5 MB, free: 3.207 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.794e-05/0.1037, allocations: 11.97 kB / 428.5 MB, free: 3.195 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.372e-05/0.1038, allocations: 12.89 kB / 428.5 MB, free: 3.184 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001515/0.1039, allocations: 172.4 kB / 428.7 MB, free: 2.977 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.346e-05/0.1039, allocations: 384 / 428.7 MB, free: 2.977 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.398e-06/0.104, allocations: 4.375 kB / 428.7 MB, free: 2.973 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001255/0.1041, allocations: 58.25 kB / 428.8 MB, free: 2.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.1041, allocations: 192 / 428.8 MB, free: 2.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.324e-05/0.1041, allocations: 7.922 kB / 428.8 MB, free: 2.902 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.907e-06/0.1041, allocations: 4 kB / 428.8 MB, free: 2.898 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.137e-05/0.1042, allocations: 20 kB / 428.8 MB, free: 2.879 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001686/0.1043, allocations: 153.7 kB / 428.9 MB, free: 2.68 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.236e-05/0.1044, allocations: 50.55 kB / 429 MB, free: 2.621 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.66e-05/0.1044, allocations: 36.92 kB / 429 MB, free: 2.582 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.887e-06/0.1045, allocations: 0 / 429 MB, free: 2.582 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.108e-05/0.1045, allocations: 60.25 kB / 429.1 MB, free: 2.508 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 8.52e-07/0.1045, allocations: 0 / 429.1 MB, free: 2.508 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003295/0.1048, allocations: 195.2 kB / 429.3 MB, free: 2.305 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.797e-05/0.1049, allocations: 81.05 kB / 429.4 MB, free: 2.207 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001187/0.105, allocations: 113.9 kB / 429.5 MB, free: 2.086 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.02e-05/0.105, allocations: 29.7 kB / 429.5 MB, free: 2.051 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.485e-05/0.1051, allocations: 84.14 kB / 429.6 MB, free: 1.965 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.14e-05/0.1051, allocations: 7.891 kB / 429.6 MB, free: 1.957 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.408e-05/0.1051, allocations: 25.7 kB / 429.6 MB, free: 1.926 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001528/0.1053, allocations: 310.8 kB / 429.9 MB, free: 1.613 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.362e-05/0.1053, allocations: 27.98 kB / 429.9 MB, free: 1.586 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.638e-05/0.1054, allocations: 23.98 kB / 430 MB, free: 1.562 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001244/0.1055, allocations: 124.3 kB / 430.1 MB, free: 1.426 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.1055, allocations: 0 / 430.1 MB, free: 1.426 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001805/0.1057, allocations: 155.3 kB / 430.2 MB, free: 1.262 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.988e-05/0.1057, allocations: 29.7 kB / 430.3 MB, free: 1.227 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.234e-06/0.1057, allocations: 3.938 kB / 430.3 MB, free: 1.223 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.466e-05/0.1057, allocations: 0 / 430.3 MB, free: 1.223 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.012e-06/0.1057, allocations: 4 kB / 430.3 MB, free: 1.219 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.91e-06/0.1057, allocations: 0 / 430.3 MB, free: 1.219 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.251e-05/0.1058, allocations: 3.953 kB / 430.3 MB, free: 1.215 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.47e-05/0.1058, allocations: 11.98 kB / 430.3 MB, free: 1.203 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.0001231/0.1059, allocations: 143.6 kB / 430.4 MB, free: 1.047 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.266e-05/0.1059, allocations: 0 / 430.4 MB, free: 1.047 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.395e-05/0.106, allocations: 16.02 kB / 430.5 MB, free: 1.02 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.106, allocations: 7.922 kB / 430.5 MB, free: 1.012 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.106, allocations: 0 / 430.5 MB, free: 1.012 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.106, allocations: 256 / 430.5 MB, free: 1.012 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001349/0.1061, allocations: 157.7 kB / 430.6 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.1061, allocations: 4 kB / 430.6 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.41e-07/0.1061, allocations: 0 / 430.6 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/0.1061, allocations: 4 kB / 430.6 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.139e-05/0.1061, allocations: 7.938 kB / 430.6 MB, free: 0.793 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/0.1061, allocations: 3.984 kB / 430.6 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.123e-06/0.1061, allocations: 0 / 430.6 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002385/0.1064, allocations: 194.7 kB / 430.8 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.394e-05/0.1064, allocations: 81.11 kB / 430.9 MB, free: 488 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.907e-05/0.1064, allocations: 7.922 kB / 430.9 MB, free: 480 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.528e-05/0.1064, allocations: 4 kB / 430.9 MB, free: 476 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.22e-05/0.1065, allocations: 11.97 kB / 430.9 MB, free: 464 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.939e-06/0.1065, allocations: 0 / 430.9 MB, free: 464 kB / 350.1 MB Notification: Performance of sorting global known variables: time 5.325e-05/0.1065, allocations: 91.27 kB / 431 MB, free: 372 kB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1065, allocations: 0 / 431 MB, free: 372 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001977/0.1067, allocations: 8 kB / 431 MB, free: 364 kB / 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.0003262/0.107, allocations: 141.3 kB / 431.2 MB, free: 232 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001659/0.1072, allocations: 119.4 kB / 431.3 MB, free: 100 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.205e-06/0.1072, allocations: 0 / 431.3 MB, free: 100 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.331e-05/0.1073, allocations: 87.39 kB / 431.4 MB, free: 0 / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001394/0.1074, allocations: 4.109 kB / 431.4 MB, free: 15.99 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003024/0.1077, allocations: 170.6 kB / 431.5 MB, free: 15.79 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003152/0.1081, allocations: 0.6807 MB / 432.2 MB, free: 15.09 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.097e-05/0.1081, allocations: 7.438 kB / 432.2 MB, free: 15.08 MB / 366.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1081, allocations: 4.125 kB / 432.2 MB, free: 15.07 MB / 366.1 MB Notification: Performance of Templates: time 0.002475/0.1105, allocations: 0.6761 MB / 432.9 MB, free: 14.4 MB / 366.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/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_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: 6.9385512649896555]