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-master/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-master/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.002393/0.002393, allocations: 186.8 kB / 13.7 MB, free: 1.625 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.118/2.118, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001079/0.001078, allocations: 86.66 kB / 267.6 MB, free: 14.12 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09837/0.09837, allocations: 12.6 MB / 328.2 MB, free: 11.18 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.001e-05/4.033e-05, allocations: 0 / 386 MB, free: 1.324 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3222/0.3223, allocations: 50.37 MB / 436.3 MB, free: 14.16 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1449/0.4673, allocations: 77.77 MB / 0.5021 GB, free: 296 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003392/0.4677, allocations: 75.94 kB / 0.5021 GB, free: 220 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005153/0.4729, allocations: 1.277 MB / 0.5034 GB, free: 14.93 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.4729, allocations: 4 kB / 0.5034 GB, free: 14.93 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.487e-05/0.473, allocations: 0 / 0.5034 GB, free: 14.93 MB / 362.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.0004013/0.4734, allocations: 354.3 kB / 0.5037 GB, free: 14.54 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.905e-05/0.4734, allocations: 8.031 kB / 0.5037 GB, free: 14.53 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.781e-05/0.4735, allocations: 15.81 kB / 0.5037 GB, free: 14.52 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002572/0.4738, allocations: 186.9 kB / 0.5039 GB, free: 14.29 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.712e-05/0.4738, allocations: 8 kB / 0.5039 GB, free: 14.29 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.204e-05/0.4738, allocations: 7.953 kB / 0.5039 GB, free: 14.28 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003824/0.4742, allocations: 131.3 kB / 0.5041 GB, free: 14.14 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.989e-06/0.4742, allocations: 3.938 kB / 0.5041 GB, free: 14.13 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.554e-05/0.4743, allocations: 4 kB / 0.5041 GB, free: 14.13 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.261e-06/0.4743, allocations: 0 / 0.5041 GB, free: 14.13 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.918e-05/0.4744, allocations: 23.98 kB / 0.5041 GB, free: 14.11 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001935/0.4746, allocations: 177.6 kB / 0.5043 GB, free: 13.88 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002192/0.4748, allocations: 78.61 kB / 0.5043 GB, free: 13.8 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001062/0.4749, allocations: 44.83 kB / 0.5044 GB, free: 13.75 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.881e-05/0.475, allocations: 4 kB / 0.5044 GB, free: 13.75 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.694e-05/0.475, allocations: 34.56 kB / 0.5044 GB, free: 13.7 MB / 362.7 MB Notification: Performance of pre-optimization done (n=8): time 2.064e-06/0.475, allocations: 0 / 0.5044 GB, free: 13.7 MB / 362.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002387/0.4753, allocations: 69.59 kB / 0.5045 GB, free: 13.63 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.23e-05/0.4753, allocations: 59.41 kB / 0.5045 GB, free: 13.56 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001667/0.4755, allocations: 146.2 kB / 0.5047 GB, free: 13.41 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.857e-05/0.4756, allocations: 25.7 kB / 0.5047 GB, free: 13.38 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.142e-05/0.4756, allocations: 154.6 kB / 0.5048 GB, free: 13.22 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.903e-05/0.4757, allocations: 4 kB / 0.5049 GB, free: 13.22 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.779e-06/0.4757, allocations: 0 / 0.5049 GB, free: 13.22 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001217/0.4758, allocations: 314.8 kB / 0.5052 GB, free: 12.9 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.53e-05/0.4759, allocations: 15.98 kB / 0.5052 GB, free: 12.89 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.288e-05/0.4759, allocations: 54.88 kB / 0.5052 GB, free: 12.81 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.008e-05/0.476, allocations: 27.92 kB / 0.5052 GB, free: 12.78 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.105e-06/0.476, allocations: 0 / 0.5052 GB, free: 12.78 MB / 362.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000184/0.4762, allocations: 81.52 kB / 0.5053 GB, free: 12.7 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.283e-05/0.4763, allocations: 8 kB / 0.5053 GB, free: 12.69 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/0.4763, allocations: 0 / 0.5053 GB, free: 12.69 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.149e-05/0.4763, allocations: 7.938 kB / 0.5053 GB, free: 12.68 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001556/0.4765, allocations: 19.92 kB / 0.5054 GB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.477e-05/0.4765, allocations: 4.25 kB / 0.5054 GB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.494e-05/0.4766, allocations: 11.91 kB / 0.5054 GB, free: 12.64 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.177e-05/0.4766, allocations: 8 kB / 0.5054 GB, free: 12.64 MB / 362.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 () * 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 0.0001047/0.4767, allocations: 112.8 kB / 0.5055 GB, free: 12.52 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001621/0.4769, allocations: 81.62 kB / 0.5056 GB, free: 12.43 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.816e-05/0.477, allocations: 20.61 kB / 0.5056 GB, free: 12.41 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.477, allocations: 0 / 0.5056 GB, free: 12.41 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.477, allocations: 0 / 0.5056 GB, free: 12.41 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.477, allocations: 0 / 0.5056 GB, free: 12.41 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001533/0.4772, allocations: 177.6 kB / 0.5058 GB, free: 12.19 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.503e-06/0.4772, allocations: 7.984 kB / 0.5058 GB, free: 12.18 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001258/0.4773, allocations: 12 kB / 0.5058 GB, free: 12.17 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.358e-06/0.4773, allocations: 0 / 0.5058 GB, free: 12.17 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.344e-05/0.4774, allocations: 3.953 kB / 0.5058 GB, free: 12.16 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.415e-06/0.4774, allocations: 160 / 0.5058 GB, free: 12.16 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.4774, allocations: 192 / 0.5058 GB, free: 12.16 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002057/0.4776, allocations: 114.1 kB / 0.5059 GB, free: 12.04 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.389e-05/0.4777, allocations: 108.9 kB / 0.506 GB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.406e-05/0.4778, allocations: 0 / 0.506 GB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.809e-05/0.4778, allocations: 3.953 kB / 0.506 GB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.817e-06/0.4778, allocations: 4 kB / 0.506 GB, free: 11.9 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.194e-06/0.4778, allocations: 0 / 0.506 GB, free: 11.9 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001025/0.478, allocations: 107.3 kB / 0.5061 GB, free: 11.8 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.478, allocations: 0 / 0.5061 GB, free: 11.8 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002627/0.4782, allocations: 8 kB / 0.5061 GB, free: 11.79 MB / 362.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 () * 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 0.0001394/0.4784, allocations: 100.8 kB / 0.5062 GB, free: 11.68 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001728/0.4786, allocations: 47.88 kB / 0.5063 GB, free: 11.64 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.4786, allocations: 0 / 0.5063 GB, free: 11.64 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.022e-06/0.4786, allocations: 0 / 0.5063 GB, free: 11.64 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003428/0.479, allocations: 40.02 kB / 0.5063 GB, free: 11.6 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003762/0.4793, allocations: 154.8 kB / 0.5064 GB, free: 11.42 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003088/0.4797, allocations: 0.7048 MB / 0.5071 GB, free: 10.69 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.768e-05/0.4797, allocations: 15.44 kB / 0.5071 GB, free: 10.67 MB / 362.7 MB Notification: Performance of SimCode: time 1.092e-06/0.4797, allocations: 0 / 0.5071 GB, free: 10.67 MB / 362.7 MB Notification: Performance of Templates: time 0.003111/0.4829, allocations: 0.8542 MB / 0.508 GB, free: 9.82 MB / 362.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