Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001254/0.001254, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001995/0.003249, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001182/0.001182, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001767/0.00295, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.024/1.024, allocations: 177.5 MB / 190 MB, free: 4.816 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08939/1.113, allocations: 53.87 MB / 243.9 MB, free: 14.88 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.Sample3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.Sample3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.533e-06/1.533e-06, allocations: 0 / 245.2 MB, free: 13.58 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.258e-05/2.412e-05, allocations: 2.312 kB / 245.2 MB, free: 13.57 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample3): time 0.003318/0.003342, allocations: 1.787 MB / 247 MB, free: 11.78 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.000396/0.003738, allocations: 187.2 kB / 247.2 MB, free: 11.59 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.833e-05/0.003827, allocations: 0 / 247.2 MB, free: 11.59 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 5.139e-05/0.003878, allocations: 7.875 kB / 247.2 MB, free: 11.59 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 9.135e-05/0.00397, allocations: 11.94 kB / 247.2 MB, free: 11.57 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002464/0.004216, allocations: 47.77 kB / 247.2 MB, free: 11.53 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001229/0.004339, allocations: 51.84 kB / 247.3 MB, free: 11.48 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001002/0.004439, allocations: 23.97 kB / 247.3 MB, free: 11.45 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.801e-05/0.004527, allocations: 39.91 kB / 247.4 MB, free: 11.41 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.043e-05/0.004587, allocations: 19.91 kB / 247.4 MB, free: 11.39 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.725e-05/0.004615, allocations: 4 kB / 247.4 MB, free: 11.39 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.395e-05/0.004629, allocations: 4 kB / 247.4 MB, free: 11.39 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.073e-05/0.004679, allocations: 15.94 kB / 247.4 MB, free: 11.37 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.643e-05/0.004706, allocations: 11.94 kB / 247.4 MB, free: 11.36 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001401/0.004846, allocations: 55.77 kB / 247.5 MB, free: 11.3 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.024e-05/0.004856, allocations: 0 / 247.5 MB, free: 11.3 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.004858, allocations: 0 / 247.5 MB, free: 11.3 MB / 250.7 MB Notification: Performance of Transformations before backend: time 9.969e-06/0.004868, allocations: 0 / 247.5 MB, free: 11.3 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.000445/0.005313, allocations: 300.2 kB / 247.8 MB, free: 10.98 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.398e-05/0.005357, allocations: 12.56 kB / 247.8 MB, free: 10.97 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.297e-05/0.0054, allocations: 16.92 kB / 247.8 MB, free: 10.96 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001977/0.005597, allocations: 137.6 kB / 247.9 MB, free: 10.8 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.067e-05/0.005608, allocations: 4.375 kB / 247.9 MB, free: 10.79 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.434e-05/0.005622, allocations: 8.375 kB / 247.9 MB, free: 10.79 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002536/0.005876, allocations: 151 kB / 248.1 MB, free: 10.61 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.706e-06/0.005885, allocations: 192 / 248.1 MB, free: 10.61 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.729e-06/0.005895, allocations: 4.375 kB / 248.1 MB, free: 10.61 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.236e-05/0.005907, allocations: 8.312 kB / 248.1 MB, free: 10.6 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.937e-05/0.005946, allocations: 19.91 kB / 248.1 MB, free: 10.58 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002698/0.006216, allocations: 245.3 kB / 248.4 MB, free: 10.32 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001747/0.006391, allocations: 83.72 kB / 248.4 MB, free: 10.21 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.792e-05/0.006439, allocations: 42.77 kB / 248.5 MB, free: 10.16 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.168e-05/0.00646, allocations: 4 kB / 248.5 MB, free: 10.16 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.834e-05/0.006499, allocations: 38.56 kB / 248.5 MB, free: 10.11 MB / 250.7 MB Notification: Performance of pre-optimization done (n=10): time 1.573e-06/0.0065, allocations: 0 / 248.5 MB, free: 10.11 MB / 250.7 MB Notification: Performance of matching and sorting (n=10): time 0.0001857/0.006686, allocations: 81.47 kB / 248.6 MB, free: 10.02 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.917e-05/0.006745, allocations: 110.8 kB / 248.7 MB, free: 9.891 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.339e-05/0.006839, allocations: 133.9 kB / 248.8 MB, free: 9.75 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.923e-05/0.006858, allocations: 37.7 kB / 248.9 MB, free: 9.707 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.382e-05/0.006902, allocations: 92.03 kB / 249 MB, free: 9.613 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.845e-05/0.00692, allocations: 11.89 kB / 249 MB, free: 9.602 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.063e-05/0.006951, allocations: 13.72 kB / 249 MB, free: 9.582 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.286e-05/0.007044, allocations: 318.8 kB / 249.3 MB, free: 9.262 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.957e-06/0.007052, allocations: 0 / 249.3 MB, free: 9.262 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.598e-05/0.007068, allocations: 13.72 kB / 249.3 MB, free: 9.242 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.84e-05/0.007097, allocations: 17.66 kB / 249.3 MB, free: 9.219 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.055e-06/0.0071, allocations: 8.047 kB / 249.3 MB, free: 9.211 MB / 250.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.358e-05/0.007163, allocations: 41.64 kB / 249.4 MB, free: 9.164 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.393e-05/0.007177, allocations: 8 kB / 249.4 MB, free: 9.156 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.007182, allocations: 0 / 249.4 MB, free: 9.156 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/0.007198, allocations: 7.922 kB / 249.4 MB, free: 9.148 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.01e-05/0.007248, allocations: 7.984 kB / 249.4 MB, free: 9.141 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.995e-06/0.007251, allocations: 0 / 249.4 MB, free: 9.141 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.198e-05/0.007273, allocations: 4 kB / 249.4 MB, free: 9.137 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.38e-06/0.007278, allocations: 0 / 249.4 MB, free: 9.137 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 6.798e-05/0.007346, allocations: 116.7 kB / 249.5 MB, free: 9.012 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.539e-05/0.007442, allocations: 61.66 kB / 249.6 MB, free: 8.945 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.209e-05/0.007474, allocations: 8.781 kB / 249.6 MB, free: 8.938 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.277e-05/0.007487, allocations: 7.938 kB / 249.6 MB, free: 8.93 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.823e-06/0.007488, allocations: 0 / 249.6 MB, free: 8.93 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.337e-06/0.007492, allocations: 0 / 249.6 MB, free: 8.93 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001866/0.007678, allocations: 81.81 kB / 249.7 MB, free: 8.832 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.00768, allocations: 0 / 249.7 MB, free: 8.832 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.598e-05/0.007756, allocations: 23.98 kB / 249.7 MB, free: 8.809 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.182e-05/0.007798, allocations: 19.89 kB / 249.7 MB, free: 8.789 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.335e-06/0.0078, allocations: 0 / 249.7 MB, free: 8.789 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.394e-06/0.007808, allocations: 8 kB / 249.7 MB, free: 8.781 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.00781, allocations: 0 / 249.7 MB, free: 8.781 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.007812, allocations: 3.938 kB / 249.7 MB, free: 8.777 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001248/0.007937, allocations: 223.6 kB / 250 MB, free: 8.539 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.449e-05/0.007952, allocations: 4 kB / 250 MB, free: 8.535 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.039e-05/0.008042, allocations: 0 / 250 MB, free: 8.535 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.855e-05/0.008071, allocations: 7.938 kB / 250 MB, free: 8.527 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.3e-06/0.008076, allocations: 0 / 250 MB, free: 8.527 MB / 250.7 MB Notification: Performance of sorting global known variables: time 3.856e-05/0.008115, allocations: 32.81 kB / 250 MB, free: 8.492 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.008115, allocations: 3.938 kB / 250 MB, free: 8.488 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002485/0.008363, allocations: 12.03 kB / 250 MB, free: 8.477 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (10): * Single equations (assignments): 10 * 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 0.0001076/0.008471, allocations: 84.23 kB / 250.1 MB, free: 8.391 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 7.543e-05/0.008546, allocations: 24.8 kB / 250.1 MB, free: 8.363 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 5.64e-06/0.008552, allocations: 0 / 250.1 MB, free: 8.363 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 2.129e-05/0.008573, allocations: 12.84 kB / 250.1 MB, free: 8.348 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004254/0.008998, allocations: 105.5 kB / 250.2 MB, free: 8.23 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005851/0.009584, allocations: 203.6 kB / 250.4 MB, free: 7.988 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.168e-05/0.009645, allocations: 71.33 kB / 250.5 MB, free: 7.898 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 7.018e-05/0.009715, allocations: 4 kB / 250.5 MB, free: 7.895 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.793e-05/0.009783, allocations: 55.38 kB / 250.6 MB, free: 7.84 MB / 250.7 MB Notification: Performance of SimCode: time 9.21e-07/0.009784, allocations: 3.938 kB / 250.6 MB, free: 7.836 MB / 250.7 MB Notification: Performance of Templates: time 0.002999/0.01278, allocations: 0.7206 MB / 251.3 MB, free: 7.133 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3 -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample3/Sample3.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.374002299271524]