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.001289/0.001289, allocations: 68.08 kB / 21.24 MB, free: 408 kB / 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.001343/0.001343, allocations: 159.4 kB / 24.48 MB, free: 3.465 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.424/1.424, allocations: 173.4 MB / 201.1 MB, free: 12.59 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 0.001584/0.001584, allocations: 47.34 kB / 319.4 MB, free: 3.281 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09445/0.09603, allocations: 52.17 MB / 371.5 MB, free: 7.398 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001697/0.09773, allocations: 495.1 kB / 372 MB, free: 6.914 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002903/0.09802, allocations: 55.8 kB / 372.1 MB, free: 6.859 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.197e-05/0.09805, allocations: 3.938 kB / 372.1 MB, free: 6.855 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.631e-05/0.09808, allocations: 0 / 372.1 MB, free: 6.855 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.592e-05/0.09816, allocations: 15.97 kB / 372.1 MB, free: 6.84 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001507/0.09831, allocations: 23.92 kB / 372.1 MB, free: 6.816 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.984e-05/0.09841, allocations: 23.97 kB / 372.1 MB, free: 6.793 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.418e-05/0.09845, allocations: 4.406 kB / 372.2 MB, free: 6.789 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.232e-05/0.09848, allocations: 11.98 kB / 372.2 MB, free: 6.777 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.99e-05/0.09856, allocations: 27.89 kB / 372.2 MB, free: 6.75 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.513e-05/0.09858, allocations: 4 kB / 372.2 MB, free: 6.746 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.157e-05/0.09862, allocations: 8 kB / 372.2 MB, free: 6.738 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.861e-05/0.09866, allocations: 4 kB / 372.2 MB, free: 6.734 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.227e-05/0.09869, allocations: 7.938 kB / 372.2 MB, free: 6.727 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 9.481e-05/0.09878, allocations: 27.84 kB / 372.2 MB, free: 6.699 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.09879, allocations: 0 / 372.2 MB, free: 6.699 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.09879, allocations: 4 kB / 372.2 MB, free: 6.695 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.749e-06/0.09879, allocations: 0 / 372.2 MB, free: 6.695 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.0003549/0.09915, allocations: 288 kB / 372.5 MB, free: 6.375 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.519e-05/0.09918, allocations: 16.91 kB / 372.5 MB, free: 6.359 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.105e-05/0.09922, allocations: 4.938 kB / 372.5 MB, free: 6.355 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001039/0.09932, allocations: 114.5 kB / 372.7 MB, free: 6.219 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.163e-05/0.09933, allocations: 384 / 372.7 MB, free: 6.219 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.151e-05/0.09934, allocations: 4.312 kB / 372.7 MB, free: 6.215 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001325/0.09948, allocations: 87.94 kB / 372.7 MB, free: 6.117 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.09948, allocations: 192 / 372.7 MB, free: 6.117 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.296e-05/0.0995, allocations: 11.94 kB / 372.8 MB, free: 6.105 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.907e-06/0.0995, allocations: 4 kB / 372.8 MB, free: 6.102 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.762e-05/0.09956, allocations: 53.69 kB / 372.8 MB, free: 6.043 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00012/0.09968, allocations: 105.3 kB / 372.9 MB, free: 5.91 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.335e-05/0.09977, allocations: 76.3 kB / 373 MB, free: 5.82 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.703e-05/0.09983, allocations: 62.56 kB / 373.1 MB, free: 5.75 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.546e-06/0.09984, allocations: 0 / 373.1 MB, free: 5.75 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.212e-05/0.09989, allocations: 60.27 kB / 373.1 MB, free: 5.676 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.042e-06/0.09989, allocations: 0 / 373.1 MB, free: 5.676 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003247/0.1002, allocations: 242.7 kB / 373.4 MB, free: 5.414 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.489e-05/0.1003, allocations: 85.12 kB / 373.4 MB, free: 5.312 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001/0.1004, allocations: 121.7 kB / 373.6 MB, free: 5.184 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.862e-05/0.1004, allocations: 29.7 kB / 373.6 MB, free: 5.148 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.598e-05/0.1004, allocations: 88.08 kB / 373.7 MB, free: 5.059 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.669e-05/0.1005, allocations: 3.953 kB / 373.7 MB, free: 5.055 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.393e-05/0.1005, allocations: 17.72 kB / 373.7 MB, free: 5.031 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001355/0.1006, allocations: 318.8 kB / 374 MB, free: 4.711 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.955e-05/0.1007, allocations: 57.62 kB / 374.1 MB, free: 4.648 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.431e-05/0.1007, allocations: 57.69 kB / 374.1 MB, free: 4.586 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001087/0.1008, allocations: 120.2 kB / 374.2 MB, free: 4.453 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.1008, allocations: 4 kB / 374.2 MB, free: 4.449 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001815/0.101, allocations: 177.1 kB / 374.4 MB, free: 4.258 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.656e-05/0.1011, allocations: 41.69 kB / 374.4 MB, free: 4.211 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.957e-06/0.1011, allocations: 0 / 374.4 MB, free: 4.211 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.466e-05/0.1011, allocations: 3.938 kB / 374.5 MB, free: 4.207 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.42e-07/0.1011, allocations: 192 / 374.5 MB, free: 4.207 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.609e-06/0.1011, allocations: 0 / 374.5 MB, free: 4.207 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.719e-05/0.1011, allocations: 0 / 374.5 MB, free: 4.207 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.057e-05/0.1011, allocations: 7.984 kB / 374.5 MB, free: 4.199 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.0001029/0.1012, allocations: 151.5 kB / 374.6 MB, free: 4.035 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.9e-05/0.1012, allocations: 11.94 kB / 374.6 MB, free: 4.023 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.475e-05/0.1012, allocations: 8.031 kB / 374.6 MB, free: 4.008 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.015e-06/0.1012, allocations: 3.938 kB / 374.6 MB, free: 4.004 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.1012, allocations: 4 kB / 374.6 MB, free: 4 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.793e-06/0.1012, allocations: 0 / 374.6 MB, free: 4 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.426e-05/0.1013, allocations: 105.3 kB / 374.7 MB, free: 3.867 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.1013, allocations: 0 / 374.7 MB, free: 3.867 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.089e-06/0.1013, allocations: 4 kB / 374.7 MB, free: 3.863 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.132e-06/0.1013, allocations: 0 / 374.7 MB, free: 3.863 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.073e-06/0.1013, allocations: 0 / 374.7 MB, free: 3.863 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.62e-07/0.1013, allocations: 0 / 374.7 MB, free: 3.863 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.498e-06/0.1014, allocations: 7.922 kB / 374.8 MB, free: 3.855 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002462/0.1016, allocations: 228.5 kB / 375 MB, free: 3.602 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.139e-05/0.1016, allocations: 11.95 kB / 375 MB, free: 3.59 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.404e-05/0.1016, allocations: 0 / 375 MB, free: 3.59 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.57e-05/0.1016, allocations: 4.25 kB / 375 MB, free: 3.586 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.664e-05/0.1017, allocations: 3.938 kB / 375 MB, free: 3.582 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.261e-06/0.1017, allocations: 11.88 kB / 375 MB, free: 3.57 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.468e-05/0.1017, allocations: 95.27 kB / 375.1 MB, free: 3.477 MB / 334.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1017, allocations: 0 / 375.1 MB, free: 3.477 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001959/0.1019, allocations: 11.94 kB / 375.1 MB, free: 3.465 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.0003138/0.1022, allocations: 126 kB / 375.2 MB, free: 3.348 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001932/0.1024, allocations: 178.8 kB / 375.4 MB, free: 3.148 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1024, allocations: 0 / 375.4 MB, free: 3.148 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.494e-05/0.1025, allocations: 117.1 kB / 375.5 MB, free: 3.016 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001425/0.1027, allocations: 4 kB / 375.5 MB, free: 3.012 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002625/0.1029, allocations: 178.4 kB / 375.7 MB, free: 2.805 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.799e-05/0.103, allocations: 67.45 kB / 375.8 MB, free: 2.719 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.48e-06/0.103, allocations: 4 kB / 375.8 MB, free: 2.715 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.175e-05/0.103, allocations: 12.44 kB / 375.8 MB, free: 2.703 MB / 334.1 MB Notification: Performance of SimCode: time 3.11e-07/0.103, allocations: 0 / 375.8 MB, free: 2.703 MB / 334.1 MB Notification: Performance of Templates: time 0.003187/0.1062, allocations: 0.7041 MB / 376.5 MB, free: 2.012 MB / 334.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 -s ida -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","/var/lib/jenkins1/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.1713450939860195]