Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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.TickBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001827/0.001827, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002217/0.002217, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.452/1.452, allocations: 227.4 MB / 247.5 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001213/0.001214, allocations: 63.91 kB / 308.4 MB, free: 15.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1232/0.1245, allocations: 50.53 MB / 358.9 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep): time 0.002925/0.1275, allocations: 1.426 MB / 360.3 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.000191/0.1277, allocations: 35.91 kB / 360.4 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.379e-05/0.1277, allocations: 0 / 360.4 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.145e-05/0.1278, allocations: 3.938 kB / 360.4 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 3.426e-05/0.1278, allocations: 3.938 kB / 360.4 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000274/0.1281, allocations: 23.47 kB / 360.4 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 8.585e-05/0.1282, allocations: 27.92 kB / 360.4 MB, free: 11.83 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001214/0.1283, allocations: 11.98 kB / 360.4 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.063e-05/0.1284, allocations: 11.94 kB / 360.4 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.046e-05/0.1284, allocations: 15.92 kB / 360.5 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.757e-05/0.1285, allocations: 4 kB / 360.5 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.478e-06/0.1285, allocations: 4 kB / 360.5 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.826e-05/0.1285, allocations: 7.984 kB / 360.5 MB, free: 11.78 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.025e-05/0.1286, allocations: 19.86 kB / 360.5 MB, free: 11.76 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 9.95e-05/0.1287, allocations: 27.91 kB / 360.5 MB, free: 11.73 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.1287, allocations: 0 / 360.5 MB, free: 11.73 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1287, allocations: 0 / 360.5 MB, free: 11.73 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.838e-06/0.1287, allocations: 0 / 360.5 MB, free: 11.73 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004476/0.1292, allocations: 347.4 kB / 360.9 MB, free: 11.34 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.917e-05/0.1292, allocations: 8.031 kB / 360.9 MB, free: 11.33 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.458e-05/0.1292, allocations: 12.84 kB / 360.9 MB, free: 11.32 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002201/0.1295, allocations: 176.3 kB / 361 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.617e-05/0.1295, allocations: 8.375 kB / 361.1 MB, free: 11.1 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.161e-05/0.1295, allocations: 384 / 361.1 MB, free: 11.1 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003449/0.1299, allocations: 119.8 kB / 361.2 MB, free: 10.97 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.586e-06/0.1299, allocations: 4.125 kB / 361.2 MB, free: 10.97 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.033e-05/0.1299, allocations: 7.938 kB / 361.2 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.1299, allocations: 3.938 kB / 361.2 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001104/0.13, allocations: 27.97 kB / 361.2 MB, free: 10.93 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000155/0.1302, allocations: 157.6 kB / 361.4 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001502/0.1304, allocations: 58.48 kB / 361.4 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.119e-05/0.1304, allocations: 24.92 kB / 361.5 MB, free: 10.63 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.176e-06/0.1305, allocations: 0 / 361.5 MB, free: 10.63 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.099e-05/0.1305, allocations: 42.55 kB / 361.5 MB, free: 10.58 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 9.22e-07/0.1305, allocations: 0 / 361.5 MB, free: 10.58 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002714/0.1308, allocations: 81.58 kB / 361.6 MB, free: 10.5 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.262e-05/0.1308, allocations: 59.34 kB / 361.6 MB, free: 10.43 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001015/0.131, allocations: 105.9 kB / 361.7 MB, free: 10.31 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.447e-05/0.131, allocations: 29.69 kB / 361.8 MB, free: 10.28 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.768e-05/0.131, allocations: 80.14 kB / 361.8 MB, free: 10.2 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.768e-05/0.131, allocations: 7.906 kB / 361.8 MB, free: 10.19 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.739e-05/0.1311, allocations: 17.72 kB / 361.9 MB, free: 10.16 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001114/0.1312, allocations: 322.8 kB / 362.2 MB, free: 9.84 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.563e-05/0.1312, allocations: 4 kB / 362.2 MB, free: 9.836 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.153e-05/0.1313, allocations: 27.44 kB / 362.2 MB, free: 9.797 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.574e-05/0.1313, allocations: 39.38 kB / 362.3 MB, free: 9.746 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.1313, allocations: 0 / 362.3 MB, free: 9.746 MB / 302.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.028e-05/0.1314, allocations: 61.62 kB / 362.3 MB, free: 9.68 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.137e-05/0.1314, allocations: 4 kB / 362.3 MB, free: 9.676 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.1314, allocations: 3.938 kB / 362.3 MB, free: 9.672 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.389e-05/0.1315, allocations: 4 kB / 362.3 MB, free: 9.668 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.409e-05/0.1315, allocations: 12.05 kB / 362.3 MB, free: 9.656 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.614e-06/0.1315, allocations: 12.36 kB / 362.3 MB, free: 9.645 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.914e-05/0.1316, allocations: 0 / 362.3 MB, free: 9.645 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.937e-06/0.1316, allocations: 4 kB / 362.4 MB, free: 9.641 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($CLKPRE.step.counter,step.counter,step.y,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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.881e-05/0.1317, allocations: 121.7 kB / 362.5 MB, free: 9.512 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001532/0.1318, allocations: 65.58 kB / 362.5 MB, free: 9.441 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.038e-05/0.1319, allocations: 11.84 kB / 362.5 MB, free: 9.422 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/0.1319, allocations: 4 kB / 362.5 MB, free: 9.418 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.1319, allocations: 0 / 362.5 MB, free: 9.418 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.1319, allocations: 7.984 kB / 362.6 MB, free: 9.41 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.495e-05/0.132, allocations: 153.7 kB / 362.7 MB, free: 9.211 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.01e-07/0.132, allocations: 0 / 362.7 MB, free: 9.211 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.944e-05/0.1321, allocations: 15.92 kB / 362.7 MB, free: 9.195 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.1321, allocations: 0 / 362.7 MB, free: 9.195 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.765e-06/0.1321, allocations: 7.875 kB / 362.7 MB, free: 9.188 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.1321, allocations: 0 / 362.7 MB, free: 9.188 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1321, allocations: 0 / 362.7 MB, free: 9.188 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001556/0.1323, allocations: 85.11 kB / 362.8 MB, free: 9.086 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.159e-05/0.1323, allocations: 93 kB / 362.9 MB, free: 8.977 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.748e-05/0.1323, allocations: 3.938 kB / 362.9 MB, free: 8.973 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.034e-05/0.1324, allocations: 4 kB / 362.9 MB, free: 8.969 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.259e-06/0.1324, allocations: 0 / 362.9 MB, free: 8.969 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.172e-06/0.1324, allocations: 4 kB / 362.9 MB, free: 8.965 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.377e-05/0.1324, allocations: 83.27 kB / 363 MB, free: 8.883 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1325, allocations: 0 / 363 MB, free: 8.883 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001992/0.1327, allocations: 4 kB / 363 MB, free: 8.879 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (assignClock1.u,assignClock1.y,step.y,step.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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.0001148/0.1328, allocations: 111.2 kB / 363.1 MB, free: 8.762 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001452/0.1329, allocations: 23.98 kB / 363.1 MB, free: 8.738 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.1329, allocations: 0 / 363.1 MB, free: 8.738 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.61e-07/0.1329, allocations: 0 / 363.1 MB, free: 8.738 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002654/0.1332, allocations: 35.86 kB / 363.2 MB, free: 8.703 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002848/0.1335, allocations: 123.1 kB / 363.3 MB, free: 8.559 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002645/0.1338, allocations: 0.6809 MB / 364 MB, free: 7.852 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.255e-05/0.1338, allocations: 4 kB / 364 MB, free: 7.848 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.582e-05/0.1338, allocations: 11.44 kB / 364 MB, free: 7.836 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1339, allocations: 0 / 364 MB, free: 7.836 MB / 302.1 MB Notification: Performance of Templates: time 0.002584/0.1364, allocations: 434.7 kB / 364.4 MB, free: 7.418 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/TickBasedStep/TickBasedStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches