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.001417/0.001417, allocations: 109 kB / 17.28 MB, free: 6.059 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.001292/0.001293, allocations: 197.3 kB / 18.21 MB, free: 5.145 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.442/1.442, allocations: 222.9 MB / 241.9 MB, free: 15.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001355/0.001356, allocations: 47.5 kB / 300.8 MB, free: 6.203 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1319/0.1333, allocations: 49.45 MB / 350.2 MB, free: 4.75 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock): time 0.002929/0.1363, allocations: 0.9015 MB / 351.1 MB, free: 3.844 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004243/0.1368, allocations: 127.6 kB / 351.3 MB, free: 3.719 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001151/0.1369, allocations: 4 kB / 351.3 MB, free: 3.715 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001267/0.1371, allocations: 7.922 kB / 351.3 MB, free: 3.707 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001418/0.1372, allocations: 3.938 kB / 351.3 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002573/0.1375, allocations: 28.47 kB / 351.3 MB, free: 3.676 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001217/0.1376, allocations: 47.84 kB / 351.4 MB, free: 3.629 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001359/0.1378, allocations: 24 kB / 351.4 MB, free: 3.605 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.606e-05/0.1378, allocations: 23.86 kB / 351.4 MB, free: 3.582 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.473e-05/0.1379, allocations: 19.91 kB / 351.4 MB, free: 3.562 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.361e-05/0.1379, allocations: 4 kB / 351.4 MB, free: 3.559 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.542e-05/0.138, allocations: 4 kB / 351.4 MB, free: 3.555 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.543e-05/0.1381, allocations: 19.92 kB / 351.4 MB, free: 3.535 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.54e-05/0.1381, allocations: 23.81 kB / 351.5 MB, free: 3.512 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001254/0.1382, allocations: 47.86 kB / 351.5 MB, free: 3.465 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.1383, allocations: 0 / 351.5 MB, free: 3.465 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.195e-06/0.1383, allocations: 4 kB / 351.5 MB, free: 3.461 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.731e-06/0.1383, allocations: 0 / 351.5 MB, free: 3.461 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.0005949/0.1389, allocations: 371.5 kB / 351.9 MB, free: 3.047 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.1389, allocations: 8.031 kB / 351.9 MB, free: 3.039 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.7e-05/0.139, allocations: 12.75 kB / 351.9 MB, free: 3.027 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002272/0.1392, allocations: 196.1 kB / 352.1 MB, free: 2.797 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.364e-05/0.1392, allocations: 8.312 kB / 352.1 MB, free: 2.789 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.742e-05/0.1393, allocations: 8.375 kB / 352.1 MB, free: 2.781 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003131/0.1396, allocations: 143.7 kB / 352.3 MB, free: 2.629 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.325e-06/0.1396, allocations: 192 / 352.3 MB, free: 2.629 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.499e-05/0.1396, allocations: 7.938 kB / 352.3 MB, free: 2.621 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.1396, allocations: 0 / 352.3 MB, free: 2.621 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.545e-05/0.1397, allocations: 27.92 kB / 352.3 MB, free: 2.594 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001805/0.1399, allocations: 173.5 kB / 352.5 MB, free: 2.375 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001939/0.1401, allocations: 74.75 kB / 352.5 MB, free: 2.293 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.966e-05/0.1402, allocations: 44.84 kB / 352.6 MB, free: 2.246 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.199e-05/0.1402, allocations: 0 / 352.6 MB, free: 2.246 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.649e-05/0.1402, allocations: 34.5 kB / 352.6 MB, free: 2.203 MB / 286.1 MB Notification: Performance of pre-optimization done (n=8): time 8.62e-07/0.1402, allocations: 0 / 352.6 MB, free: 2.203 MB / 286.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002766/0.1405, allocations: 105.7 kB / 352.7 MB, free: 2.094 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.242e-05/0.1406, allocations: 63.41 kB / 352.8 MB, free: 2.02 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001304/0.1407, allocations: 137.8 kB / 352.9 MB, free: 1.875 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.76e-05/0.1408, allocations: 29.7 kB / 352.9 MB, free: 1.84 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.674e-05/0.1408, allocations: 84.14 kB / 353 MB, free: 1.754 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.377e-05/0.1408, allocations: 15.83 kB / 353 MB, free: 1.738 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.345e-05/0.1409, allocations: 21.72 kB / 353.1 MB, free: 1.711 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001344/0.141, allocations: 322.8 kB / 353.4 MB, free: 1.387 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.08e-05/0.1411, allocations: 4 kB / 353.4 MB, free: 1.383 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.265e-05/0.1411, allocations: 70.8 kB / 353.4 MB, free: 1.289 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.624e-05/0.1412, allocations: 74.75 kB / 353.5 MB, free: 1.191 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.1412, allocations: 0 / 353.5 MB, free: 1.191 MB / 286.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001833/0.1414, allocations: 93.61 kB / 353.6 MB, free: 1.094 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.047e-05/0.1415, allocations: 11.94 kB / 353.6 MB, free: 1.082 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.1415, allocations: 0 / 353.6 MB, free: 1.082 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.473e-05/0.1415, allocations: 4 kB / 353.6 MB, free: 1.078 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.736e-05/0.1416, allocations: 15.94 kB / 353.6 MB, free: 1.062 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.13e-05/0.1416, allocations: 7.984 kB / 353.6 MB, free: 1.055 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.91e-05/0.1416, allocations: 7.938 kB / 353.7 MB, free: 1.047 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.307e-06/0.1417, allocations: 4 kB / 353.7 MB, free: 1.043 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.0001221/0.1418, allocations: 129.9 kB / 353.8 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001075/0.1419, allocations: 85.77 kB / 353.9 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.352e-05/0.1419, allocations: 16.72 kB / 353.9 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.142, allocations: 0 / 353.9 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/0.142, allocations: 0 / 353.9 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.662e-06/0.142, allocations: 4.172 kB / 353.9 MB, free: 0.793 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001302/0.1421, allocations: 173.6 kB / 354.1 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.1421, allocations: 3.938 kB / 354.1 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.189e-05/0.1422, allocations: 12 kB / 354.1 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.388e-06/0.1422, allocations: 3.938 kB / 354.1 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.016e-05/0.1422, allocations: 3.984 kB / 354.1 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.1422, allocations: 4.078 kB / 354.1 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.1422, allocations: 3.984 kB / 354.1 MB, free: 0.543 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001469/0.1424, allocations: 113 kB / 354.2 MB, free: 424 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.856e-05/0.1425, allocations: 93 kB / 354.3 MB, free: 312 kB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.25e-05/0.1425, allocations: 7.922 kB / 354.3 MB, free: 304 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.615e-05/0.1425, allocations: 7.938 kB / 354.3 MB, free: 296 kB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.386e-06/0.1425, allocations: 0 / 354.3 MB, free: 296 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.672e-06/0.1425, allocations: 4 kB / 354.3 MB, free: 292 kB / 286.1 MB Notification: Performance of sorting global known variables: time 8.217e-05/0.1426, allocations: 113.8 kB / 354.4 MB, free: 180 kB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1426, allocations: 0 / 354.4 MB, free: 180 kB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002028/0.1429, allocations: 8 kB / 354.4 MB, free: 172 kB / 286.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.0001252/0.143, allocations: 111.2 kB / 354.5 MB, free: 52 kB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002041/0.1432, allocations: 52.3 kB / 354.6 MB, free: 0 / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.145e-05/0.1432, allocations: 112 / 354.6 MB, free: 16 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.71e-07/0.1432, allocations: 4 kB / 354.6 MB, free: 15.99 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003426/0.1436, allocations: 56.88 kB / 354.6 MB, free: 15.94 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003777/0.144, allocations: 219 kB / 354.9 MB, free: 15.7 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003513/0.1443, allocations: 0.7079 MB / 355.6 MB, free: 14.96 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.966e-05/0.1444, allocations: 7.438 kB / 355.6 MB, free: 14.95 MB / 302.1 MB Notification: Performance of SimCode: time 4.3e-07/0.1444, allocations: 4 kB / 355.6 MB, free: 14.95 MB / 302.1 MB Notification: Performance of Templates: time 0.002707/0.1471, allocations: 0.8628 MB / 356.4 MB, free: 14.09 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/AssignClock/AssignClock.csv","/var/lib/jenkins1/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