Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.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.001135/0.001135, allocations: 85.91 kB / 22.22 MB, free: 2.285 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.001278/0.001278, allocations: 167.4 kB / 25.61 MB, free: 8.578 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 1.014/1.014, allocations: 177 MB / 205.9 MB, free: 4.449 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.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.064e-06/2.064e-06, allocations: 0 / 274.1 MB, free: 4.293 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.155e-05/3.361e-05, allocations: 2.312 kB / 274.1 MB, free: 4.289 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.003062/0.003096, allocations: 1.661 MB / 275.8 MB, free: 2.629 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003539/0.006634, allocations: 177.4 kB / 275.9 MB, free: 2.457 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001312/0.006765, allocations: 7.938 kB / 276 MB, free: 2.449 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001263/0.006892, allocations: 15.8 kB / 276 MB, free: 2.434 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000139/0.007031, allocations: 11.88 kB / 276 MB, free: 2.422 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002735/0.007304, allocations: 51.88 kB / 276 MB, free: 2.371 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002211/0.009515, allocations: 65.83 kB / 276.1 MB, free: 2.309 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001454/0.00966, allocations: 27.78 kB / 276.1 MB, free: 2.281 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.983e-05/0.00973, allocations: 43.89 kB / 276.2 MB, free: 2.238 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001056/0.009836, allocations: 27.91 kB / 276.2 MB, free: 2.211 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.536e-05/0.009861, allocations: 4 kB / 276.2 MB, free: 2.207 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.494e-05/0.009876, allocations: 4 kB / 276.2 MB, free: 2.203 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.25e-05/0.009929, allocations: 32.81 kB / 276.2 MB, free: 2.172 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.54e-05/0.009964, allocations: 23.86 kB / 276.3 MB, free: 2.148 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001593/0.01012, allocations: 72.3 kB / 276.3 MB, free: 2.078 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.01013, allocations: 0 / 276.3 MB, free: 2.078 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.01013, allocations: 2.438 kB / 276.3 MB, free: 2.078 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.318e-06/0.01013, allocations: 0 / 276.3 MB, free: 2.078 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0004613/0.01059, allocations: 432.1 kB / 276.8 MB, free: 1.617 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.285e-05/0.01064, allocations: 8.031 kB / 276.8 MB, free: 1.609 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.917e-05/0.01069, allocations: 24.88 kB / 276.8 MB, free: 1.586 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001968/0.01088, allocations: 153.8 kB / 276.9 MB, free: 1.41 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.246e-05/0.01089, allocations: 4.375 kB / 276.9 MB, free: 1.406 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.341e-05/0.01091, allocations: 8.375 kB / 276.9 MB, free: 1.398 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002713/0.01118, allocations: 182.5 kB / 277.1 MB, free: 1.191 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.407e-06/0.01119, allocations: 4.188 kB / 277.1 MB, free: 1.188 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.048e-05/0.0112, allocations: 4.375 kB / 277.1 MB, free: 1.184 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.905e-06/0.01121, allocations: 4.375 kB / 277.1 MB, free: 1.18 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.81e-05/0.01125, allocations: 23.86 kB / 277.2 MB, free: 1.156 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001407/0.01265, allocations: 394.9 kB / 277.5 MB, free: 0.7344 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001397/0.01279, allocations: 109.3 kB / 277.7 MB, free: 0.5898 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.475e-05/0.01285, allocations: 47.17 kB / 277.7 MB, free: 0.5312 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.982e-05/0.01287, allocations: 4 kB / 277.7 MB, free: 0.5273 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.943e-05/0.0129, allocations: 45.31 kB / 277.7 MB, free: 484 kB / 250.7 MB Notification: Performance of pre-optimization done (n=12): time 1.563e-06/0.0129, allocations: 4 kB / 277.8 MB, free: 480 kB / 250.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002323/0.01313, allocations: 97.45 kB / 277.8 MB, free: 376 kB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.489e-05/0.0132, allocations: 118.7 kB / 278 MB, free: 232 kB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003167/0.01636, allocations: 216.6 kB / 278.2 MB, free: 0 / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.468e-05/0.0164, allocations: 29.7 kB / 278.2 MB, free: 15.96 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.726e-05/0.01646, allocations: 139.1 kB / 278.3 MB, free: 15.82 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.602e-05/0.01648, allocations: 7.953 kB / 278.3 MB, free: 15.81 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.42e-05/0.01652, allocations: 27.36 kB / 278.4 MB, free: 15.78 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000135/0.01666, allocations: 0.4884 MB / 278.9 MB, free: 15.28 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.611e-05/0.01668, allocations: 12.23 kB / 278.9 MB, free: 15.27 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.461e-05/0.0167, allocations: 19.38 kB / 278.9 MB, free: 15.24 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.521e-05/0.01674, allocations: 23.31 kB / 278.9 MB, free: 15.21 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.01674, allocations: 0 / 278.9 MB, free: 15.21 MB / 266.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.162e-05/0.01682, allocations: 41.66 kB / 279 MB, free: 15.16 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.538e-05/0.01683, allocations: 8 kB / 279 MB, free: 15.15 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.121e-06/0.01684, allocations: 0 / 279 MB, free: 15.15 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.351e-05/0.01685, allocations: 11.91 kB / 279 MB, free: 15.14 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.681e-05/0.01692, allocations: 12.06 kB / 279 MB, free: 15.13 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.116e-06/0.01692, allocations: 3.938 kB / 279 MB, free: 15.12 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.422e-05/0.01695, allocations: 4 kB / 279 MB, free: 15.12 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.831e-06/0.01695, allocations: 0 / 279 MB, free: 15.12 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,hold1.y) * 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.171e-05/0.01705, allocations: 160.6 kB / 279.2 MB, free: 14.95 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001241/0.01717, allocations: 73.58 kB / 279.2 MB, free: 14.88 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.155e-05/0.01721, allocations: 20.77 kB / 279.2 MB, free: 14.85 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.492e-06/0.01722, allocations: 7.938 kB / 279.3 MB, free: 14.84 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.836e-06/0.01722, allocations: 0 / 279.3 MB, free: 14.84 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.489e-06/0.01723, allocations: 0 / 279.3 MB, free: 14.84 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002161/0.01744, allocations: 125.1 kB / 279.4 MB, free: 14.7 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.01744, allocations: 0 / 279.4 MB, free: 14.7 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.75e-05/0.01753, allocations: 23.98 kB / 279.4 MB, free: 14.67 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.417e-06/0.01753, allocations: 0 / 279.4 MB, free: 14.67 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.492e-06/0.01754, allocations: 0 / 279.4 MB, free: 14.67 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.058e-06/0.01755, allocations: 4 kB / 279.4 MB, free: 14.67 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.01755, allocations: 0 / 279.4 MB, free: 14.67 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001871/0.01773, allocations: 326.6 kB / 279.7 MB, free: 14.32 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.167e-05/0.01779, allocations: 23.89 kB / 279.7 MB, free: 14.3 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.524e-05/0.0178, allocations: 4 kB / 279.7 MB, free: 14.3 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.538e-05/0.0179, allocations: 8.031 kB / 279.8 MB, free: 14.29 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.348e-05/0.01793, allocations: 7.938 kB / 279.8 MB, free: 14.28 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.683e-06/0.01794, allocations: 3.984 kB / 279.8 MB, free: 14.28 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.755e-05/0.01801, allocations: 150.6 kB / 279.9 MB, free: 14.13 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01801, allocations: 0 / 279.9 MB, free: 14.13 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002617/0.01828, allocations: 8 kB / 279.9 MB, free: 14.12 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: 12 (sample1.u,hold1.y,sample1.y,hold1.u,sample2.y,sum1.u[1],sum1.u[2],sum1.y,sum2.u[1],sum2.u[2],sum2.y,integerConstant.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 12 * 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.0001241/0.0184, allocations: 111.2 kB / 280 MB, free: 14.01 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 9.327e-05/0.01849, allocations: 27.62 kB / 280.1 MB, free: 13.98 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.0185, allocations: 4 kB / 280.1 MB, free: 13.97 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.632e-05/0.01851, allocations: 11.67 kB / 280.1 MB, free: 13.96 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004297/0.01894, allocations: 54.7 kB / 280.1 MB, free: 13.91 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003507/0.02245, allocations: 230.8 kB / 280.4 MB, free: 13.64 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.403e-05/0.02251, allocations: 75.33 kB / 280.4 MB, free: 13.55 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.822e-05/0.02254, allocations: 0 / 280.4 MB, free: 13.55 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.723e-05/0.02262, allocations: 82.19 kB / 280.5 MB, free: 13.46 MB / 266.7 MB Notification: Performance of SimCode: time 1.322e-06/0.02262, allocations: 4.25 kB / 280.5 MB, free: 13.46 MB / 266.7 MB Notification: Performance of Templates: time 0.006404/0.02902, allocations: 1.009 MB / 281.5 MB, free: 12.48 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Sample2/Sample2.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.839034057687968]