Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked.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.001035/0.001035, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.001051/0.001051, allocations: 161 kB / 24.56 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9678/0.9678, allocations: 177.1 MB / 205 MB, free: 5.219 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.Clocked.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y.[0-9,]+.",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y.[0-9,]+.",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.212e-06/1.212e-06, allocations: 0 / 273 MB, free: 1.395 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.878e-05/1.999e-05, allocations: 2.312 kB / 273 MB, free: 1.391 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked): time 0.001974/0.001994, allocations: 1.58 MB / 274.6 MB, free: 15.8 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003236/0.002318, allocations: 155.4 kB / 274.7 MB, free: 15.65 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.535e-05/0.002393, allocations: 7.938 kB / 274.7 MB, free: 15.64 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 9.7e-05/0.00249, allocations: 7.922 kB / 274.7 MB, free: 15.63 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 8.724e-05/0.002578, allocations: 11.88 kB / 274.7 MB, free: 15.62 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001951/0.002773, allocations: 35.83 kB / 274.8 MB, free: 15.59 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 9.488e-05/0.002868, allocations: 43.84 kB / 274.8 MB, free: 15.54 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001133/0.002981, allocations: 15.98 kB / 274.8 MB, free: 15.53 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.665e-05/0.003028, allocations: 19.92 kB / 274.8 MB, free: 15.51 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.374e-05/0.003071, allocations: 15.92 kB / 274.9 MB, free: 15.49 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.3e-05/0.003094, allocations: 4 kB / 274.9 MB, free: 15.49 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.033e-05/0.003105, allocations: 0 / 274.9 MB, free: 15.49 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.551e-05/0.00316, allocations: 23.92 kB / 274.9 MB, free: 15.46 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.264e-05/0.003193, allocations: 11.98 kB / 274.9 MB, free: 15.45 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000108/0.003301, allocations: 43.72 kB / 274.9 MB, free: 15.41 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.575e-06/0.003303, allocations: 0 / 274.9 MB, free: 15.41 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.003306, allocations: 3.984 kB / 274.9 MB, free: 15.41 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.388e-06/0.00331, allocations: 4 kB / 275 MB, free: 15.4 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004519/0.003762, allocations: 400.2 kB / 275.3 MB, free: 14.97 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.414e-05/0.003816, allocations: 12.03 kB / 275.4 MB, free: 14.96 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.478e-05/0.003861, allocations: 8.891 kB / 275.4 MB, free: 14.95 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002205/0.004081, allocations: 148.4 kB / 275.5 MB, free: 14.78 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.114e-05/0.004092, allocations: 4.375 kB / 275.5 MB, free: 14.78 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.792e-05/0.00411, allocations: 4.375 kB / 275.5 MB, free: 14.77 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002921/0.004402, allocations: 129.3 kB / 275.6 MB, free: 14.62 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.182e-05/0.004414, allocations: 4.125 kB / 275.6 MB, free: 14.61 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.245e-05/0.004427, allocations: 4.375 kB / 275.7 MB, free: 14.61 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.811e-05/0.004465, allocations: 384 / 275.7 MB, free: 14.61 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.391e-05/0.004499, allocations: 15.92 kB / 275.7 MB, free: 14.59 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00041/0.004909, allocations: 410.3 kB / 276.1 MB, free: 14.15 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001043/0.005013, allocations: 89.11 kB / 276.2 MB, free: 14.02 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.163e-05/0.005055, allocations: 35.25 kB / 276.2 MB, free: 13.98 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.558e-06/0.005064, allocations: 4 kB / 276.2 MB, free: 13.97 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.3e-05/0.005087, allocations: 37.33 kB / 276.2 MB, free: 13.93 MB / 266.7 MB Notification: Performance of pre-optimization done (n=4): time 1.583e-06/0.005089, allocations: 0 / 276.2 MB, free: 13.93 MB / 266.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001926/0.005281, allocations: 69.45 kB / 276.3 MB, free: 13.85 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.579e-05/0.005347, allocations: 103.2 kB / 276.4 MB, free: 13.73 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001167/0.005464, allocations: 197.9 kB / 276.6 MB, free: 13.52 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.058e-05/0.005474, allocations: 25.7 kB / 276.6 MB, free: 13.48 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.943e-05/0.005534, allocations: 142.9 kB / 276.8 MB, free: 13.34 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.549e-05/0.005549, allocations: 7.938 kB / 276.8 MB, free: 13.33 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.83e-05/0.005578, allocations: 19.38 kB / 276.8 MB, free: 13.3 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001221/0.0057, allocations: 0.4923 MB / 277.3 MB, free: 12.8 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.022e-05/0.00571, allocations: 0 / 277.3 MB, free: 12.8 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.884e-05/0.005729, allocations: 19.38 kB / 277.3 MB, free: 12.77 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.516e-05/0.005764, allocations: 31.38 kB / 277.3 MB, free: 12.73 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.005766, allocations: 0 / 277.3 MB, free: 12.73 MB / 266.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.908e-05/0.005825, allocations: 49.58 kB / 277.4 MB, free: 12.68 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.342e-05/0.005839, allocations: 7.938 kB / 277.4 MB, free: 12.67 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.005844, allocations: 0 / 277.4 MB, free: 12.67 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.411e-05/0.005858, allocations: 0 / 277.4 MB, free: 12.67 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.541e-05/0.005924, allocations: 8 kB / 277.4 MB, free: 12.66 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.7e-06/0.005929, allocations: 3.984 kB / 277.4 MB, free: 12.66 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.543e-05/0.005945, allocations: 0 / 277.4 MB, free: 12.66 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.915e-06/0.005953, allocations: 8 kB / 277.4 MB, free: 12.65 MB / 266.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: 2 (sample1.u[2],sample1.u[1]) * 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 9.008e-05/0.006043, allocations: 160.6 kB / 277.6 MB, free: 12.48 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.672e-05/0.00609, allocations: 41.66 kB / 277.6 MB, free: 12.44 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.607e-05/0.006116, allocations: 11.91 kB / 277.6 MB, free: 12.43 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.374e-05/0.006129, allocations: 7.984 kB / 277.6 MB, free: 12.42 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.307e-06/0.006133, allocations: 0 / 277.6 MB, free: 12.42 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.006137, allocations: 7.938 kB / 277.6 MB, free: 12.41 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001215/0.006258, allocations: 124.6 kB / 277.7 MB, free: 12.26 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.006262, allocations: 4 kB / 277.7 MB, free: 12.25 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.787e-05/0.00628, allocations: 7.984 kB / 277.8 MB, free: 12.25 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.462e-06/0.006282, allocations: 4.031 kB / 277.8 MB, free: 12.24 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.901e-06/0.006288, allocations: 3.938 kB / 277.8 MB, free: 12.24 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.00629, allocations: 7.938 kB / 277.8 MB, free: 12.23 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.00629, allocations: 0 / 277.8 MB, free: 12.23 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001269/0.006417, allocations: 326.8 kB / 278.1 MB, free: 11.89 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.453e-05/0.006442, allocations: 15.89 kB / 278.1 MB, free: 11.87 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.136e-05/0.006453, allocations: 7.984 kB / 278.1 MB, free: 11.86 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.169e-05/0.006505, allocations: 3.938 kB / 278.1 MB, free: 11.86 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.106e-05/0.006536, allocations: 4 kB / 278.1 MB, free: 11.86 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.347e-06/0.006539, allocations: 0 / 278.1 MB, free: 11.86 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.072e-05/0.00659, allocations: 157.7 kB / 278.3 MB, free: 11.7 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.00659, allocations: 0 / 278.3 MB, free: 11.7 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001552/0.006745, allocations: 4 kB / 278.3 MB, free: 11.7 MB / 266.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: 4 (sample1.u[2],sample1.u[1],sample1.y[1],sample1.y[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 2 * Array equations: 1 * 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 6.544e-05/0.006811, allocations: 103.2 kB / 278.4 MB, free: 11.59 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 7.158e-05/0.006882, allocations: 19.62 kB / 278.4 MB, free: 11.56 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.332e-06/0.006884, allocations: 0 / 278.4 MB, free: 11.56 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.614e-05/0.0069, allocations: 19.67 kB / 278.4 MB, free: 11.54 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002726/0.007172, allocations: 20.94 kB / 278.4 MB, free: 11.52 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002725/0.007445, allocations: 196.6 kB / 278.6 MB, free: 11.29 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.509e-05/0.0075, allocations: 59.34 kB / 278.7 MB, free: 11.21 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.625e-05/0.007526, allocations: 7.984 kB / 278.7 MB, free: 11.2 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.888e-05/0.007555, allocations: 12.5 kB / 278.7 MB, free: 11.19 MB / 266.7 MB Notification: Performance of SimCode: time 4.71e-07/0.007556, allocations: 0 / 278.7 MB, free: 11.19 MB / 266.7 MB Notification: Performance of Templates: time 0.002388/0.009944, allocations: 0.6648 MB / 279.4 MB, free: 10.55 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SampleVectorizedAndClocked/SampleVectorizedAndClocked.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.946898167952895]