Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.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.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001454/0.001454, allocations: 108.2 kB / 17.33 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001665/0.001665, allocations: 209.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.567/1.567, allocations: 227.4 MB / 246.4 MB, free: 10.76 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001394/0.001393, allocations: 66.66 kB / 306.4 MB, free: 0.9453 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1198/0.1212, allocations: 50.52 MB / 357 MB, free: 14.42 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock): time 0.002602/0.1239, allocations: 0.8939 MB / 357.9 MB, free: 13.52 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003907/0.1243, allocations: 123.7 kB / 358 MB, free: 13.4 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001097/0.1244, allocations: 0 / 358 MB, free: 13.4 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001203/0.1246, allocations: 3.938 kB / 358 MB, free: 13.4 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000145/0.1247, allocations: 15.92 kB / 358 MB, free: 13.38 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002365/0.125, allocations: 31.97 kB / 358 MB, free: 13.35 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001013/0.1251, allocations: 39.92 kB / 358.1 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001152/0.1252, allocations: 31.97 kB / 358.1 MB, free: 13.28 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.402e-05/0.1253, allocations: 19.81 kB / 358.1 MB, free: 13.26 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.88e-05/0.1253, allocations: 19.92 kB / 358.1 MB, free: 13.24 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.88e-05/0.1254, allocations: 4 kB / 358.2 MB, free: 13.24 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.243e-05/0.1254, allocations: 4 kB / 358.2 MB, free: 13.23 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.866e-05/0.1254, allocations: 19.91 kB / 358.2 MB, free: 13.21 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.984e-05/0.1255, allocations: 35.73 kB / 358.2 MB, free: 13.18 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001207/0.1256, allocations: 55.8 kB / 358.3 MB, free: 13.12 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.1256, allocations: 4 kB / 358.3 MB, free: 13.12 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.1256, allocations: 0 / 358.3 MB, free: 13.12 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.54e-06/0.1256, allocations: 0 / 358.3 MB, free: 13.12 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0004904/0.1261, allocations: 371.4 kB / 358.6 MB, free: 12.71 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.609e-05/0.1262, allocations: 8.031 kB / 358.6 MB, free: 12.7 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.887e-05/0.1262, allocations: 16.75 kB / 358.7 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001954/0.1264, allocations: 196.1 kB / 358.8 MB, free: 12.45 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.316e-06/0.1264, allocations: 4.375 kB / 358.8 MB, free: 12.45 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.534e-05/0.1265, allocations: 12.38 kB / 358.9 MB, free: 12.44 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002984/0.1268, allocations: 135.7 kB / 359 MB, free: 12.29 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.096e-06/0.1268, allocations: 192 / 359 MB, free: 12.29 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.278e-05/0.1268, allocations: 11.94 kB / 359 MB, free: 12.28 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.938e-06/0.1268, allocations: 0 / 359 MB, free: 12.28 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.21e-05/0.1269, allocations: 23.92 kB / 359 MB, free: 12.26 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000153/0.127, allocations: 173.6 kB / 359.2 MB, free: 12.04 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001515/0.1272, allocations: 74.75 kB / 359.3 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.54e-05/0.1273, allocations: 40.84 kB / 359.3 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.017e-05/0.1273, allocations: 0 / 359.3 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.122e-05/0.1273, allocations: 34.56 kB / 359.3 MB, free: 11.87 MB / 302.1 MB Notification: Performance of pre-optimization done (n=8): time 2.024e-06/0.1273, allocations: 7.984 kB / 359.4 MB, free: 11.86 MB / 302.1 MB Notification: Performance of matching and sorting (n=8): time 0.0001956/0.1275, allocations: 113.8 kB / 359.5 MB, free: 11.75 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.743e-05/0.1276, allocations: 55.41 kB / 359.5 MB, free: 11.68 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001144/0.1277, allocations: 144.6 kB / 359.7 MB, free: 11.53 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.418e-05/0.1277, allocations: 25.7 kB / 359.7 MB, free: 11.5 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.959e-05/0.1278, allocations: 84.14 kB / 359.8 MB, free: 11.41 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.018e-05/0.1278, allocations: 11.91 kB / 359.8 MB, free: 11.4 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.96e-05/0.1278, allocations: 25.7 kB / 359.8 MB, free: 11.37 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001232/0.128, allocations: 318.8 kB / 360.1 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.36e-05/0.128, allocations: 11.98 kB / 360.1 MB, free: 11.04 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.871e-05/0.1281, allocations: 58.81 kB / 360.2 MB, free: 10.96 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.106e-05/0.1282, allocations: 74.8 kB / 360.3 MB, free: 10.86 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.1282, allocations: 3.938 kB / 360.3 MB, free: 10.86 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001481/0.1283, allocations: 93.45 kB / 360.4 MB, free: 10.76 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.005e-05/0.1283, allocations: 11.94 kB / 360.4 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.1284, allocations: 0 / 360.4 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.356e-05/0.1284, allocations: 4 kB / 360.4 MB, free: 10.74 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.693e-05/0.1284, allocations: 15.94 kB / 360.4 MB, free: 10.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.336e-06/0.1285, allocations: 4 kB / 360.4 MB, free: 10.72 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.44e-05/0.1285, allocations: 3.938 kB / 360.4 MB, free: 10.72 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.215e-06/0.1285, allocations: 11.94 kB / 360.4 MB, free: 10.71 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 9 (sum.y,sum.u[2],sum.u[1],const.y,unitDelay1.y,$CLKPRE.unitDelay1.u,unitDelay1.u,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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.906e-05/0.1286, allocations: 134 kB / 360.5 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000111/0.1287, allocations: 85.47 kB / 360.6 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.797e-05/0.1288, allocations: 16.89 kB / 360.6 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.1288, allocations: 0 / 360.6 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.1288, allocations: 3.938 kB / 360.6 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.1288, allocations: 0 / 360.6 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001184/0.1289, allocations: 173.6 kB / 360.8 MB, free: 10.24 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.1289, allocations: 0 / 360.8 MB, free: 10.24 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.543e-05/0.129, allocations: 16 kB / 360.8 MB, free: 10.22 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/0.129, allocations: 7.938 kB / 360.8 MB, free: 10.21 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.574e-06/0.129, allocations: 0 / 360.8 MB, free: 10.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.129, allocations: 0 / 360.8 MB, free: 10.21 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-07/0.1291, allocations: 0 / 360.8 MB, free: 10.21 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001335/0.1292, allocations: 116.9 kB / 360.9 MB, free: 10.08 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.74e-05/0.1293, allocations: 96.91 kB / 361 MB, free: 9.969 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.732e-05/0.1293, allocations: 3.938 kB / 361 MB, free: 9.965 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.425e-05/0.1293, allocations: 8 kB / 361.1 MB, free: 9.957 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.745e-06/0.1293, allocations: 4 kB / 361.1 MB, free: 9.953 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.21e-06/0.1293, allocations: 3.984 kB / 361.1 MB, free: 9.949 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.582e-05/0.1294, allocations: 103.3 kB / 361.2 MB, free: 9.848 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1294, allocations: 0 / 361.2 MB, free: 9.848 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002008/0.1296, allocations: 8 kB / 361.2 MB, free: 9.84 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: 8 (assignClock1.u,assignClock1.y,unitDelay1.u,unitDelay1.y,const.y,sum.u[1],sum.u[2],sum.y) * Number of discrete states: 0 () * Number of clocked states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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.0001136/0.1298, allocations: 103.2 kB / 361.3 MB, free: 9.727 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001437/0.1299, allocations: 64.03 kB / 361.3 MB, free: 9.664 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.1299, allocations: 0 / 361.3 MB, free: 9.664 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.61e-07/0.1299, allocations: 0 / 361.3 MB, free: 9.664 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003094/0.1302, allocations: 47.77 kB / 361.4 MB, free: 9.621 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003254/0.1306, allocations: 204.1 kB / 361.6 MB, free: 9.395 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002712/0.1309, allocations: 0.7002 MB / 362.3 MB, free: 8.668 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.393e-05/0.1309, allocations: 4.672 kB / 362.3 MB, free: 8.66 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.667e-05/0.1309, allocations: 11.44 kB / 362.3 MB, free: 8.648 MB / 302.1 MB Notification: Performance of SimCode: time 1.753e-06/0.1309, allocations: 3.938 kB / 362.3 MB, free: 8.645 MB / 302.1 MB Notification: Performance of Templates: time 0.002878/0.1338, allocations: 0.69 MB / 363 MB, free: 7.961 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/AssignClock/AssignClock.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches