Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.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.RealSignals.AssignClockToSquareWaveHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|clockToSquareWave.y|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|clockToSquareWave.y|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002299/0.002299, allocations: 181 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.235/2.235, allocations: 205.2 MB / 219.4 MB, free: 14.26 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.001031/0.001031, allocations: 82.7 kB / 267.6 MB, free: 14.11 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.1044/0.1044, allocations: 12.6 MB / 328.2 MB, free: 11.15 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.517e-05/3.533e-05, allocations: 4 kB / 386 MB, free: 1.293 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3196/0.3196, allocations: 50.38 MB / 436.4 MB, free: 14.13 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1428/0.4625, allocations: 78.47 MB / 0.5028 GB, free: 15.56 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000314/0.4629, allocations: 79.95 kB / 0.5028 GB, free: 15.48 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006416/0.4693, allocations: 1.493 MB / 0.5043 GB, free: 13.98 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.4693, allocations: 3.938 kB / 0.5043 GB, free: 13.98 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.357e-05/0.4694, allocations: 0 / 0.5043 GB, free: 13.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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0004684/0.4699, allocations: 354.4 kB / 0.5046 GB, free: 13.59 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.004e-05/0.4699, allocations: 12.03 kB / 0.5046 GB, free: 13.58 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.481e-05/0.47, allocations: 11.81 kB / 0.5047 GB, free: 13.57 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002323/0.4702, allocations: 194.8 kB / 0.5048 GB, free: 13.34 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.448e-05/0.4702, allocations: 12 kB / 0.5049 GB, free: 13.32 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.221e-05/0.4703, allocations: 7.984 kB / 0.5049 GB, free: 13.32 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003508/0.4706, allocations: 121.8 kB / 0.505 GB, free: 13.18 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.857e-06/0.4707, allocations: 0 / 0.505 GB, free: 13.18 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.228e-05/0.4707, allocations: 4 kB / 0.505 GB, free: 13.17 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.027e-06/0.4707, allocations: 0 / 0.505 GB, free: 13.17 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.96e-05/0.4708, allocations: 16 kB / 0.505 GB, free: 13.16 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005328/0.4713, allocations: 361.9 kB / 0.5053 GB, free: 12.75 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000241/0.4716, allocations: 158.1 kB / 0.5055 GB, free: 12.55 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.97e-05/0.4717, allocations: 34.64 kB / 0.5055 GB, free: 12.5 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.843e-05/0.4717, allocations: 4.078 kB / 0.5055 GB, free: 12.5 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.136e-05/0.4718, allocations: 42.56 kB / 0.5056 GB, free: 12.45 MB / 362.7 MB Notification: Performance of pre-optimization done (n=6): time 1.943e-06/0.4718, allocations: 0 / 0.5056 GB, free: 12.45 MB / 362.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002596/0.4721, allocations: 65.53 kB / 0.5056 GB, free: 12.38 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.608e-05/0.4722, allocations: 110.8 kB / 0.5057 GB, free: 12.25 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000185/0.4724, allocations: 129.3 kB / 0.5059 GB, free: 12.11 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.856e-05/0.4724, allocations: 25.7 kB / 0.5059 GB, free: 12.08 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.47e-05/0.4725, allocations: 154.8 kB / 0.506 GB, free: 11.92 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.43e-05/0.4725, allocations: 11.91 kB / 0.506 GB, free: 11.91 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.48e-06/0.4725, allocations: 4 kB / 0.506 GB, free: 11.91 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001542/0.4727, allocations: 318.8 kB / 0.5064 GB, free: 11.59 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.088e-05/0.4728, allocations: 8 kB / 0.5064 GB, free: 11.58 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.395e-05/0.4729, allocations: 40.28 kB / 0.5064 GB, free: 11.52 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.998e-05/0.4729, allocations: 19.94 kB / 0.5064 GB, free: 11.5 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.4729, allocations: 3.938 kB / 0.5064 GB, free: 11.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001878/0.4731, allocations: 73.61 kB / 0.5065 GB, free: 11.42 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.254e-05/0.4732, allocations: 8 kB / 0.5065 GB, free: 11.41 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.4732, allocations: 0 / 0.5065 GB, free: 11.41 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.52e-05/0.4732, allocations: 0 / 0.5065 GB, free: 11.41 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000142/0.4734, allocations: 15.94 kB / 0.5065 GB, free: 11.4 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.606e-06/0.4734, allocations: 4.125 kB / 0.5065 GB, free: 11.39 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.546e-05/0.4735, allocations: 11.92 kB / 0.5065 GB, free: 11.38 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.478e-05/0.4735, allocations: 4 kB / 0.5065 GB, free: 11.38 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (clockToSquareWave.y2,$CLKPRE.clockToSquareWave.y2,clockToSquareWave.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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.874e-05/0.4736, allocations: 108.9 kB / 0.5066 GB, free: 11.27 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001334/0.4738, allocations: 53.69 kB / 0.5067 GB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.34e-05/0.4739, allocations: 16.06 kB / 0.5067 GB, free: 11.19 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.003e-06/0.4739, allocations: 0 / 0.5067 GB, free: 11.19 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.554e-06/0.4739, allocations: 7.938 kB / 0.5067 GB, free: 11.18 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.4739, allocations: 0 / 0.5067 GB, free: 11.18 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003278/0.4742, allocations: 189.5 kB / 0.5069 GB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.4743, allocations: 0 / 0.5069 GB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.951e-05/0.4744, allocations: 11.98 kB / 0.5069 GB, free: 10.94 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-06/0.4744, allocations: 0 / 0.5069 GB, free: 10.94 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.3e-05/0.4744, allocations: 4 kB / 0.5069 GB, free: 10.93 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.4744, allocations: 0 / 0.5069 GB, free: 10.93 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.4744, allocations: 0 / 0.5069 GB, free: 10.93 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002859/0.4747, allocations: 278.9 kB / 0.5072 GB, free: 10.63 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.368e-05/0.4748, allocations: 93 kB / 0.5073 GB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.563e-05/0.4749, allocations: 0 / 0.5073 GB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001508/0.475, allocations: 7.984 kB / 0.5073 GB, free: 10.51 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.781e-05/0.4751, allocations: 7.953 kB / 0.5073 GB, free: 10.5 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.237e-06/0.4751, allocations: 0 / 0.5073 GB, free: 10.5 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001189/0.4752, allocations: 116 kB / 0.5074 GB, free: 10.39 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.4753, allocations: 0 / 0.5074 GB, free: 10.39 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003579/0.4756, allocations: 12 kB / 0.5074 GB, free: 10.38 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 2 (clockToSquareWave.y,clockToSquareWave.y2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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.0001638/0.4758, allocations: 95.31 kB / 0.5075 GB, free: 10.27 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001712/0.476, allocations: 39.86 kB / 0.5075 GB, free: 10.23 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.476, allocations: 0 / 0.5075 GB, free: 10.23 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.995e-05/0.4761, allocations: 11.94 kB / 0.5075 GB, free: 10.22 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003917/0.4765, allocations: 32.33 kB / 0.5076 GB, free: 10.19 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004441/0.4769, allocations: 155.9 kB / 0.5077 GB, free: 10 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00032/0.4773, allocations: 0.6965 MB / 0.5084 GB, free: 9.277 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.48e-05/0.4773, allocations: 11.44 kB / 0.5084 GB, free: 9.27 MB / 362.7 MB Notification: Performance of SimCode: time 1.122e-06/0.4773, allocations: 0 / 0.5084 GB, free: 9.27 MB / 362.7 MB Notification: Performance of Templates: time 0.003096/0.4804, allocations: 0.8369 MB / 0.5092 GB, free: 8.434 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches