Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.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.0008287/0.0008287, allocations: 87.62 kB / 21.43 MB, free: 3.133 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.003392/0.003392, allocations: 160.7 kB / 24.7 MB, free: 9.41 MB / 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.8446/0.8446, allocations: 177.1 MB / 205 MB, free: 5.734 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.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.412e-06/1.412e-06, allocations: 0 / 325.8 MB, free: 15.45 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.954e-05/2.095e-05, allocations: 12.67 kB / 325.8 MB, free: 15.44 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked): time 0.001794/0.001815, allocations: 1.52 MB / 327.4 MB, free: 13.91 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003042/0.002119, allocations: 143.4 kB / 327.5 MB, free: 13.77 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.7e-05/0.002196, allocations: 4 kB / 327.5 MB, free: 13.77 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.936e-05/0.002235, allocations: 7.938 kB / 327.5 MB, free: 13.76 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001278/0.002363, allocations: 7.922 kB / 327.5 MB, free: 13.75 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002006/0.002564, allocations: 39.78 kB / 327.6 MB, free: 13.71 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.682e-05/0.00265, allocations: 23.92 kB / 327.6 MB, free: 13.69 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.29e-05/0.002743, allocations: 11.98 kB / 327.6 MB, free: 13.68 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.192e-05/0.002785, allocations: 19.92 kB / 327.6 MB, free: 13.66 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.714e-05/0.002822, allocations: 4 kB / 327.6 MB, free: 13.65 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.126e-05/0.002844, allocations: 0 / 327.6 MB, free: 13.65 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.456e-06/0.002852, allocations: 4 kB / 327.6 MB, free: 13.65 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.64e-05/0.002898, allocations: 19.91 kB / 327.6 MB, free: 13.63 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.84e-05/0.002917, allocations: 0 / 327.6 MB, free: 13.63 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.607e-05/0.003013, allocations: 43.83 kB / 327.7 MB, free: 13.59 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.943e-06/0.003015, allocations: 0 / 327.7 MB, free: 13.59 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.003016, allocations: 0 / 327.7 MB, free: 13.59 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.587e-06/0.00302, allocations: 0 / 327.7 MB, free: 13.59 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0003564/0.003376, allocations: 294 kB / 328 MB, free: 13.27 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.689e-05/0.003413, allocations: 8.031 kB / 328 MB, free: 13.26 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.164e-05/0.003444, allocations: 8.891 kB / 328 MB, free: 13.25 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001613/0.003606, allocations: 133.6 kB / 328.1 MB, free: 13.09 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.654e-06/0.003613, allocations: 384 / 328.1 MB, free: 13.09 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.347e-06/0.003623, allocations: 8.375 kB / 328.1 MB, free: 13.09 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001893/0.003812, allocations: 89.61 kB / 328.2 MB, free: 12.98 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.113e-06/0.003819, allocations: 192 / 328.2 MB, free: 12.98 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.356e-06/0.003827, allocations: 384 / 328.2 MB, free: 12.98 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.568e-06/0.003832, allocations: 384 / 328.2 MB, free: 12.98 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.94e-05/0.003871, allocations: 23.86 kB / 328.2 MB, free: 12.96 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002144/0.004086, allocations: 205.4 kB / 328.4 MB, free: 12.72 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.042e-05/0.004136, allocations: 41.16 kB / 328.5 MB, free: 12.66 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.95e-05/0.004166, allocations: 25.77 kB / 328.5 MB, free: 12.63 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.199e-05/0.004188, allocations: 0 / 328.5 MB, free: 12.63 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.252e-05/0.00421, allocations: 38.5 kB / 328.5 MB, free: 12.59 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 8.12e-07/0.004211, allocations: 0 / 328.5 MB, free: 12.59 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001557/0.004367, allocations: 61.61 kB / 328.6 MB, free: 12.52 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.124e-05/0.004408, allocations: 85.05 kB / 328.7 MB, free: 12.42 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.223e-05/0.00449, allocations: 132.9 kB / 328.8 MB, free: 12.28 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.007e-06/0.004499, allocations: 25.95 kB / 328.8 MB, free: 12.25 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.854e-05/0.004538, allocations: 96.09 kB / 328.9 MB, free: 12.15 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.993e-06/0.004545, allocations: 0 / 328.9 MB, free: 12.15 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.374e-05/0.004569, allocations: 17.7 kB / 328.9 MB, free: 12.12 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.997e-05/0.004649, allocations: 314.8 kB / 329.3 MB, free: 11.81 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.654e-05/0.004665, allocations: 4 kB / 329.3 MB, free: 11.8 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.377e-05/0.004679, allocations: 11.92 kB / 329.3 MB, free: 11.79 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.07e-05/0.00471, allocations: 16.84 kB / 329.3 MB, free: 11.77 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.004712, allocations: 0 / 329.3 MB, free: 11.77 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.014e-05/0.004762, allocations: 57.64 kB / 329.3 MB, free: 11.71 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.144e-05/0.004773, allocations: 8 kB / 329.3 MB, free: 11.7 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.591e-06/0.004779, allocations: 3.938 kB / 329.4 MB, free: 11.7 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.069e-05/0.004789, allocations: 0 / 329.4 MB, free: 11.7 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.234e-05/0.004832, allocations: 4 kB / 329.4 MB, free: 11.7 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.979e-06/0.004837, allocations: 3.984 kB / 329.4 MB, free: 11.69 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.18e-05/0.004849, allocations: 0 / 329.4 MB, free: 11.69 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.759e-06/0.004853, allocations: 0 / 329.4 MB, free: 11.69 MB / 298.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: 1 (step.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * 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.102e-05/0.004914, allocations: 125.9 kB / 329.5 MB, free: 11.56 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.67e-05/0.004941, allocations: 29.7 kB / 329.5 MB, free: 11.52 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.471e-05/0.004966, allocations: 23.69 kB / 329.5 MB, free: 11.5 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.004967, allocations: 0 / 329.5 MB, free: 11.5 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.92e-06/0.004972, allocations: 4 kB / 329.5 MB, free: 11.5 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.465e-06/0.004975, allocations: 0 / 329.5 MB, free: 11.5 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.479e-05/0.00506, allocations: 117.3 kB / 329.7 MB, free: 11.36 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.005061, allocations: 0 / 329.7 MB, free: 11.36 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.673e-05/0.005077, allocations: 7.938 kB / 329.7 MB, free: 11.35 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.92e-07/0.005078, allocations: 0 / 329.7 MB, free: 11.35 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.62e-06/0.005084, allocations: 0 / 329.7 MB, free: 11.35 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.005086, allocations: 7.969 kB / 329.7 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.09e-06/0.005091, allocations: 7.984 kB / 329.7 MB, free: 11.33 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.575e-05/0.005176, allocations: 148.4 kB / 329.8 MB, free: 11.17 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.509e-05/0.005202, allocations: 23.88 kB / 329.8 MB, free: 11.14 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.148e-06/0.005211, allocations: 3.938 kB / 329.9 MB, free: 11.14 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.886e-05/0.00524, allocations: 3.938 kB / 329.9 MB, free: 11.14 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.512e-05/0.005265, allocations: 4 kB / 329.9 MB, free: 11.13 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.154e-06/0.005267, allocations: 0 / 329.9 MB, free: 11.13 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.336e-05/0.00531, allocations: 107.2 kB / 330 MB, free: 11.03 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.00531, allocations: 4.031 kB / 330 MB, free: 11.02 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001322/0.005442, allocations: 4 kB / 330 MB, free: 11.02 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (step.y,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (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 Backend phase and start with SimCode phase: time 6.212e-05/0.005505, allocations: 95.19 kB / 330.1 MB, free: 10.92 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 7.386e-05/0.005578, allocations: 19.98 kB / 330.1 MB, free: 10.9 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.00558, allocations: 0 / 330.1 MB, free: 10.9 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 1.561e-05/0.005596, allocations: 7.938 kB / 330.1 MB, free: 10.89 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002069/0.005803, allocations: 16.02 kB / 330.1 MB, free: 10.88 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002334/0.006036, allocations: 180 kB / 330.3 MB, free: 10.66 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.591e-05/0.006102, allocations: 75.59 kB / 330.4 MB, free: 10.57 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.366e-05/0.006125, allocations: 8.5 kB / 330.4 MB, free: 10.56 MB / 298.7 MB Notification: Performance of SimCode: time 3.7e-07/0.006126, allocations: 0 / 330.4 MB, free: 10.56 MB / 298.7 MB Notification: Performance of Templates: time 0.001456/0.007582, allocations: 0.6327 MB / 331 MB, free: 9.93 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SampleClocked/SampleClocked.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.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: 3.8963456442579627]