Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.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.0008121/0.0008121, allocations: 76.72 kB / 22.21 MB, free: 2.289 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.0009475/0.0009475, allocations: 144.9 kB / 25.59 MB, free: 8.605 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.9681/0.9681, allocations: 173.4 MB / 202.3 MB, free: 8.305 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.IntegerSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.694e-06/1.694e-06, allocations: 0 / 269.2 MB, free: 9.789 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.465e-05/2.634e-05, allocations: 6.844 kB / 269.2 MB, free: 9.781 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked): time 0.002859/0.002885, allocations: 1.547 MB / 270.7 MB, free: 8.238 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004373/0.003323, allocations: 138.7 kB / 270.9 MB, free: 8.105 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.685e-05/0.003409, allocations: 4 kB / 270.9 MB, free: 8.102 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 5.593e-05/0.003465, allocations: 3.938 kB / 270.9 MB, free: 8.098 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001285/0.003594, allocations: 11.92 kB / 270.9 MB, free: 8.086 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001866/0.00378, allocations: 39.78 kB / 270.9 MB, free: 8.047 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 7.695e-05/0.003857, allocations: 31.91 kB / 271 MB, free: 8.016 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.784e-05/0.003935, allocations: 0 / 271 MB, free: 8.016 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.823e-05/0.003983, allocations: 19.92 kB / 271 MB, free: 7.996 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.239e-05/0.004026, allocations: 12.86 kB / 271 MB, free: 7.984 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.898e-05/0.004045, allocations: 0 / 271 MB, free: 7.984 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.077e-05/0.004055, allocations: 4 kB / 271 MB, free: 7.98 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.191e-05/0.004097, allocations: 9.312 kB / 271 MB, free: 7.973 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.5e-05/0.004122, allocations: 11.98 kB / 271 MB, free: 7.961 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 9.731e-05/0.00422, allocations: 27.84 kB / 271 MB, free: 7.934 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.184e-06/0.004222, allocations: 1.438 kB / 271 MB, free: 7.934 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.004223, allocations: 0 / 271 MB, free: 7.934 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.888e-06/0.004227, allocations: 0 / 271 MB, free: 7.934 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0003646/0.004591, allocations: 388.3 kB / 271.4 MB, free: 7.516 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.679e-05/0.004628, allocations: 12.56 kB / 271.4 MB, free: 7.504 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.507e-05/0.004663, allocations: 17.42 kB / 271.5 MB, free: 7.488 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001671/0.00483, allocations: 137.1 kB / 271.6 MB, free: 7.328 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.382e-05/0.004844, allocations: 2.25 kB / 271.6 MB, free: 7.328 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.134e-05/0.004855, allocations: 8.375 kB / 271.6 MB, free: 7.32 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001595/0.005015, allocations: 101.6 kB / 271.7 MB, free: 7.195 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.263e-06/0.005022, allocations: 1.531 kB / 271.7 MB, free: 7.195 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.552e-06/0.005029, allocations: 384 / 271.7 MB, free: 7.195 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.005034, allocations: 384 / 271.7 MB, free: 7.195 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.871e-05/0.005053, allocations: 8.562 kB / 271.7 MB, free: 7.188 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002292/0.005282, allocations: 244.1 kB / 272 MB, free: 6.918 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.074e-05/0.005333, allocations: 46.72 kB / 272 MB, free: 6.848 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.191e-05/0.005354, allocations: 24.8 kB / 272 MB, free: 6.816 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.474e-05/0.005369, allocations: 3.984 kB / 272 MB, free: 6.812 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.377e-05/0.005393, allocations: 41.33 kB / 272.1 MB, free: 6.762 MB / 250.7 MB Notification: Performance of pre-optimization done (n=2): time 9.62e-07/0.005394, allocations: 1.062 kB / 272.1 MB, free: 6.762 MB / 250.7 MB Notification: Performance of matching and sorting (n=2): time 0.0003336/0.005728, allocations: 49.53 kB / 272.1 MB, free: 6.707 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.807e-05/0.005786, allocations: 81.61 kB / 272.2 MB, free: 6.609 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001078/0.005893, allocations: 192.9 kB / 272.4 MB, free: 6.406 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.106e-05/0.005905, allocations: 29.69 kB / 272.4 MB, free: 6.371 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.394e-05/0.005958, allocations: 134.9 kB / 272.5 MB, free: 6.234 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.295e-06/0.005967, allocations: 3.953 kB / 272.5 MB, free: 6.23 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.42e-05/0.006001, allocations: 23.38 kB / 272.6 MB, free: 6.199 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.006133, allocations: 496.1 kB / 273.1 MB, free: 5.703 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.955e-06/0.006141, allocations: 0 / 273.1 MB, free: 5.703 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.026e-06/0.006149, allocations: 4 kB / 273.1 MB, free: 5.699 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.198e-05/0.006171, allocations: 11.67 kB / 273.1 MB, free: 5.684 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.442e-06/0.006173, allocations: 0 / 273.1 MB, free: 5.684 MB / 250.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.091e-05/0.006234, allocations: 41.7 kB / 273.1 MB, free: 5.637 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.374e-05/0.006247, allocations: 9.812 kB / 273.1 MB, free: 5.629 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.108e-06/0.006251, allocations: 0 / 273.1 MB, free: 5.629 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.508e-06/0.006261, allocations: 3.938 kB / 273.1 MB, free: 5.625 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.297e-05/0.006314, allocations: 4 kB / 273.1 MB, free: 5.621 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.364e-06/0.006316, allocations: 0 / 273.1 MB, free: 5.621 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.912e-05/0.006335, allocations: 0 / 273.1 MB, free: 5.621 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.808e-06/0.006339, allocations: 0 / 273.1 MB, free: 5.621 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: 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 7.935e-05/0.006419, allocations: 160.6 kB / 273.3 MB, free: 5.453 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.026e-05/0.006479, allocations: 41.69 kB / 273.3 MB, free: 5.406 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.905e-05/0.006508, allocations: 15.7 kB / 273.3 MB, free: 5.391 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.988e-06/0.006512, allocations: 3.938 kB / 273.3 MB, free: 5.387 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.573e-06/0.006513, allocations: 0 / 273.3 MB, free: 5.387 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.499e-06/0.006518, allocations: 4 kB / 273.3 MB, free: 5.383 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001278/0.006646, allocations: 105.2 kB / 273.5 MB, free: 5.254 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.006647, allocations: 0 / 273.5 MB, free: 5.254 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.044e-05/0.006688, allocations: 4 kB / 273.5 MB, free: 5.25 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.749e-06/0.006693, allocations: 4 kB / 273.5 MB, free: 5.246 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.811e-06/0.006698, allocations: 4 kB / 273.5 MB, free: 5.242 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.945e-06/0.006701, allocations: 3.984 kB / 273.5 MB, free: 5.238 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.684e-06/0.006703, allocations: 4.031 kB / 273.5 MB, free: 5.234 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001182/0.006821, allocations: 195.5 kB / 273.7 MB, free: 5.02 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.619e-05/0.006857, allocations: 19.88 kB / 273.7 MB, free: 5 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.034e-05/0.006868, allocations: 0 / 273.7 MB, free: 5 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.815e-05/0.006926, allocations: 4 kB / 273.7 MB, free: 4.996 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.268e-05/0.006949, allocations: 3.938 kB / 273.7 MB, free: 4.992 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.709e-06/0.006953, allocations: 3.938 kB / 273.7 MB, free: 4.988 MB / 250.7 MB Notification: Performance of sorting global known variables: time 5.95e-05/0.007013, allocations: 139.2 kB / 273.8 MB, free: 4.852 MB / 250.7 MB Notification: Performance of sort global known variables: time 8e-08/0.007013, allocations: 0 / 273.8 MB, free: 4.852 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002359/0.007249, allocations: 4 kB / 273.8 MB, free: 4.848 MB / 250.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 8.828e-05/0.007337, allocations: 99.27 kB / 273.9 MB, free: 4.742 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 6.341e-05/0.007401, allocations: 19.69 kB / 273.9 MB, free: 4.719 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.007402, allocations: 0 / 273.9 MB, free: 4.719 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.376e-05/0.007416, allocations: 7.688 kB / 274 MB, free: 4.707 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003194/0.007735, allocations: 16.23 kB / 274 MB, free: 4.688 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002657/0.008001, allocations: 141.5 kB / 274.1 MB, free: 4.52 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.99e-05/0.008041, allocations: 67.5 kB / 274.2 MB, free: 4.434 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 1.655e-05/0.008057, allocations: 3.938 kB / 274.2 MB, free: 4.43 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.599e-05/0.008113, allocations: 70.2 kB / 274.2 MB, free: 4.359 MB / 250.7 MB Notification: Performance of SimCode: time 8.72e-07/0.008114, allocations: 0 / 274.2 MB, free: 4.359 MB / 250.7 MB Notification: Performance of Templates: time 0.0026/0.01071, allocations: 0.5291 MB / 274.8 MB, free: 3.844 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SampleClocked/SampleClocked.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.813446821179241]