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.001462/0.001462, allocations: 96.3 kB / 21.73 MB, free: 2.703 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.001905/0.001905, allocations: 166.4 kB / 25.02 MB, free: 8.945 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 1.503/1.503, allocations: 158.6 MB / 186.8 MB, free: 2.93 MB / 170.7 MB " [Timeout remaining time 178] 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.353e-06/1.353e-06, allocations: 0 / 250.3 MB, free: 7.891 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.585e-05/2.72e-05, allocations: 13.34 kB / 250.3 MB, free: 7.879 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001557/0.001584, allocations: 0.4913 MB / 250.8 MB, free: 7.387 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002744/0.001858, allocations: 59.8 kB / 250.9 MB, free: 7.328 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.911e-05/0.001888, allocations: 0 / 250.9 MB, free: 7.328 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 4.35e-05/0.001931, allocations: 3.938 kB / 250.9 MB, free: 7.324 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 6.748e-05/0.001999, allocations: 19.92 kB / 250.9 MB, free: 7.305 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000152/0.002151, allocations: 19.97 kB / 250.9 MB, free: 7.285 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 8.529e-05/0.002236, allocations: 31.91 kB / 250.9 MB, free: 7.254 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.982e-05/0.002266, allocations: 0 / 250.9 MB, free: 7.254 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.913e-05/0.002305, allocations: 15.92 kB / 251 MB, free: 7.238 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.16e-05/0.002386, allocations: 23.97 kB / 251 MB, free: 7.215 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 1.514e-05/0.002402, allocations: 0 / 251 MB, free: 7.215 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.365e-05/0.002445, allocations: 12 kB / 251 MB, free: 7.203 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 3.923e-05/0.002484, allocations: 3.984 kB / 251 MB, free: 7.199 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 3.565e-05/0.00252, allocations: 11.92 kB / 251 MB, free: 7.188 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001081/0.002628, allocations: 31.92 kB / 251 MB, free: 7.156 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.034e-06/0.00263, allocations: 0 / 251 MB, free: 7.156 MB / 234.7 MB Notification: Performance of FrontEnd: time 5.71e-07/0.002631, allocations: 0 / 251 MB, free: 7.156 MB / 234.7 MB Notification: Performance of Transformations before backend: time 3.647e-06/0.002634, allocations: 0 / 251 MB, free: 7.156 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.0004262/0.003061, allocations: 284 kB / 251.3 MB, free: 6.84 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.263e-05/0.003103, allocations: 11.98 kB / 251.3 MB, free: 6.828 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.712e-05/0.00315, allocations: 8.891 kB / 251.3 MB, free: 6.82 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001192/0.00327, allocations: 105.8 kB / 251.4 MB, free: 6.691 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.14e-05/0.003281, allocations: 384 / 251.4 MB, free: 6.691 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.129e-05/0.003292, allocations: 4.375 kB / 251.4 MB, free: 6.688 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001492/0.003442, allocations: 95.86 kB / 251.5 MB, free: 6.582 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.314e-06/0.003449, allocations: 8.188 kB / 251.5 MB, free: 6.574 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.015e-06/0.003457, allocations: 384 / 251.5 MB, free: 6.574 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-06/0.003463, allocations: 8.297 kB / 251.6 MB, free: 6.566 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.24e-05/0.003536, allocations: 57.62 kB / 251.6 MB, free: 6.504 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001527/0.003688, allocations: 105.3 kB / 251.7 MB, free: 6.371 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001014/0.00379, allocations: 72.31 kB / 251.8 MB, free: 6.285 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.952e-05/0.003859, allocations: 58.62 kB / 251.8 MB, free: 6.219 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.716e-06/0.003868, allocations: 0 / 251.8 MB, free: 6.219 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.421e-05/0.003932, allocations: 68.2 kB / 251.9 MB, free: 6.137 MB / 234.7 MB Notification: Performance of pre-optimization done (n=4): time 7.42e-07/0.003933, allocations: 0 / 251.9 MB, free: 6.137 MB / 234.7 MB Notification: Performance of matching and sorting (n=4): time 0.000375/0.004308, allocations: 246.7 kB / 252.2 MB, free: 5.871 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.029e-05/0.004378, allocations: 81.11 kB / 252.2 MB, free: 5.773 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001168/0.004495, allocations: 113.8 kB / 252.3 MB, free: 5.652 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 1.952e-05/0.004514, allocations: 25.7 kB / 252.4 MB, free: 5.621 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.086e-05/0.004595, allocations: 88.14 kB / 252.5 MB, free: 5.531 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.244e-05/0.004618, allocations: 7.891 kB / 252.5 MB, free: 5.523 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.392e-05/0.004662, allocations: 25.7 kB / 252.5 MB, free: 5.492 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001758/0.004837, allocations: 310.8 kB / 252.8 MB, free: 5.18 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.74e-05/0.004905, allocations: 57.69 kB / 252.8 MB, free: 5.117 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.745e-05/0.004962, allocations: 53.69 kB / 252.9 MB, free: 5.059 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001318/0.005094, allocations: 124.2 kB / 253 MB, free: 4.922 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.005096, allocations: 4.062 kB / 253 MB, free: 4.918 MB / 234.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002252/0.005321, allocations: 185.3 kB / 253.2 MB, free: 4.719 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.759e-05/0.005358, allocations: 29.7 kB / 253.2 MB, free: 4.684 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.127e-06/0.005363, allocations: 4 kB / 253.2 MB, free: 4.68 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.705e-05/0.00538, allocations: 0 / 253.2 MB, free: 4.68 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.506e-06/0.005383, allocations: 4 kB / 253.2 MB, free: 4.676 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.657e-06/0.005387, allocations: 0 / 253.2 MB, free: 4.676 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.033e-05/0.005407, allocations: 3.938 kB / 253.2 MB, free: 4.672 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.377e-06/0.005417, allocations: 4 kB / 253.2 MB, free: 4.668 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 0.0001355/0.005552, allocations: 147.5 kB / 253.4 MB, free: 4.508 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.908e-05/0.005571, allocations: 11.98 kB / 253.4 MB, free: 4.496 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.574e-05/0.005597, allocations: 15.98 kB / 253.4 MB, free: 4.477 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.223e-06/0.005598, allocations: 0 / 253.4 MB, free: 4.477 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.005601, allocations: 0 / 253.4 MB, free: 4.477 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.005605, allocations: 3.938 kB / 253.4 MB, free: 4.473 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001069/0.005712, allocations: 105.3 kB / 253.5 MB, free: 4.34 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.005713, allocations: 0 / 253.5 MB, free: 4.34 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.005713, allocations: 3.938 kB / 253.5 MB, free: 4.336 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.242e-06/0.005715, allocations: 0 / 253.5 MB, free: 4.336 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.015e-05/0.005725, allocations: 4 kB / 253.5 MB, free: 4.332 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.005726, allocations: 0 / 253.5 MB, free: 4.332 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.005726, allocations: 4 kB / 253.5 MB, free: 4.328 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002881/0.006015, allocations: 232.4 kB / 253.8 MB, free: 4.07 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.796e-06/0.006023, allocations: 4.188 kB / 253.8 MB, free: 4.066 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.443e-05/0.006038, allocations: 0 / 253.8 MB, free: 4.066 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.779e-05/0.006056, allocations: 4 kB / 253.8 MB, free: 4.062 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.966e-05/0.006075, allocations: 3.984 kB / 253.8 MB, free: 4.059 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.893e-06/0.006082, allocations: 7.922 kB / 253.8 MB, free: 4.051 MB / 234.7 MB Notification: Performance of sorting global known variables: time 6.809e-05/0.00615, allocations: 91.28 kB / 253.9 MB, free: 3.961 MB / 234.7 MB Notification: Performance of sort global known variables: time 7e-08/0.00615, allocations: 0 / 253.9 MB, free: 3.961 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0002018/0.006352, allocations: 11.94 kB / 253.9 MB, free: 3.949 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.0003805/0.006733, allocations: 139.9 kB / 254 MB, free: 3.816 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0002309/0.006963, allocations: 178.8 kB / 254.2 MB, free: 3.617 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.006966, allocations: 0 / 254.2 MB, free: 3.617 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001087/0.007074, allocations: 113.1 kB / 254.3 MB, free: 3.488 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001519/0.007226, allocations: 7.984 kB / 254.3 MB, free: 3.48 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003221/0.007548, allocations: 174.2 kB / 254.5 MB, free: 3.273 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.565e-05/0.007624, allocations: 67.47 kB / 254.6 MB, free: 3.188 MB / 234.7 MB Notification: Performance of simCode: alias equations: time 7.764e-06/0.007632, allocations: 3.984 kB / 254.6 MB, free: 3.184 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.664e-05/0.007648, allocations: 12.44 kB / 254.6 MB, free: 3.172 MB / 234.7 MB Notification: Performance of SimCode: time 3.91e-07/0.007649, allocations: 0 / 254.6 MB, free: 3.172 MB / 234.7 MB Notification: Performance of Templates: time 0.003272/0.01092, allocations: 0.6901 MB / 255.3 MB, free: 2.488 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=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.298101980006322]