Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_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_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_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.001058/0.001059, allocations: 172.2 kB / 16.8 MB, free: 5 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.536/1.536, allocations: 205.4 MB / 223 MB, free: 8.922 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.0008197/0.0008199, allocations: 86.41 kB / 271.3 MB, free: 8.238 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.0991/0.0991, allocations: 12.59 MB / 332.2 MB, free: 11.25 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005088/0.0005089, allocations: 20 kB / 393.2 MB, free: 65.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07855/0.07907, allocations: 50.37 MB / 443.6 MB, free: 15.5 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2777/0.3569, allocations: 78.58 MB / 0.5099 GB, free: 13.47 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002543/0.3572, allocations: 79.86 kB / 0.51 GB, free: 13.46 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003615/0.3608, allocations: 1.508 MB / 0.5115 GB, free: 12.76 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.735e-06/0.3608, allocations: 3.984 kB / 0.5115 GB, free: 12.76 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.737e-06/0.3608, allocations: 0 / 0.5115 GB, free: 12.76 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0003088/0.3612, allocations: 373.3 kB / 0.5119 GB, free: 12.37 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.607e-05/0.3612, allocations: 7.75 kB / 0.5119 GB, free: 12.37 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.29e-05/0.3612, allocations: 12.5 kB / 0.5119 GB, free: 12.37 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001435/0.3614, allocations: 199.3 kB / 0.5121 GB, free: 12.14 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.35e-05/0.3614, allocations: 7.594 kB / 0.5121 GB, free: 12.14 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.284e-05/0.3614, allocations: 384 / 0.5121 GB, free: 12.14 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002883/0.3617, allocations: 134.8 kB / 0.5122 GB, free: 12.05 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/0.3618, allocations: 192 / 0.5122 GB, free: 12.05 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.428e-05/0.3618, allocations: 10.67 kB / 0.5122 GB, free: 12.04 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.3618, allocations: 0 / 0.5122 GB, free: 12.04 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.368e-05/0.3619, allocations: 29.7 kB / 0.5122 GB, free: 12.04 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003761/0.3623, allocations: 364.5 kB / 0.5126 GB, free: 11.66 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002011/0.3625, allocations: 161 kB / 0.5127 GB, free: 11.48 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.855e-05/0.3626, allocations: 43.75 kB / 0.5128 GB, free: 11.45 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.454e-05/0.3626, allocations: 3.844 kB / 0.5128 GB, free: 11.45 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.707e-05/0.3626, allocations: 34.5 kB / 0.5128 GB, free: 11.41 MB / 330.7 MB Notification: Performance of pre-optimization done (n=6): time 1.343e-06/0.3626, allocations: 0 / 0.5128 GB, free: 11.41 MB / 330.7 MB Notification: Performance of matching and sorting (n=6): time 0.000283/0.3629, allocations: 104.9 kB / 0.5129 GB, free: 11.36 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.027e-05/0.363, allocations: 109.5 kB / 0.513 GB, free: 11.23 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001055/0.3631, allocations: 137.5 kB / 0.5132 GB, free: 11.12 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.117e-06/0.3631, allocations: 25.7 kB / 0.5132 GB, free: 11.09 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.679e-05/0.3631, allocations: 93.89 kB / 0.5133 GB, free: 11 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.25e-05/0.3632, allocations: 7.891 kB / 0.5133 GB, free: 10.99 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.976e-06/0.3632, allocations: 160 / 0.5133 GB, free: 10.99 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.273e-05/0.3632, allocations: 322.6 kB / 0.5136 GB, free: 10.68 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.726e-05/0.3633, allocations: 18.89 kB / 0.5136 GB, free: 10.67 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.662e-05/0.3634, allocations: 43.59 kB / 0.5136 GB, free: 10.62 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.312e-05/0.3635, allocations: 69.81 kB / 0.5137 GB, free: 10.57 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.3635, allocations: 3.938 kB / 0.5137 GB, free: 10.57 MB / 330.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001419/0.3636, allocations: 103 kB / 0.5138 GB, free: 10.51 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.406e-05/0.3636, allocations: 3.938 kB / 0.5138 GB, free: 10.51 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.3637, allocations: 0 / 0.5138 GB, free: 10.51 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.399e-05/0.3637, allocations: 3.844 kB / 0.5138 GB, free: 10.51 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.942e-05/0.3637, allocations: 11.7 kB / 0.5138 GB, free: 10.51 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.3638, allocations: 3.844 kB / 0.5138 GB, free: 10.51 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.284e-05/0.3638, allocations: 3.875 kB / 0.5138 GB, free: 10.51 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.067e-06/0.3638, allocations: 0 / 0.5138 GB, free: 10.51 MB / 330.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 () * Number of clocked states: 1 (clockToSquareWave.y2) * 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 7.105e-05/0.3639, allocations: 138.6 kB / 0.514 GB, free: 10.38 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.026e-05/0.364, allocations: 56.94 kB / 0.514 GB, free: 10.34 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.335e-05/0.364, allocations: 11.34 kB / 0.514 GB, free: 10.32 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.364, allocations: 0.875 kB / 0.514 GB, free: 10.32 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.364, allocations: 0 / 0.514 GB, free: 10.32 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-06/0.3641, allocations: 0 / 0.514 GB, free: 10.32 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001812/0.3642, allocations: 184 kB / 0.5142 GB, free: 10.12 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.3642, allocations: 0 / 0.5142 GB, free: 10.12 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.894e-05/0.3643, allocations: 7.75 kB / 0.5142 GB, free: 10.12 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/0.3643, allocations: 7.688 kB / 0.5142 GB, free: 10.12 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.345e-06/0.3643, allocations: 11.77 kB / 0.5142 GB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.3643, allocations: 0 / 0.5142 GB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.3643, allocations: 0 / 0.5142 GB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001509/0.3645, allocations: 269 kB / 0.5145 GB, free: 9.875 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.067e-05/0.3645, allocations: 92.56 kB / 0.5146 GB, free: 9.773 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.957e-05/0.3646, allocations: 3.844 kB / 0.5146 GB, free: 9.773 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.201e-05/0.3647, allocations: 0 / 0.5146 GB, free: 9.773 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.435e-05/0.3647, allocations: 7.891 kB / 0.5146 GB, free: 9.77 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.238e-06/0.3647, allocations: 0 / 0.5146 GB, free: 9.77 MB / 330.7 MB Notification: Performance of sorting global known variables: time 4.872e-05/0.3648, allocations: 109 kB / 0.5147 GB, free: 9.691 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3648, allocations: 0 / 0.5147 GB, free: 9.691 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002642/0.3651, allocations: 7.688 kB / 0.5147 GB, free: 9.691 MB / 330.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 () * Number of clocked states: 1 (clockToSquareWave.y2) * 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 8.859e-05/0.3651, allocations: 98.77 kB / 0.5148 GB, free: 9.598 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001455/0.3653, allocations: 50.2 kB / 0.5148 GB, free: 9.586 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.3653, allocations: 0 / 0.5148 GB, free: 9.586 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 3.692e-05/0.3653, allocations: 15.64 kB / 0.5149 GB, free: 9.582 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004083/0.3658, allocations: 35.23 kB / 0.5149 GB, free: 9.57 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003196/0.3661, allocations: 211.7 kB / 0.5151 GB, free: 9.379 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001433/0.3663, allocations: 0.6999 MB / 0.5158 GB, free: 8.668 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 3.589e-05/0.3663, allocations: 0 / 0.5158 GB, free: 8.668 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.632e-05/0.3663, allocations: 11.41 kB / 0.5158 GB, free: 8.66 MB / 330.7 MB Notification: Performance of SimCode: time 2.11e-07/0.3663, allocations: 0 / 0.5158 GB, free: 8.66 MB / 330.7 MB Notification: Performance of Templates: time 0.002463/0.3688, allocations: 0.5736 MB / 0.5164 GB, free: 8.383 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_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_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches