Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.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.0009144/0.0009144, allocations: 85.05 kB / 21.5 MB, free: 2.984 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.0009533/0.0009533, allocations: 141.6 kB / 24.89 MB, free: 8.773 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.8634/0.8634, allocations: 173.4 MB / 201.5 MB, free: 9.164 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.Clocked.Examples.Elementary.RealSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.142e-06/1.142e-06, allocations: 0 / 268.5 MB, free: 6.16 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.036e-05/1.15e-05, allocations: 2.312 kB / 268.5 MB, free: 6.156 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Hold): time 0.00171/0.001721, allocations: 1.651 MB / 270.1 MB, free: 4.492 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005969/0.002318, allocations: 0.4945 MB / 270.6 MB, free: 3.992 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.58e-05/0.002384, allocations: 7.938 kB / 270.6 MB, free: 3.984 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 3.972e-05/0.002423, allocations: 3.938 kB / 270.6 MB, free: 3.98 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001144/0.002538, allocations: 15.88 kB / 270.6 MB, free: 3.965 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001844/0.002722, allocations: 59.67 kB / 270.7 MB, free: 3.906 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 8.07e-05/0.002803, allocations: 51.8 kB / 270.8 MB, free: 3.855 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.307e-05/0.002866, allocations: 15.98 kB / 270.8 MB, free: 3.84 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.046e-05/0.002936, allocations: 35.89 kB / 270.8 MB, free: 3.805 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.005e-05/0.002976, allocations: 15.98 kB / 270.8 MB, free: 3.789 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.545e-05/0.002992, allocations: 7.938 kB / 270.8 MB, free: 3.781 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.326e-06/0.003, allocations: 4 kB / 270.8 MB, free: 3.777 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.961e-05/0.00304, allocations: 15.92 kB / 270.8 MB, free: 3.762 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.145e-05/0.003061, allocations: 15.92 kB / 270.9 MB, free: 3.746 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 8.262e-05/0.003144, allocations: 47.77 kB / 270.9 MB, free: 3.699 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.223e-06/0.003145, allocations: 3.938 kB / 270.9 MB, free: 3.695 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.21e-07/0.003146, allocations: 4 kB / 270.9 MB, free: 3.691 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.675e-06/0.003148, allocations: 0 / 270.9 MB, free: 3.691 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0002445/0.003393, allocations: 288.5 kB / 271.2 MB, free: 3.387 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.53e-05/0.003418, allocations: 8.922 kB / 271.2 MB, free: 3.379 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.291e-05/0.003441, allocations: 8.938 kB / 271.2 MB, free: 3.371 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001191/0.00356, allocations: 137.2 kB / 271.4 MB, free: 3.215 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.365e-06/0.003569, allocations: 8.375 kB / 271.4 MB, free: 3.207 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.034e-05/0.003579, allocations: 4.375 kB / 271.4 MB, free: 3.203 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001402/0.003719, allocations: 131.9 kB / 271.5 MB, free: 3.047 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.254e-06/0.003726, allocations: 3.938 kB / 271.5 MB, free: 3.043 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.123e-06/0.003733, allocations: 4 kB / 271.5 MB, free: 3.039 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.409e-06/0.003738, allocations: 4 kB / 271.5 MB, free: 3.035 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.972e-05/0.003758, allocations: 15.91 kB / 271.5 MB, free: 3.02 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001621/0.00392, allocations: 178.8 kB / 271.7 MB, free: 2.82 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.801e-05/0.003978, allocations: 78.38 kB / 271.8 MB, free: 2.707 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.947e-05/0.004007, allocations: 39.48 kB / 271.8 MB, free: 2.656 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.266e-05/0.00402, allocations: 4 kB / 271.8 MB, free: 2.652 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.984e-05/0.00404, allocations: 42.44 kB / 271.9 MB, free: 2.602 MB / 250.7 MB Notification: Performance of pre-optimization done (n=6): time 9.12e-07/0.004041, allocations: 0 / 271.9 MB, free: 2.602 MB / 250.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001074/0.004148, allocations: 65.55 kB / 271.9 MB, free: 2.531 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.664e-05/0.004195, allocations: 133 kB / 272.1 MB, free: 2.371 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.045e-05/0.004255, allocations: 142.6 kB / 272.2 MB, free: 2.219 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 9.368e-06/0.004264, allocations: 29.7 kB / 272.2 MB, free: 2.184 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.568e-05/0.00429, allocations: 88.12 kB / 272.3 MB, free: 2.094 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.163e-05/0.004302, allocations: 7.938 kB / 272.3 MB, free: 2.086 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.171e-05/0.004323, allocations: 17.67 kB / 272.3 MB, free: 2.062 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 6.227e-05/0.004386, allocations: 318.8 kB / 272.6 MB, free: 1.742 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.843e-06/0.004393, allocations: 4 kB / 272.6 MB, free: 1.738 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.044e-05/0.004403, allocations: 9.719 kB / 272.7 MB, free: 1.723 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.348e-05/0.004427, allocations: 25.66 kB / 272.7 MB, free: 1.691 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.004428, allocations: 4.062 kB / 272.7 MB, free: 1.688 MB / 250.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 3.928e-05/0.004467, allocations: 45.56 kB / 272.7 MB, free: 1.637 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.947e-06/0.004476, allocations: 6.969 kB / 272.7 MB, free: 1.633 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.387e-06/0.00448, allocations: 0 / 272.7 MB, free: 1.633 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.987e-06/0.004489, allocations: 4 kB / 272.7 MB, free: 1.629 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.657e-05/0.004525, allocations: 7.984 kB / 272.7 MB, free: 1.621 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.505e-06/0.004528, allocations: 0 / 272.7 MB, free: 1.621 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.427e-05/0.004542, allocations: 0 / 272.7 MB, free: 1.621 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.038e-06/0.004546, allocations: 0 / 272.7 MB, free: 1.621 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * 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 4.632e-05/0.004592, allocations: 116.7 kB / 272.9 MB, free: 1.496 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.736e-05/0.00463, allocations: 53.56 kB / 272.9 MB, free: 1.438 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.355e-05/0.004653, allocations: 15.95 kB / 272.9 MB, free: 1.418 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.004657, allocations: 4 kB / 272.9 MB, free: 1.414 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.465e-06/0.004659, allocations: 4 kB / 272.9 MB, free: 1.41 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.444e-06/0.004662, allocations: 0 / 272.9 MB, free: 1.41 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.024e-05/0.004742, allocations: 77.88 kB / 273 MB, free: 1.316 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/0.004743, allocations: 0 / 273 MB, free: 1.316 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.389e-05/0.004767, allocations: 11.98 kB / 273 MB, free: 1.305 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/0.00477, allocations: 7.938 kB / 273 MB, free: 1.297 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.546e-06/0.004774, allocations: 4.062 kB / 273 MB, free: 1.293 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.004775, allocations: 3.938 kB / 273 MB, free: 1.289 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.004777, allocations: 7.938 kB / 273 MB, free: 1.281 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.232e-05/0.004839, allocations: 150.1 kB / 273.2 MB, free: 1.109 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.402e-05/0.004863, allocations: 19.88 kB / 273.2 MB, free: 1.09 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.107e-06/0.004872, allocations: 3.938 kB / 273.2 MB, free: 1.086 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.484e-05/0.004907, allocations: 4 kB / 273.2 MB, free: 1.082 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.729e-05/0.004925, allocations: 0 / 273.2 MB, free: 1.082 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.027e-06/0.004929, allocations: 4 kB / 273.2 MB, free: 1.078 MB / 250.7 MB Notification: Performance of sorting global known variables: time 2.169e-05/0.00495, allocations: 35.81 kB / 273.3 MB, free: 1.043 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.00495, allocations: 4.031 kB / 273.3 MB, free: 1.039 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.000114/0.005064, allocations: 8 kB / 273.3 MB, free: 1.031 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * 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 5.826e-05/0.005123, allocations: 80.36 kB / 273.4 MB, free: 0.9453 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 4.968e-05/0.005172, allocations: 16.86 kB / 273.4 MB, free: 0.9258 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.005174, allocations: 0 / 273.4 MB, free: 0.9258 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.429e-05/0.005188, allocations: 20.77 kB / 273.4 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000166/0.005354, allocations: 33.38 kB / 273.4 MB, free: 0.8672 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003239/0.005678, allocations: 204.4 kB / 273.6 MB, free: 0.6328 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.153e-05/0.00571, allocations: 63.34 kB / 273.7 MB, free: 0.5508 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 1.803e-05/0.005728, allocations: 3.984 kB / 273.7 MB, free: 0.5469 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.553e-05/0.005774, allocations: 55.38 kB / 273.7 MB, free: 0.4922 MB / 250.7 MB Notification: Performance of SimCode: time 3.21e-07/0.005774, allocations: 0 / 273.7 MB, free: 0.4922 MB / 250.7 MB Notification: Performance of Templates: time 0.001932/0.007706, allocations: 0.8083 MB / 274.5 MB, free: 15.7 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Hold/Hold.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.3004943327978253]