Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|clockToSquareWave.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|clockToSquareWave.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00121/0.00121, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.335/1.335, allocations: 221.5 MB / 230.3 MB, free: 7.586 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009558/0.0009555, allocations: 98.91 kB / 281.2 MB, free: 5.32 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.529e-05/1.533e-05, allocations: 4 kB / 337 MB, free: 10.04 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.1068, allocations: 50.42 MB / 387.5 MB, free: 7.57 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3195/0.4263, allocations: 76.57 MB / 464 MB, free: 2.289 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002555/0.4266, allocations: 81.92 kB / 464.1 MB, free: 2.211 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004561/0.4312, allocations: 1.564 MB / 465.7 MB, free: 0.6562 MB / 330.7 MB Notification: Performance of FrontEnd: time 4.469e-06/0.4312, allocations: 0 / 465.7 MB, free: 0.6562 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.143e-05/0.4313, allocations: 3.938 kB / 465.7 MB, free: 0.6523 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.0004029/0.4317, allocations: 351 kB / 466 MB, free: 272 kB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.044e-05/0.4317, allocations: 8.031 kB / 466 MB, free: 264 kB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.725e-05/0.4318, allocations: 19.8 kB / 466.1 MB, free: 244 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002158/0.432, allocations: 190.9 kB / 466.2 MB, free: 12 kB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.158e-05/0.432, allocations: 0 / 466.2 MB, free: 12 kB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.122e-05/0.432, allocations: 8 kB / 466.2 MB, free: 4 kB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001147/0.4322, allocations: 20.08 kB / 466.3 MB, free: 15.98 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000236/0.4324, allocations: 117.8 kB / 466.4 MB, free: 15.85 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.334e-05/0.4324, allocations: 7.938 kB / 466.4 MB, free: 15.84 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.302e-05/0.4325, allocations: 3.984 kB / 466.4 MB, free: 15.84 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.538e-06/0.4325, allocations: 4 kB / 466.4 MB, free: 15.83 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004271/0.4329, allocations: 326.5 kB / 466.7 MB, free: 15.47 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001934/0.4331, allocations: 152.8 kB / 466.9 MB, free: 15.27 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.259e-05/0.4332, allocations: 34.7 kB / 466.9 MB, free: 15.23 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.064e-05/0.4332, allocations: 0 / 466.9 MB, free: 15.23 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.18e-05/0.4332, allocations: 38.59 kB / 466.9 MB, free: 15.18 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 1.192e-06/0.4332, allocations: 0 / 466.9 MB, free: 15.18 MB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002129/0.4335, allocations: 73.53 kB / 467 MB, free: 15.11 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.788e-05/0.4335, allocations: 106.7 kB / 467.1 MB, free: 14.98 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001129/0.4337, allocations: 121.3 kB / 467.2 MB, free: 14.85 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.44e-05/0.4337, allocations: 25.7 kB / 467.3 MB, free: 14.82 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.597e-05/0.4337, allocations: 96.25 kB / 467.3 MB, free: 14.72 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.752e-05/0.4338, allocations: 11.84 kB / 467.4 MB, free: 14.71 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.137e-06/0.4338, allocations: 0 / 467.4 MB, free: 14.71 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001478/0.4339, allocations: 326.9 kB / 467.7 MB, free: 14.38 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.248e-05/0.434, allocations: 5.125 kB / 467.7 MB, free: 14.38 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.968e-05/0.434, allocations: 40.3 kB / 467.7 MB, free: 14.32 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.303e-05/0.4341, allocations: 4 kB / 467.7 MB, free: 14.32 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.4341, allocations: 11.94 kB / 467.7 MB, free: 14.3 MB / 346.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001203/0.4342, allocations: 69.61 kB / 467.8 MB, free: 14.23 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.905e-05/0.4342, allocations: 7.953 kB / 467.8 MB, free: 14.22 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.238e-06/0.4342, allocations: 0 / 467.8 MB, free: 14.22 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.727e-05/0.4343, allocations: 7.938 kB / 467.8 MB, free: 14.21 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.704e-05/0.4343, allocations: 11.98 kB / 467.8 MB, free: 14.2 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.594e-06/0.4344, allocations: 4 kB / 467.8 MB, free: 14.2 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.921e-05/0.4344, allocations: 3.906 kB / 467.8 MB, free: 14.2 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.783e-06/0.4344, allocations: 8.125 kB / 467.9 MB, free: 14.19 MB / 346.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 7.694e-05/0.4345, allocations: 108.9 kB / 468 MB, free: 14.07 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.934e-05/0.4346, allocations: 53.53 kB / 468 MB, free: 14.02 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.972e-05/0.4347, allocations: 16.44 kB / 468 MB, free: 14 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.4347, allocations: 3.984 kB / 468 MB, free: 13.99 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.4347, allocations: 4 kB / 468 MB, free: 13.99 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.4347, allocations: 3.984 kB / 468 MB, free: 13.98 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002005/0.4349, allocations: 146.2 kB / 468.2 MB, free: 13.8 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.4349, allocations: 4 kB / 468.2 MB, free: 13.8 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.166e-05/0.435, allocations: 15.98 kB / 468.2 MB, free: 13.79 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.435, allocations: 0 / 468.2 MB, free: 13.79 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.875e-06/0.435, allocations: 0 / 468.2 MB, free: 13.79 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.278e-06/0.435, allocations: 4 kB / 468.2 MB, free: 13.78 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.121e-06/0.435, allocations: 3.953 kB / 468.2 MB, free: 13.78 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001979/0.4352, allocations: 271 kB / 468.5 MB, free: 13.48 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.369e-05/0.4353, allocations: 93 kB / 468.6 MB, free: 13.37 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.044e-05/0.4353, allocations: 3.953 kB / 468.6 MB, free: 13.37 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001043/0.4355, allocations: 7.984 kB / 468.6 MB, free: 13.36 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.314e-05/0.4355, allocations: 0 / 468.6 MB, free: 13.36 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.099e-06/0.4355, allocations: 4 kB / 468.6 MB, free: 13.36 MB / 346.7 MB Notification: Performance of sorting global known variables: time 7.44e-05/0.4356, allocations: 103.3 kB / 468.7 MB, free: 13.25 MB / 346.7 MB Notification: Performance of sort global known variables: time 2e-07/0.4356, allocations: 0 / 468.7 MB, free: 13.25 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000257/0.4359, allocations: 12 kB / 468.7 MB, free: 13.24 MB / 346.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.0001294/0.436, allocations: 99.25 kB / 468.8 MB, free: 13.14 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000108/0.4361, allocations: 33.17 kB / 468.8 MB, free: 13.11 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.4361, allocations: 0 / 468.8 MB, free: 13.11 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.355e-05/0.4361, allocations: 8 kB / 468.8 MB, free: 13.1 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003298/0.4365, allocations: 31.84 kB / 468.9 MB, free: 13.07 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003053/0.4368, allocations: 118.5 kB / 469 MB, free: 12.92 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002735/0.4371, allocations: 0.6963 MB / 469.7 MB, free: 12.2 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 4.366e-05/0.4371, allocations: 4.188 kB / 469.7 MB, free: 12.2 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.01e-05/0.4372, allocations: 15.44 kB / 469.7 MB, free: 12.18 MB / 346.7 MB Notification: Performance of SimCode: time 2.3e-07/0.4372, allocations: 0 / 469.7 MB, free: 12.18 MB / 346.7 MB Notification: Performance of Templates: time 0.002653/0.4398, allocations: 0.5329 MB / 470.2 MB, free: 11.66 MB / 346.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToSquareWaveHold/AssignClockToSquareWaveHold.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches