Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.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.0009203/0.0009203, allocations: 84.73 kB / 21.5 MB, free: 2.988 MB / 18.57 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.0009315/0.0009315, allocations: 161 kB / 24.91 MB, free: 9.184 MB / 18.57 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 0.9514/0.9514, allocations: 177 MB / 205.2 MB, free: 5.465 MB / 186.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.IntegerSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.232e-06/1.232e-06, allocations: 0 / 273.4 MB, free: 1.207 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.441e-05/1.564e-05, allocations: 2.312 kB / 273.4 MB, free: 1.203 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked): time 0.002023/0.002038, allocations: 1.608 MB / 275 MB, free: 15.58 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003016/0.00234, allocations: 139.4 kB / 275.2 MB, free: 15.45 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.837e-05/0.002398, allocations: 4 kB / 275.2 MB, free: 15.44 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 3.762e-05/0.002436, allocations: 3.938 kB / 275.2 MB, free: 15.44 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001078/0.002544, allocations: 7.938 kB / 275.2 MB, free: 15.43 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001617/0.002705, allocations: 39.83 kB / 275.2 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 7.508e-05/0.00278, allocations: 31.86 kB / 275.2 MB, free: 15.36 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.556e-05/0.002846, allocations: 4 kB / 275.3 MB, free: 15.36 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.07e-05/0.002887, allocations: 11.98 kB / 275.3 MB, free: 15.34 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002886/0.003175, allocations: 23.91 kB / 275.3 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.483e-05/0.00319, allocations: 0 / 275.3 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.662e-06/0.003197, allocations: 4 kB / 275.3 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.571e-05/0.003232, allocations: 7.938 kB / 275.3 MB, free: 15.31 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 1.59e-05/0.003248, allocations: 8 kB / 275.3 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 7.939e-05/0.003328, allocations: 35.77 kB / 275.3 MB, free: 15.27 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.272e-06/0.003329, allocations: 0 / 275.3 MB, free: 15.27 MB / 266.7 MB Notification: Performance of FrontEnd: time 4.3e-07/0.003329, allocations: 0 / 275.3 MB, free: 15.27 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.825e-06/0.003332, allocations: 0 / 275.3 MB, free: 15.27 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0002571/0.003589, allocations: 256.8 kB / 275.6 MB, free: 14.99 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.623e-05/0.003615, allocations: 11.98 kB / 275.6 MB, free: 14.98 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.139e-05/0.003637, allocations: 12.92 kB / 275.6 MB, free: 14.96 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001211/0.003758, allocations: 133.7 kB / 275.7 MB, free: 14.81 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.53e-06/0.003763, allocations: 4.312 kB / 275.7 MB, free: 14.8 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.36e-06/0.003769, allocations: 384 / 275.8 MB, free: 14.8 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001244/0.003893, allocations: 98.3 kB / 275.8 MB, free: 14.69 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.582e-06/0.0039, allocations: 192 / 275.8 MB, free: 14.69 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.531e-06/0.003905, allocations: 4.359 kB / 275.9 MB, free: 14.68 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.377e-06/0.003909, allocations: 4.375 kB / 275.9 MB, free: 14.68 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.249e-05/0.003921, allocations: 11.88 kB / 275.9 MB, free: 14.67 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001373/0.004058, allocations: 153.2 kB / 276 MB, free: 14.5 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.529e-05/0.004094, allocations: 37.16 kB / 276.1 MB, free: 14.45 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.197e-05/0.004106, allocations: 9.719 kB / 276.1 MB, free: 14.43 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.197e-06/0.004115, allocations: 0 / 276.1 MB, free: 14.43 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.675e-05/0.004132, allocations: 34.62 kB / 276.1 MB, free: 14.39 MB / 266.7 MB Notification: Performance of pre-optimization done (n=2): time 5.11e-07/0.004132, allocations: 0 / 276.1 MB, free: 14.39 MB / 266.7 MB Notification: Performance of matching and sorting (n=2): time 8.566e-05/0.004218, allocations: 45.84 kB / 276.1 MB, free: 14.34 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.514e-05/0.004253, allocations: 89.08 kB / 276.2 MB, free: 14.23 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.57e-05/0.004319, allocations: 133.6 kB / 276.4 MB, free: 14.09 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.614e-06/0.004326, allocations: 25.7 kB / 276.4 MB, free: 14.06 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.261e-05/0.004359, allocations: 84.14 kB / 276.5 MB, free: 13.97 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.903e-06/0.004366, allocations: 0 / 276.5 MB, free: 13.97 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.316e-05/0.004389, allocations: 25.66 kB / 276.5 MB, free: 13.94 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.733e-05/0.004456, allocations: 314.8 kB / 276.8 MB, free: 13.62 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.561e-06/0.004462, allocations: 0 / 276.8 MB, free: 13.62 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.848e-06/0.004472, allocations: 7.938 kB / 276.8 MB, free: 13.62 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.731e-05/0.004489, allocations: 12.92 kB / 276.8 MB, free: 13.6 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.382e-06/0.00449, allocations: 0 / 276.8 MB, free: 13.6 MB / 266.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.099e-05/0.004521, allocations: 37.69 kB / 276.9 MB, free: 13.56 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.766e-06/0.00453, allocations: 4 kB / 276.9 MB, free: 13.55 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.176e-06/0.004533, allocations: 0 / 276.9 MB, free: 13.55 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.446e-06/0.004542, allocations: 0 / 276.9 MB, free: 13.55 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.72e-05/0.004579, allocations: 7.938 kB / 276.9 MB, free: 13.55 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.034e-06/0.004581, allocations: 0 / 276.9 MB, free: 13.55 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.045e-05/0.004591, allocations: 0 / 276.9 MB, free: 13.55 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.396e-06/0.004595, allocations: 0 / 276.9 MB, free: 13.55 MB / 266.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 5.213e-05/0.004647, allocations: 124.6 kB / 277 MB, free: 13.41 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.759e-05/0.004675, allocations: 33.69 kB / 277 MB, free: 13.38 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.131e-05/0.004696, allocations: 11.81 kB / 277 MB, free: 13.36 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.323e-06/0.004697, allocations: 0 / 277 MB, free: 13.36 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.514e-06/0.0047, allocations: 3.938 kB / 277 MB, free: 13.36 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.004702, allocations: 0 / 277 MB, free: 13.36 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.165e-05/0.004774, allocations: 73.88 kB / 277.1 MB, free: 13.27 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.11e-07/0.004774, allocations: 0 / 277.1 MB, free: 13.27 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.428e-05/0.004789, allocations: 4 kB / 277.1 MB, free: 13.27 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.004791, allocations: 3.984 kB / 277.1 MB, free: 13.26 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.997e-06/0.004795, allocations: 8.031 kB / 277.1 MB, free: 13.25 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.91e-07/0.004795, allocations: 0 / 277.1 MB, free: 13.25 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.004796, allocations: 0 / 277.1 MB, free: 13.25 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.557e-05/0.004852, allocations: 136.3 kB / 277.3 MB, free: 13.1 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.884e-05/0.004871, allocations: 15.92 kB / 277.3 MB, free: 13.09 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.526e-06/0.004879, allocations: 4 kB / 277.3 MB, free: 13.08 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.541e-05/0.004905, allocations: 0 / 277.3 MB, free: 13.08 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.886e-05/0.004923, allocations: 0 / 277.3 MB, free: 13.08 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.158e-06/0.004928, allocations: 4 kB / 277.3 MB, free: 13.08 MB / 266.7 MB Notification: Performance of sorting global known variables: time 2.014e-05/0.004948, allocations: 24.77 kB / 277.3 MB, free: 13.05 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.004948, allocations: 32 / 277.3 MB, free: 13.05 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001056/0.005053, allocations: 11.95 kB / 277.3 MB, free: 13.04 MB / 266.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.117e-05/0.005115, allocations: 80.41 kB / 277.4 MB, free: 12.95 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 4.484e-05/0.005159, allocations: 20.8 kB / 277.4 MB, free: 12.93 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.005162, allocations: 0 / 277.4 MB, free: 12.93 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 9.798e-06/0.005172, allocations: 8.859 kB / 277.4 MB, free: 12.91 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000146/0.005318, allocations: 15.58 kB / 277.4 MB, free: 12.9 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001981/0.005516, allocations: 143.5 kB / 277.6 MB, free: 12.73 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.244e-05/0.005548, allocations: 59.34 kB / 277.6 MB, free: 12.66 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.307e-05/0.005561, allocations: 0 / 277.6 MB, free: 12.66 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.895e-05/0.0056, allocations: 51.38 kB / 277.7 MB, free: 12.61 MB / 266.7 MB Notification: Performance of SimCode: time 4.81e-07/0.005601, allocations: 0 / 277.7 MB, free: 12.61 MB / 266.7 MB Notification: Performance of Templates: time 0.0017/0.007301, allocations: 0.5101 MB / 278.2 MB, free: 12.1 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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","",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.5990560320205986]