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.001104/0.001105, allocations: 181.3 kB / 13.23 MB, free: 2.086 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.647/1.647, allocations: 205.2 MB / 219 MB, free: 9.137 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.0009913/0.0009913, allocations: 82.61 kB / 267.1 MB, free: 9.27 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.1028/0.1027, allocations: 12.6 MB / 327.8 MB, free: 12.48 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.269e-05/2.275e-05, allocations: 11.98 kB / 386 MB, free: 69.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.103, allocations: 50.37 MB / 436.4 MB, free: 19.21 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3921/0.4952, allocations: 78.46 MB / 0.5028 GB, free: 11.9 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002778/0.4955, allocations: 81.62 kB / 0.5029 GB, free: 11.9 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004683/0.5002, allocations: 1.496 MB / 0.5043 GB, free: 11.5 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.5003, allocations: 3.938 kB / 0.5043 GB, free: 11.5 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.179e-05/0.5003, allocations: 3.844 kB / 0.5043 GB, free: 11.5 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.0003215/0.5006, allocations: 355 kB / 0.5047 GB, free: 11.14 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.426e-05/0.5007, allocations: 11.72 kB / 0.5047 GB, free: 11.14 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.231e-05/0.5007, allocations: 11.53 kB / 0.5047 GB, free: 11.13 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001757/0.5009, allocations: 190.8 kB / 0.5049 GB, free: 10.93 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.148e-05/0.5009, allocations: 3.875 kB / 0.5049 GB, free: 10.93 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.627e-05/0.501, allocations: 0 / 0.5049 GB, free: 10.93 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002872/0.5013, allocations: 137.9 kB / 0.505 GB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.736e-06/0.5013, allocations: 0 / 0.505 GB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.169e-05/0.5013, allocations: 0 / 0.505 GB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.152e-06/0.5013, allocations: 3.875 kB / 0.505 GB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.414e-05/0.5014, allocations: 11.38 kB / 0.505 GB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003957/0.5018, allocations: 366.2 kB / 0.5054 GB, free: 10.48 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001938/0.502, allocations: 154.9 kB / 0.5055 GB, free: 10.31 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.923e-05/0.5021, allocations: 31.94 kB / 0.5055 GB, free: 10.29 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.585e-05/0.5021, allocations: 7.625 kB / 0.5055 GB, free: 10.29 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.634e-05/0.5021, allocations: 39.06 kB / 0.5056 GB, free: 10.24 MB / 330.7 MB Notification: Performance of pre-optimization done (n=6): time 1.553e-06/0.5021, allocations: 0 / 0.5056 GB, free: 10.24 MB / 330.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002397/0.5024, allocations: 68.44 kB / 0.5056 GB, free: 10.2 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.983e-05/0.5024, allocations: 109.2 kB / 0.5058 GB, free: 10.08 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001082/0.5026, allocations: 125.4 kB / 0.5059 GB, free: 9.984 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.121e-05/0.5026, allocations: 37.48 kB / 0.5059 GB, free: 9.949 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.532e-05/0.5026, allocations: 84.02 kB / 0.506 GB, free: 9.863 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.045e-05/0.5026, allocations: 10.33 kB / 0.506 GB, free: 9.859 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.448e-06/0.5027, allocations: 3.938 kB / 0.506 GB, free: 9.855 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.121e-05/0.5027, allocations: 318.3 kB / 0.5063 GB, free: 9.539 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.003e-05/0.5028, allocations: 13.41 kB / 0.5063 GB, free: 9.539 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.993e-05/0.5028, allocations: 39.11 kB / 0.5064 GB, free: 9.5 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.25e-05/0.5029, allocations: 22.47 kB / 0.5064 GB, free: 9.488 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.5029, allocations: 0 / 0.5064 GB, free: 9.488 MB / 330.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001411/0.503, allocations: 76.53 kB / 0.5065 GB, free: 9.449 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.662e-05/0.503, allocations: 7.688 kB / 0.5065 GB, free: 9.449 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.191e-06/0.5031, allocations: 0 / 0.5065 GB, free: 9.449 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.692e-05/0.5031, allocations: 7.938 kB / 0.5065 GB, free: 9.445 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.959e-05/0.5032, allocations: 14 kB / 0.5065 GB, free: 9.441 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.406e-06/0.5032, allocations: 0.7812 kB / 0.5065 GB, free: 9.441 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.847e-05/0.5033, allocations: 21.7 kB / 0.5065 GB, free: 9.43 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.093e-05/0.5033, allocations: 0 / 0.5065 GB, free: 9.43 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 () * 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 5.243e-05/0.5034, allocations: 111.8 kB / 0.5066 GB, free: 9.32 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001218/0.5035, allocations: 55.42 kB / 0.5067 GB, free: 9.281 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.05e-05/0.5035, allocations: 13.66 kB / 0.5067 GB, free: 9.277 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.955e-06/0.5036, allocations: 4 kB / 0.5067 GB, free: 9.273 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.5036, allocations: 0 / 0.5067 GB, free: 9.273 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.5036, allocations: 6.719 kB / 0.5067 GB, free: 9.273 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002654/0.5039, allocations: 182 kB / 0.5069 GB, free: 9.082 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.5039, allocations: 0 / 0.5069 GB, free: 9.082 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.837e-05/0.5039, allocations: 7.719 kB / 0.5069 GB, free: 9.082 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.896e-06/0.504, allocations: 0 / 0.5069 GB, free: 9.082 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.077e-05/0.504, allocations: 6.844 kB / 0.5069 GB, free: 9.082 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.504, allocations: 0 / 0.5069 GB, free: 9.082 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.504, allocations: 0 / 0.5069 GB, free: 9.082 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001641/0.5042, allocations: 278.3 kB / 0.5071 GB, free: 8.824 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.463e-05/0.5042, allocations: 91.58 kB / 0.5072 GB, free: 8.727 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.386e-05/0.5043, allocations: 3.812 kB / 0.5072 GB, free: 8.727 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001606/0.5044, allocations: 2.906 kB / 0.5072 GB, free: 8.727 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.799e-05/0.5045, allocations: 15.33 kB / 0.5072 GB, free: 8.719 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.322e-06/0.5045, allocations: 0 / 0.5072 GB, free: 8.719 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.518e-05/0.5046, allocations: 111.2 kB / 0.5073 GB, free: 8.641 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5046, allocations: 0 / 0.5073 GB, free: 8.641 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004322/0.505, allocations: 11.03 kB / 0.5074 GB, free: 8.641 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 () * 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.521e-05/0.5051, allocations: 94.72 kB / 0.5075 GB, free: 8.551 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001208/0.5052, allocations: 35.62 kB / 0.5075 GB, free: 8.547 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.5053, allocations: 8.188 kB / 0.5075 GB, free: 8.539 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 2.979e-05/0.5053, allocations: 11.62 kB / 0.5075 GB, free: 8.535 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003891/0.5057, allocations: 26.11 kB / 0.5075 GB, free: 8.531 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003215/0.506, allocations: 121.3 kB / 0.5076 GB, free: 8.43 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001468/0.5062, allocations: 0.6956 MB / 0.5083 GB, free: 7.734 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 4.225e-05/0.5062, allocations: 8.281 kB / 0.5083 GB, free: 7.73 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.31e-05/0.5063, allocations: 11.25 kB / 0.5083 GB, free: 7.723 MB / 330.7 MB Notification: Performance of SimCode: time 4.01e-07/0.5063, allocations: 3.938 kB / 0.5083 GB, free: 7.719 MB / 330.7 MB Notification: Performance of Templates: time 0.003097/0.5094, allocations: 0.5634 MB / 0.5089 GB, free: 7.641 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/jenkins/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