Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.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.TickBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001515/0.001515, allocations: 186.9 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.032/2.032, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001643/0.001643, allocations: 78.72 kB / 267.5 MB, free: 14.05 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.09988/0.09988, allocations: 12.59 MB / 328.2 MB, free: 11.17 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.055e-05/3.067e-05, allocations: 0 / 386 MB, free: 1.312 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3022/0.3022, allocations: 50.38 MB / 436.3 MB, free: 14.18 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1333/0.4355, allocations: 77.25 MB / 0.5016 GB, free: 0.8242 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002768/0.4359, allocations: 75.95 kB / 0.5016 GB, free: 0.75 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002771/0.4387, allocations: 0.7618 MB / 0.5024 GB, free: 15.98 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.4387, allocations: 0 / 0.5024 GB, free: 15.98 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.215e-05/0.4388, allocations: 0 / 0.5024 GB, free: 15.98 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003674/0.4391, allocations: 334.4 kB / 0.5027 GB, free: 15.61 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.199e-05/0.4392, allocations: 12.03 kB / 0.5027 GB, free: 15.6 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.148e-05/0.4393, allocations: 4 kB / 0.5027 GB, free: 15.6 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002013/0.4395, allocations: 180.5 kB / 0.5029 GB, free: 15.38 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.512e-05/0.4395, allocations: 4 kB / 0.5029 GB, free: 15.38 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.967e-05/0.4395, allocations: 7.953 kB / 0.5029 GB, free: 15.37 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002708/0.4398, allocations: 95.33 kB / 0.503 GB, free: 15.27 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.586e-06/0.4398, allocations: 0 / 0.503 GB, free: 15.27 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.149e-05/0.4399, allocations: 0 / 0.503 GB, free: 15.27 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.189e-06/0.4399, allocations: 4 kB / 0.503 GB, free: 15.26 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.316e-05/0.44, allocations: 15.94 kB / 0.503 GB, free: 15.25 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001564/0.4401, allocations: 153.7 kB / 0.5031 GB, free: 15.05 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001294/0.4403, allocations: 50.52 kB / 0.5032 GB, free: 14.99 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.632e-05/0.4403, allocations: 16.86 kB / 0.5032 GB, free: 14.97 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.534e-05/0.4404, allocations: 3.953 kB / 0.5032 GB, free: 14.96 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.644e-05/0.4404, allocations: 34.56 kB / 0.5032 GB, free: 14.92 MB / 362.7 MB Notification: Performance of pre-optimization done (n=4): time 1.734e-06/0.4404, allocations: 0 / 0.5032 GB, free: 14.92 MB / 362.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001698/0.4406, allocations: 53.83 kB / 0.5033 GB, free: 14.86 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.892e-05/0.4407, allocations: 59.28 kB / 0.5034 GB, free: 14.79 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.501e-05/0.4408, allocations: 101 kB / 0.5034 GB, free: 14.69 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.539e-05/0.4408, allocations: 25.7 kB / 0.5035 GB, free: 14.66 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.963e-05/0.4409, allocations: 150.6 kB / 0.5036 GB, free: 14.51 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.707e-05/0.4409, allocations: 7.906 kB / 0.5036 GB, free: 14.5 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.647e-06/0.4409, allocations: 4 kB / 0.5036 GB, free: 14.5 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001213/0.4411, allocations: 314.8 kB / 0.5039 GB, free: 14.18 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.876e-05/0.4411, allocations: 4 kB / 0.5039 GB, free: 14.18 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.067e-05/0.4411, allocations: 27.44 kB / 0.504 GB, free: 14.14 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.921e-05/0.4412, allocations: 15.98 kB / 0.504 GB, free: 14.12 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.4412, allocations: 0 / 0.504 GB, free: 14.12 MB / 362.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001329/0.4413, allocations: 57.58 kB / 0.504 GB, free: 14.06 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.712e-05/0.4414, allocations: 7.953 kB / 0.504 GB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.26e-05/0.4414, allocations: 7.984 kB / 0.504 GB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.031e-05/0.4414, allocations: 0 / 0.504 GB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001027/0.4415, allocations: 8 kB / 0.504 GB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.197e-06/0.4416, allocations: 0 / 0.504 GB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.516e-05/0.4416, allocations: 0 / 0.504 GB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.608e-06/0.4416, allocations: 8.125 kB / 0.5041 GB, free: 14.03 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 (step.counter,$CLKPRE.step.counter,step.y,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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 9.462e-05/0.4417, allocations: 112.8 kB / 0.5042 GB, free: 13.91 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001085/0.4419, allocations: 49.62 kB / 0.5042 GB, free: 13.86 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.273e-05/0.4419, allocations: 11.98 kB / 0.5042 GB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.017e-06/0.4419, allocations: 0 / 0.5042 GB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.4419, allocations: 0 / 0.5042 GB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.456e-06/0.4419, allocations: 0 / 0.5042 GB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001248/0.4421, allocations: 165.5 kB / 0.5044 GB, free: 13.63 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.4421, allocations: 4 kB / 0.5044 GB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001213/0.4422, allocations: 12 kB / 0.5044 GB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.584e-06/0.4423, allocations: 3.984 kB / 0.5044 GB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.888e-06/0.4423, allocations: 0 / 0.5044 GB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.41e-06/0.4423, allocations: 8.266 kB / 0.5044 GB, free: 13.6 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.4423, allocations: 0 / 0.5044 GB, free: 13.6 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001566/0.4425, allocations: 77.06 kB / 0.5045 GB, free: 13.51 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.674e-05/0.4425, allocations: 81.11 kB / 0.5046 GB, free: 13.41 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.437e-05/0.4426, allocations: 4 kB / 0.5046 GB, free: 13.41 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.738e-05/0.4426, allocations: 4 kB / 0.5046 GB, free: 13.4 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.111e-05/0.4427, allocations: 11.94 kB / 0.5046 GB, free: 13.39 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.516e-06/0.4427, allocations: 0 / 0.5046 GB, free: 13.39 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.766e-05/0.4427, allocations: 83.28 kB / 0.5047 GB, free: 13.31 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.4427, allocations: 0 / 0.5047 GB, free: 13.31 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002458/0.443, allocations: 4 kB / 0.5047 GB, free: 13.3 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: 4 (assignClock1.u,assignClock1.y,step.y,step.counter) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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.0001306/0.4431, allocations: 95.23 kB / 0.5048 GB, free: 13.2 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001267/0.4433, allocations: 24.08 kB / 0.5048 GB, free: 13.18 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.4433, allocations: 4.25 kB / 0.5048 GB, free: 13.18 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.733e-06/0.4433, allocations: 0 / 0.5048 GB, free: 13.18 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002795/0.4436, allocations: 28 kB / 0.5048 GB, free: 13.15 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003096/0.4439, allocations: 98.56 kB / 0.5049 GB, free: 13.02 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002654/0.4442, allocations: 0.6848 MB / 0.5056 GB, free: 12.31 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.075e-05/0.4443, allocations: 11.44 kB / 0.5056 GB, free: 12.3 MB / 362.7 MB Notification: Performance of SimCode: time 1.153e-06/0.4443, allocations: 0 / 0.5056 GB, free: 12.3 MB / 362.7 MB Notification: Performance of Templates: time 0.002448/0.4467, allocations: 0.6008 MB / 0.5062 GB, free: 11.71 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches