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.0009974/0.0009974, allocations: 85.17 kB / 21.5 MB, free: 2.992 MB / 18.57 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.001467/0.001467, allocations: 147.6 kB / 24.9 MB, free: 8.727 MB / 18.57 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 0.9137/0.9137, allocations: 173.4 MB / 201.5 MB, free: 8.723 MB / 186.7 MB " [Timeout remaining time 179] 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 1.773e-06/1.773e-06, allocations: 0 / 268.4 MB, free: 6.051 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.878e-05/3.056e-05, allocations: 6.109 kB / 268.4 MB, free: 6.047 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001656/0.001687, allocations: 0.4971 MB / 268.9 MB, free: 5.547 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002696/0.001957, allocations: 69.14 kB / 269 MB, free: 5.48 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.112e-05/0.001988, allocations: 0 / 269 MB, free: 5.48 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 3.662e-05/0.002024, allocations: 0 / 269 MB, free: 5.48 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 8.193e-05/0.002106, allocations: 19.86 kB / 269 MB, free: 5.461 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001533/0.00226, allocations: 19.97 kB / 269 MB, free: 5.441 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 9.283e-05/0.002352, allocations: 15.98 kB / 269 MB, free: 5.426 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.261e-05/0.002395, allocations: 4 kB / 269 MB, free: 5.422 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.743e-05/0.002442, allocations: 15.97 kB / 269.1 MB, free: 5.406 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.385e-05/0.002516, allocations: 23.98 kB / 269.1 MB, free: 5.383 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.671e-05/0.002533, allocations: 0 / 269.1 MB, free: 5.383 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.185e-05/0.002575, allocations: 4 kB / 269.1 MB, free: 5.379 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.234e-05/0.002617, allocations: 11.92 kB / 269.1 MB, free: 5.367 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.588e-05/0.002643, allocations: 8 kB / 269.1 MB, free: 5.359 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001028/0.002746, allocations: 27.84 kB / 269.1 MB, free: 5.332 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.284e-06/0.002748, allocations: 0 / 269.1 MB, free: 5.332 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.002749, allocations: 0 / 269.1 MB, free: 5.332 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.166e-06/0.002752, allocations: 0 / 269.1 MB, free: 5.332 MB / 250.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.0002794/0.003032, allocations: 266.6 kB / 269.4 MB, free: 5.039 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.417e-05/0.003076, allocations: 12.92 kB / 269.4 MB, free: 5.027 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.673e-05/0.003113, allocations: 12.92 kB / 269.4 MB, free: 5.016 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.292e-05/0.003206, allocations: 101.8 kB / 269.5 MB, free: 4.891 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.23e-05/0.003218, allocations: 4.375 kB / 269.5 MB, free: 4.887 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.018e-05/0.003228, allocations: 384 / 269.5 MB, free: 4.887 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.806e-05/0.003316, allocations: 66.78 kB / 269.6 MB, free: 4.809 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.124e-06/0.003323, allocations: 192 / 269.6 MB, free: 4.809 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.312e-06/0.00333, allocations: 384 / 269.6 MB, free: 4.809 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-06/0.003335, allocations: 384 / 269.6 MB, free: 4.809 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.677e-05/0.003362, allocations: 45.56 kB / 269.6 MB, free: 4.758 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.504e-05/0.003437, allocations: 59.83 kB / 269.7 MB, free: 4.684 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.71e-05/0.003494, allocations: 56.28 kB / 269.8 MB, free: 4.613 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.488e-05/0.003519, allocations: 34.59 kB / 269.8 MB, free: 4.57 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.677e-06/0.003523, allocations: 96 / 269.8 MB, free: 4.57 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.759e-05/0.00356, allocations: 64.25 kB / 269.8 MB, free: 4.492 MB / 250.7 MB Notification: Performance of pre-optimization done (n=4): time 1.072e-06/0.003561, allocations: 0 / 269.8 MB, free: 4.492 MB / 250.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001489/0.00371, allocations: 130.7 kB / 270 MB, free: 4.34 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.467e-05/0.003765, allocations: 89.09 kB / 270.1 MB, free: 4.234 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.884e-05/0.003844, allocations: 106.7 kB / 270.2 MB, free: 4.117 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.068e-05/0.003854, allocations: 29.7 kB / 270.2 MB, free: 4.082 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.635e-05/0.003881, allocations: 84.12 kB / 270.3 MB, free: 3.996 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.892e-05/0.0039, allocations: 11.89 kB / 270.3 MB, free: 3.984 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.048e-05/0.00393, allocations: 17.75 kB / 270.3 MB, free: 3.961 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.562e-05/0.004016, allocations: 322.8 kB / 270.6 MB, free: 3.637 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.847e-05/0.004044, allocations: 32.78 kB / 270.7 MB, free: 3.598 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.907e-05/0.004063, allocations: 29.7 kB / 270.7 MB, free: 3.562 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.617e-05/0.004119, allocations: 83.08 kB / 270.8 MB, free: 3.465 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.004122, allocations: 0 / 270.8 MB, free: 3.465 MB / 250.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.895e-05/0.00421, allocations: 109.2 kB / 270.9 MB, free: 3.34 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.604e-05/0.004246, allocations: 33.7 kB / 270.9 MB, free: 3.301 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.004251, allocations: 0 / 270.9 MB, free: 3.301 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.22e-05/0.004264, allocations: 0 / 270.9 MB, free: 3.301 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.508e-06/0.004268, allocations: 4.062 kB / 270.9 MB, free: 3.297 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.395e-06/0.00427, allocations: 0 / 270.9 MB, free: 3.297 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.951e-05/0.00429, allocations: 4 kB / 270.9 MB, free: 3.293 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.224e-06/0.004297, allocations: 3.938 kB / 270.9 MB, free: 3.289 MB / 250.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 8.104e-05/0.004378, allocations: 146.3 kB / 271.1 MB, free: 3.129 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.41e-05/0.004392, allocations: 8 kB / 271.1 MB, free: 3.121 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.918e-05/0.004411, allocations: 11.98 kB / 271.1 MB, free: 3.102 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.383e-06/0.004413, allocations: 0 / 271.1 MB, free: 3.102 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.653e-06/0.004414, allocations: 0 / 271.1 MB, free: 3.102 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.405e-06/0.004417, allocations: 0 / 271.1 MB, free: 3.102 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.398e-05/0.004481, allocations: 69.83 kB / 271.1 MB, free: 3.016 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.004484, allocations: 8 kB / 271.2 MB, free: 3.008 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.01e-07/0.004484, allocations: 0 / 271.2 MB, free: 3.008 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.004486, allocations: 0 / 271.2 MB, free: 3.008 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.681e-06/0.004492, allocations: 3.938 kB / 271.2 MB, free: 3.004 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.004494, allocations: 3.984 kB / 271.2 MB, free: 3 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.004496, allocations: 0 / 271.2 MB, free: 3 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001183/0.004614, allocations: 142.1 kB / 271.3 MB, free: 2.828 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.865e-06/0.004622, allocations: 3.953 kB / 271.3 MB, free: 2.824 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.597e-05/0.004638, allocations: 4 kB / 271.3 MB, free: 2.82 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.231e-05/0.00465, allocations: 0 / 271.3 MB, free: 2.82 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.177e-06/0.004659, allocations: 0 / 271.3 MB, free: 2.82 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.364e-06/0.004667, allocations: 12.03 kB / 271.3 MB, free: 2.809 MB / 250.7 MB Notification: Performance of sorting global known variables: time 1.973e-05/0.004686, allocations: 16.84 kB / 271.3 MB, free: 2.789 MB / 250.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.004686, allocations: 0 / 271.3 MB, free: 2.789 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001772/0.004864, allocations: 8 kB / 271.3 MB, free: 2.781 MB / 250.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.0003183/0.005182, allocations: 117.3 kB / 271.5 MB, free: 2.68 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001243/0.005306, allocations: 143.6 kB / 271.6 MB, free: 2.512 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.459e-06/0.005311, allocations: 4 kB / 271.6 MB, free: 2.508 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 5.241e-05/0.005363, allocations: 97.95 kB / 271.7 MB, free: 2.391 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.155e-05/0.005445, allocations: 7.938 kB / 271.7 MB, free: 2.383 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002164/0.005661, allocations: 155.9 kB / 271.9 MB, free: 2.195 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.595e-05/0.005697, allocations: 59.34 kB / 271.9 MB, free: 2.117 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 5.27e-06/0.005702, allocations: 0 / 271.9 MB, free: 2.117 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.931e-05/0.005781, allocations: 63.36 kB / 272 MB, free: 2.055 MB / 250.7 MB Notification: Performance of SimCode: time 6.51e-07/0.005782, allocations: 0 / 272 MB, free: 2.055 MB / 250.7 MB Notification: Performance of Templates: time 0.002838/0.00862, allocations: 0.7461 MB / 272.7 MB, free: 1.32 MB / 250.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/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.48955537378788]