Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001039/0.001042, allocations: 111.5 kB / 16.63 MB, free: 6.812 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000958/0.000958, allocations: 189.8 kB / 17.55 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.422/1.422, allocations: 222.9 MB / 241.2 MB, free: 13.72 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001145/0.001145, allocations: 53.14 kB / 300.1 MB, free: 5.98 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1435/0.1446, allocations: 49.44 MB / 349.6 MB, free: 4.527 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock): time 0.002853/0.1475, allocations: 0.8898 MB / 350.5 MB, free: 3.633 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004342/0.148, allocations: 131.5 kB / 350.6 MB, free: 3.504 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001189/0.1481, allocations: 4 kB / 350.6 MB, free: 3.5 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001566/0.1483, allocations: 7.922 kB / 350.6 MB, free: 3.492 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001677/0.1485, allocations: 8 kB / 350.6 MB, free: 3.484 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002778/0.1488, allocations: 27.91 kB / 350.6 MB, free: 3.457 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001239/0.1489, allocations: 47.91 kB / 350.7 MB, free: 3.41 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001646/0.1491, allocations: 27.94 kB / 350.7 MB, free: 3.383 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.654e-05/0.1491, allocations: 27.84 kB / 350.7 MB, free: 3.355 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001023/0.1493, allocations: 19.92 kB / 350.8 MB, free: 3.336 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.203e-05/0.1493, allocations: 0 / 350.8 MB, free: 3.336 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.373e-05/0.1493, allocations: 4 kB / 350.8 MB, free: 3.332 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.031e-05/0.1494, allocations: 19.92 kB / 350.8 MB, free: 3.312 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.77e-05/0.1494, allocations: 23.81 kB / 350.8 MB, free: 3.289 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001448/0.1496, allocations: 59.73 kB / 350.9 MB, free: 3.23 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.716e-06/0.1496, allocations: 4 kB / 350.9 MB, free: 3.227 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.376e-06/0.1496, allocations: 0 / 350.9 MB, free: 3.227 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.845e-06/0.1496, allocations: 0 / 350.9 MB, free: 3.227 MB / 286.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.0006115/0.1502, allocations: 383.4 kB / 351.2 MB, free: 2.801 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.689e-05/0.1503, allocations: 8.031 kB / 351.3 MB, free: 2.793 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.534e-05/0.1504, allocations: 12.75 kB / 351.3 MB, free: 2.781 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002321/0.1506, allocations: 188.2 kB / 351.5 MB, free: 2.559 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.387e-05/0.1506, allocations: 4.375 kB / 351.5 MB, free: 2.555 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.947e-05/0.1506, allocations: 4.375 kB / 351.5 MB, free: 2.551 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000347/0.151, allocations: 147.7 kB / 351.6 MB, free: 2.395 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.067e-05/0.151, allocations: 192 / 351.6 MB, free: 2.395 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.764e-05/0.151, allocations: 7.938 kB / 351.6 MB, free: 2.387 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.006e-05/0.1511, allocations: 4 kB / 351.6 MB, free: 2.383 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.515e-05/0.1511, allocations: 27.86 kB / 351.6 MB, free: 2.355 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001757/0.1513, allocations: 173.5 kB / 351.8 MB, free: 2.137 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001706/0.1515, allocations: 86.64 kB / 351.9 MB, free: 2.043 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.119e-05/0.1516, allocations: 40.89 kB / 351.9 MB, free: 2 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.152e-05/0.1516, allocations: 0 / 351.9 MB, free: 2 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.431e-05/0.1516, allocations: 38.55 kB / 352 MB, free: 1.953 MB / 286.1 MB Notification: Performance of pre-optimization done (n=8): time 9.42e-07/0.1516, allocations: 0 / 352 MB, free: 1.953 MB / 286.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002375/0.1519, allocations: 97.52 kB / 352.1 MB, free: 1.852 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.293e-05/0.1519, allocations: 63.34 kB / 352.1 MB, free: 1.777 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001451/0.1521, allocations: 137.8 kB / 352.3 MB, free: 1.633 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.743e-05/0.1521, allocations: 25.7 kB / 352.3 MB, free: 1.602 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.596e-05/0.1522, allocations: 92.12 kB / 352.4 MB, free: 1.508 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.345e-05/0.1522, allocations: 7.906 kB / 352.4 MB, free: 1.5 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.651e-05/0.1523, allocations: 21.72 kB / 352.4 MB, free: 1.473 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001108/0.1524, allocations: 322.8 kB / 352.7 MB, free: 1.148 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.3e-05/0.1524, allocations: 8 kB / 352.7 MB, free: 1.141 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.226e-05/0.1525, allocations: 62.86 kB / 352.8 MB, free: 1.055 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.754e-05/0.1526, allocations: 74.73 kB / 352.9 MB, free: 0.957 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.1526, allocations: 4 kB / 352.9 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001193/0.1527, allocations: 89.41 kB / 353 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.943e-05/0.1527, allocations: 15.31 kB / 353 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.1527, allocations: 4 kB / 353 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.824e-05/0.1528, allocations: 4 kB / 353 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.511e-05/0.1529, allocations: 15.98 kB / 353 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.618e-06/0.1529, allocations: 4 kB / 353 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.546e-05/0.1529, allocations: 3.938 kB / 353 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.439e-05/0.1529, allocations: 11.94 kB / 353 MB, free: 0.8047 MB / 286.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 0.0001163/0.1531, allocations: 126.5 kB / 353.1 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00011/0.1532, allocations: 85.67 kB / 353.2 MB, free: 0.582 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.997e-05/0.1532, allocations: 16.72 kB / 353.2 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.1532, allocations: 3.938 kB / 353.2 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.381e-06/0.1533, allocations: 0 / 353.2 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.234e-06/0.1533, allocations: 3.984 kB / 353.2 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001262/0.1534, allocations: 169.7 kB / 353.4 MB, free: 348 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.1534, allocations: 0 / 353.4 MB, free: 348 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.988e-05/0.1535, allocations: 19.92 kB / 353.4 MB, free: 328 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.1535, allocations: 4.125 kB / 353.4 MB, free: 324 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.837e-06/0.1535, allocations: 0 / 353.4 MB, free: 324 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/0.1535, allocations: 3.938 kB / 353.4 MB, free: 320 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.1535, allocations: 0 / 353.4 MB, free: 320 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001397/0.1537, allocations: 109 kB / 353.5 MB, free: 192 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.849e-05/0.1537, allocations: 97 kB / 353.6 MB, free: 76 kB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.354e-05/0.1538, allocations: 3.938 kB / 353.6 MB, free: 72 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.212e-05/0.1538, allocations: 4 kB / 353.7 MB, free: 68 kB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.243e-06/0.1538, allocations: 7.984 kB / 353.7 MB, free: 60 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.998e-06/0.1538, allocations: 4 kB / 353.7 MB, free: 56 kB / 286.1 MB Notification: Performance of sorting global known variables: time 9.667e-05/0.1539, allocations: 111.2 kB / 353.8 MB, free: 15.95 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1539, allocations: 4 kB / 353.8 MB, free: 15.94 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002026/0.1541, allocations: 8 kB / 353.8 MB, free: 15.93 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.00014/0.1543, allocations: 111.1 kB / 353.9 MB, free: 15.82 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000159/0.1544, allocations: 47.92 kB / 353.9 MB, free: 15.77 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.1545, allocations: 0 / 353.9 MB, free: 15.77 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.01e-07/0.1545, allocations: 0.5 kB / 353.9 MB, free: 15.77 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003795/0.1548, allocations: 58.97 kB / 354 MB, free: 15.71 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003485/0.1552, allocations: 200.7 kB / 354.2 MB, free: 15.5 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003337/0.1556, allocations: 0.6924 MB / 354.9 MB, free: 14.78 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.132e-05/0.1556, allocations: 8.672 kB / 354.9 MB, free: 14.77 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.666e-05/0.1556, allocations: 15.42 kB / 354.9 MB, free: 14.75 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1556, allocations: 0 / 354.9 MB, free: 14.75 MB / 302.1 MB Notification: Performance of Templates: time 0.003715/0.1594, allocations: 0.6745 MB / 355.6 MB, free: 14.08 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches