Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001313/0.001313, allocations: 80.8 kB / 22.28 MB, free: 2.211 MB / 18.57 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.001747/0.001747, allocations: 164 kB / 25.69 MB, free: 8.465 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9499/0.9499, allocations: 158.6 MB / 187.6 MB, free: 2.797 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile") translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.403e-06/1.403e-06, allocations: 0 / 251.5 MB, free: 7.316 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.478e-05/2.618e-05, allocations: 10.25 kB / 251.5 MB, free: 7.305 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001549/0.001575, allocations: 0.4954 MB / 252 MB, free: 6.809 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002155/0.001791, allocations: 63.73 kB / 252.1 MB, free: 6.746 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.719e-05/0.001818, allocations: 4 kB / 252.1 MB, free: 6.742 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 3.565e-05/0.001854, allocations: 3.938 kB / 252.1 MB, free: 6.738 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 7.2e-05/0.001926, allocations: 15.92 kB / 252.1 MB, free: 6.723 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001384/0.002064, allocations: 19.97 kB / 252.1 MB, free: 6.703 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 8.446e-05/0.002149, allocations: 19.98 kB / 252.1 MB, free: 6.684 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.473e-05/0.002183, allocations: 3.984 kB / 252.1 MB, free: 6.68 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.853e-05/0.002222, allocations: 15.98 kB / 252.1 MB, free: 6.664 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.468e-05/0.002286, allocations: 23.97 kB / 252.2 MB, free: 6.641 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 1.646e-05/0.002303, allocations: 4 kB / 252.2 MB, free: 6.637 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.949e-05/0.002342, allocations: 7.938 kB / 252.2 MB, free: 6.629 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 3.35e-05/0.002376, allocations: 7.938 kB / 252.2 MB, free: 6.621 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 2.272e-05/0.002399, allocations: 7.984 kB / 252.2 MB, free: 6.613 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 8.647e-05/0.002485, allocations: 23.92 kB / 252.2 MB, free: 6.59 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.823e-06/0.002487, allocations: 3.938 kB / 252.2 MB, free: 6.586 MB / 234.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.002488, allocations: 0 / 252.2 MB, free: 6.586 MB / 234.7 MB Notification: Performance of Transformations before backend: time 2.855e-06/0.002491, allocations: 0 / 252.2 MB, free: 6.586 MB / 234.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.0002418/0.002733, allocations: 266.6 kB / 252.5 MB, free: 6.293 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.297e-05/0.002766, allocations: 11.98 kB / 252.5 MB, free: 6.281 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.689e-05/0.002792, allocations: 8.938 kB / 252.5 MB, free: 6.273 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.707e-05/0.002869, allocations: 113.8 kB / 252.6 MB, free: 6.137 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.517e-06/0.002879, allocations: 384 / 252.6 MB, free: 6.137 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.021e-05/0.002889, allocations: 4.375 kB / 252.6 MB, free: 6.133 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.047e-05/0.00297, allocations: 66.78 kB / 252.7 MB, free: 6.055 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.241e-06/0.002976, allocations: 4.125 kB / 252.7 MB, free: 6.051 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.041e-06/0.002982, allocations: 384 / 252.7 MB, free: 6.051 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003332/0.006314, allocations: 384 / 252.7 MB, free: 6.051 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.193e-05/0.006366, allocations: 37.62 kB / 252.7 MB, free: 6.008 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.481e-05/0.006451, allocations: 59.88 kB / 252.8 MB, free: 5.934 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.521e-05/0.006506, allocations: 56.27 kB / 252.8 MB, free: 5.863 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.251e-05/0.006528, allocations: 42.67 kB / 252.9 MB, free: 5.812 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.948e-06/0.006532, allocations: 0 / 252.9 MB, free: 5.812 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.375e-05/0.006566, allocations: 56.27 kB / 252.9 MB, free: 5.742 MB / 234.7 MB Notification: Performance of pre-optimization done (n=4): time 9.92e-07/0.006567, allocations: 4 kB / 252.9 MB, free: 5.738 MB / 234.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001456/0.006713, allocations: 134.7 kB / 253.1 MB, free: 5.582 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.732e-05/0.00675, allocations: 77.11 kB / 253.1 MB, free: 5.488 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.063e-05/0.006821, allocations: 114.7 kB / 253.2 MB, free: 5.363 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 9.759e-06/0.00683, allocations: 25.7 kB / 253.3 MB, free: 5.332 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.838e-05/0.006859, allocations: 85.38 kB / 253.4 MB, free: 5.246 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.815e-05/0.006877, allocations: 7.922 kB / 253.4 MB, free: 5.238 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.691e-05/0.006914, allocations: 21.7 kB / 253.4 MB, free: 5.211 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 9.145e-05/0.007005, allocations: 322.8 kB / 253.7 MB, free: 4.887 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.469e-05/0.00703, allocations: 32.53 kB / 253.7 MB, free: 4.848 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.172e-05/0.007052, allocations: 33.69 kB / 253.8 MB, free: 4.809 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.225e-05/0.007104, allocations: 79.02 kB / 253.8 MB, free: 4.715 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.007106, allocations: 0 / 253.8 MB, free: 4.715 MB / 234.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.738e-05/0.007194, allocations: 101.1 kB / 253.9 MB, free: 4.598 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.371e-05/0.007228, allocations: 29.7 kB / 254 MB, free: 4.562 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.007232, allocations: 0 / 254 MB, free: 4.562 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.408e-05/0.007246, allocations: 11.92 kB / 254 MB, free: 4.551 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.157e-06/0.00725, allocations: 4.062 kB / 254 MB, free: 4.547 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.585e-06/0.007253, allocations: 0 / 254 MB, free: 4.547 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.789e-05/0.007271, allocations: 0 / 254 MB, free: 4.547 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.826e-06/0.007279, allocations: 4.188 kB / 254 MB, free: 4.543 MB / 234.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 7.512e-05/0.007354, allocations: 142.3 kB / 254.1 MB, free: 4.387 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.174e-05/0.007366, allocations: 7.984 kB / 254.1 MB, free: 4.379 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.944e-05/0.007386, allocations: 11.98 kB / 254.1 MB, free: 4.363 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.522e-06/0.007387, allocations: 7.938 kB / 254.2 MB, free: 4.355 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.473e-06/0.007389, allocations: 0 / 254.2 MB, free: 4.355 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-06/0.007391, allocations: 0 / 254.2 MB, free: 4.355 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.297e-05/0.007454, allocations: 69.83 kB / 254.2 MB, free: 4.27 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.007456, allocations: 8.234 kB / 254.2 MB, free: 4.262 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.22e-07/0.007457, allocations: 0 / 254.2 MB, free: 4.262 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.925e-06/0.00746, allocations: 4 kB / 254.2 MB, free: 4.258 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.991e-06/0.007466, allocations: 4 kB / 254.2 MB, free: 4.254 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.01e-07/0.007466, allocations: 0 / 254.2 MB, free: 4.254 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.007467, allocations: 0 / 254.2 MB, free: 4.254 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001037/0.007571, allocations: 138.1 kB / 254.4 MB, free: 4.086 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.123e-05/0.007582, allocations: 7.953 kB / 254.4 MB, free: 4.078 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.322e-05/0.007595, allocations: 0 / 254.4 MB, free: 4.078 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.224e-05/0.007608, allocations: 4 kB / 254.4 MB, free: 4.074 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.967e-06/0.007617, allocations: 32 / 254.4 MB, free: 4.074 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.571e-06/0.007622, allocations: 7.984 kB / 254.4 MB, free: 4.066 MB / 234.7 MB Notification: Performance of sorting global known variables: time 1.639e-05/0.007639, allocations: 12.86 kB / 254.4 MB, free: 4.051 MB / 234.7 MB Notification: Performance of sort global known variables: time 6e-08/0.007639, allocations: 0 / 254.4 MB, free: 4.051 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0001621/0.007801, allocations: 15.94 kB / 254.4 MB, free: 4.035 MB / 234.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.0002665/0.008067, allocations: 117 kB / 254.5 MB, free: 3.926 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0001082/0.008175, allocations: 131.7 kB / 254.7 MB, free: 3.77 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.008178, allocations: 4.062 kB / 254.7 MB, free: 3.766 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 4.525e-05/0.008223, allocations: 102 kB / 254.8 MB, free: 3.645 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 6.143e-05/0.008285, allocations: 7.938 kB / 254.8 MB, free: 3.637 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001907/0.008475, allocations: 151.9 kB / 254.9 MB, free: 3.453 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.984e-05/0.008505, allocations: 55.36 kB / 255 MB, free: 3.379 MB / 234.7 MB Notification: Performance of simCode: alias equations: time 4.569e-06/0.00851, allocations: 3.938 kB / 255 MB, free: 3.375 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.572e-05/0.008586, allocations: 79.33 kB / 255.1 MB, free: 3.297 MB / 234.7 MB Notification: Performance of SimCode: time 6.42e-07/0.008586, allocations: 0 / 255.1 MB, free: 3.297 MB / 234.7 MB Notification: Performance of Templates: time 0.008645/0.01723, allocations: 0.7397 MB / 255.8 MB, free: 2.566 MB / 234.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & ./Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7034650328569114]