Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sum.y|unitDelay1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sum.y|unitDelay1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002234/0.002234, allocations: 181.6 kB / 17.46 MB, free: 4.238 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.759/2.759, allocations: 205.4 MB / 223.6 MB, free: 9.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001335/0.001335, allocations: 85.48 kB / 272 MB, free: 8.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.112/0.112, allocations: 12.19 MB / 332.4 MB, free: 11.64 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006122/0.0006123, allocations: 15.98 kB / 392.7 MB, free: 67.05 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1388/0.1394, allocations: 50.3 MB / 443 MB, free: 16.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4276/0.5671, allocations: 77.84 MB / 0.5086 GB, free: 12.99 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003279/0.5675, allocations: 79.89 kB / 0.5087 GB, free: 12.99 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004772/0.5723, allocations: 1.833 MB / 0.5105 GB, free: 12.57 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.515e-06/0.5723, allocations: 0 / 0.5105 GB, free: 12.57 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.047e-06/0.5724, allocations: 7.812 kB / 0.5105 GB, free: 12.56 MB / 330.7 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.0003259/0.5727, allocations: 370 kB / 0.5109 GB, free: 12.18 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.51e-05/0.5727, allocations: 7.094 kB / 0.5109 GB, free: 12.18 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.329e-05/0.5728, allocations: 12 kB / 0.5109 GB, free: 12.17 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001685/0.573, allocations: 198.6 kB / 0.5111 GB, free: 11.95 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.293e-05/0.573, allocations: 384 / 0.5111 GB, free: 11.95 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.843e-05/0.573, allocations: 8.156 kB / 0.5111 GB, free: 11.95 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002935/0.5733, allocations: 148.6 kB / 0.5112 GB, free: 11.88 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.728e-06/0.5733, allocations: 192 / 0.5112 GB, free: 11.88 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.033e-05/0.5733, allocations: 3.938 kB / 0.5112 GB, free: 11.87 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.15e-06/0.5734, allocations: 0 / 0.5112 GB, free: 11.87 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.944e-05/0.5734, allocations: 25.36 kB / 0.5113 GB, free: 11.87 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001276/0.5736, allocations: 174.5 kB / 0.5114 GB, free: 11.66 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001288/0.5737, allocations: 86.7 kB / 0.5115 GB, free: 11.62 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.897e-05/0.5738, allocations: 38.31 kB / 0.5115 GB, free: 11.61 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.344e-05/0.5738, allocations: 0 / 0.5115 GB, free: 11.61 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.609e-05/0.5738, allocations: 34.38 kB / 0.5116 GB, free: 11.57 MB / 330.7 MB Notification: Performance of pre-optimization done (n=8): time 8.71e-07/0.5738, allocations: 0 / 0.5116 GB, free: 11.57 MB / 330.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001978/0.574, allocations: 104.3 kB / 0.5117 GB, free: 11.52 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.27e-05/0.5741, allocations: 66.78 kB / 0.5117 GB, free: 11.45 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001051/0.5742, allocations: 143 kB / 0.5119 GB, free: 11.34 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.044e-05/0.5742, allocations: 25.7 kB / 0.5119 GB, free: 11.31 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.449e-05/0.5742, allocations: 87.61 kB / 0.512 GB, free: 11.23 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.414e-05/0.5743, allocations: 2.812 kB / 0.512 GB, free: 11.23 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.466e-06/0.5743, allocations: 0 / 0.512 GB, free: 11.23 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.24e-05/0.5743, allocations: 322.1 kB / 0.5123 GB, free: 10.91 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.77e-05/0.5744, allocations: 7.594 kB / 0.5123 GB, free: 10.91 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.834e-05/0.5744, allocations: 64.77 kB / 0.5124 GB, free: 10.84 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.42e-05/0.5745, allocations: 81.55 kB / 0.5124 GB, free: 10.76 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.5745, allocations: 0 / 0.5124 GB, free: 10.76 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001058/0.5746, allocations: 90.09 kB / 0.5125 GB, free: 10.71 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.589e-05/0.5746, allocations: 12.06 kB / 0.5125 GB, free: 10.7 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.531e-06/0.5746, allocations: 0 / 0.5125 GB, free: 10.7 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.464e-05/0.5746, allocations: 3.844 kB / 0.5125 GB, free: 10.7 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.837e-05/0.5747, allocations: 19.33 kB / 0.5126 GB, free: 10.7 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.502e-06/0.5747, allocations: 0 / 0.5126 GB, free: 10.7 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.461e-05/0.5748, allocations: 11.06 kB / 0.5126 GB, free: 10.69 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.404e-06/0.5748, allocations: 3.844 kB / 0.5126 GB, free: 10.69 MB / 330.7 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,unitDelay1.u,$CLKPRE.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.739e-05/0.5749, allocations: 137.1 kB / 0.5127 GB, free: 10.56 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.218e-05/0.575, allocations: 85.58 kB / 0.5128 GB, free: 10.52 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.349e-05/0.575, allocations: 15.91 kB / 0.5128 GB, free: 10.51 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.575, allocations: 3.984 kB / 0.5128 GB, free: 10.5 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.575, allocations: 0 / 0.5128 GB, free: 10.5 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.575, allocations: 0 / 0.5128 GB, free: 10.5 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.13e-05/0.5751, allocations: 173.3 kB / 0.513 GB, free: 10.3 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.5751, allocations: 0 / 0.513 GB, free: 10.3 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.219e-05/0.5752, allocations: 22.55 kB / 0.513 GB, free: 10.3 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.494e-06/0.5752, allocations: 3.938 kB / 0.513 GB, free: 10.29 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.864e-06/0.5752, allocations: 0 / 0.513 GB, free: 10.29 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.5752, allocations: 4 kB / 0.513 GB, free: 10.29 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.5752, allocations: 4 kB / 0.513 GB, free: 10.29 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001514/0.5754, allocations: 106.4 kB / 0.5131 GB, free: 10.21 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.312e-05/0.5755, allocations: 96.47 kB / 0.5132 GB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.68e-05/0.5755, allocations: 7.562 kB / 0.5132 GB, free: 10.1 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.535e-05/0.5755, allocations: 3.844 kB / 0.5132 GB, free: 10.1 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.129e-06/0.5756, allocations: 0 / 0.5132 GB, free: 10.1 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.969e-06/0.5756, allocations: 0 / 0.5132 GB, free: 10.1 MB / 330.7 MB Notification: Performance of sorting global known variables: time 5.364e-05/0.5756, allocations: 110.9 kB / 0.5133 GB, free: 10.02 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5756, allocations: 7.844 kB / 0.5133 GB, free: 10.02 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0001962/0.5758, allocations: 3.844 kB / 0.5133 GB, free: 10.02 MB / 330.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.836e-05/0.5759, allocations: 106.5 kB / 0.5134 GB, free: 9.922 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001158/0.5761, allocations: 43.45 kB / 0.5135 GB, free: 9.914 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.5761, allocations: 0 / 0.5135 GB, free: 9.914 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.21e-07/0.5761, allocations: 0.5 kB / 0.5135 GB, free: 9.914 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002983/0.5764, allocations: 59.83 kB / 0.5135 GB, free: 9.895 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002818/0.5767, allocations: 216.3 kB / 0.5137 GB, free: 9.711 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001203/0.5768, allocations: 0.6919 MB / 0.5144 GB, free: 9.008 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.45e-05/0.5768, allocations: 11.28 kB / 0.5144 GB, free: 9 MB / 330.7 MB Notification: Performance of SimCode: time 2.41e-07/0.5768, allocations: 4 kB / 0.5144 GB, free: 8.996 MB / 330.7 MB Notification: Performance of Templates: time 0.002004/0.5789, allocations: 0.8715 MB / 0.5153 GB, free: 8.566 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches