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.001347/0.001346, allocations: 179.9 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.443/1.443, allocations: 223.2 MB / 240.3 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009809/0.0009809, allocations: 97.12 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003133/0.0003134, allocations: 11.94 kB / 351.1 MB, free: 15.31 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3062/0.3065, allocations: 50.41 MB / 401.5 MB, free: 32.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1051/0.4117, allocations: 77.31 MB / 478.8 MB, free: 3.18 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002623/0.412, allocations: 75.95 kB / 478.9 MB, free: 3.105 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00429/0.4163, allocations: 1.565 MB / 480.5 MB, free: 1.551 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.4164, allocations: 0 / 480.5 MB, free: 1.551 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.037e-05/0.4164, allocations: 4 kB / 480.5 MB, free: 1.547 MB / 346.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.0004177/0.4168, allocations: 379.5 kB / 480.8 MB, free: 1.129 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.621e-05/0.4169, allocations: 8.031 kB / 480.8 MB, free: 1.121 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.764e-05/0.4169, allocations: 23.8 kB / 480.9 MB, free: 1.098 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000203/0.4171, allocations: 189.8 kB / 481 MB, free: 0.875 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.107e-05/0.4171, allocations: 4 kB / 481 MB, free: 0.8711 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.043e-05/0.4171, allocations: 4 kB / 481.1 MB, free: 0.8672 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002841/0.4174, allocations: 137.8 kB / 481.2 MB, free: 0.7109 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.985e-06/0.4175, allocations: 0 / 481.2 MB, free: 0.7109 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.305e-05/0.4175, allocations: 7.938 kB / 481.2 MB, free: 0.7031 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.581e-06/0.4175, allocations: 4 kB / 481.2 MB, free: 0.6992 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001026/0.4176, allocations: 27.92 kB / 481.2 MB, free: 0.6719 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000409/0.418, allocations: 365.8 kB / 481.6 MB, free: 264 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002066/0.4182, allocations: 160.9 kB / 481.7 MB, free: 56 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.598e-05/0.4183, allocations: 0 / 481.7 MB, free: 56 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.539e-05/0.4183, allocations: 46.59 kB / 481.8 MB, free: 0 / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 8.11e-07/0.4183, allocations: 0 / 481.8 MB, free: 0 / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.000321/0.4186, allocations: 97.69 kB / 481.9 MB, free: 15.89 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.486e-05/0.4187, allocations: 110.8 kB / 482 MB, free: 15.76 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001067/0.4188, allocations: 121.3 kB / 482.1 MB, free: 15.63 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.689e-05/0.4188, allocations: 29.7 kB / 482.1 MB, free: 15.6 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.831e-05/0.4189, allocations: 88.31 kB / 482.2 MB, free: 15.5 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.67e-05/0.4189, allocations: 11.81 kB / 482.2 MB, free: 15.5 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.206e-06/0.4189, allocations: 8.156 kB / 482.2 MB, free: 15.49 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001069/0.419, allocations: 318.8 kB / 482.6 MB, free: 15.17 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.963e-05/0.4191, allocations: 12 kB / 482.6 MB, free: 15.16 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.055e-05/0.4192, allocations: 52.22 kB / 482.6 MB, free: 15.09 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.69e-05/0.4192, allocations: 23.98 kB / 482.6 MB, free: 15.07 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.4192, allocations: 0 / 482.6 MB, free: 15.07 MB / 362.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001671/0.4194, allocations: 97.41 kB / 482.7 MB, free: 14.96 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.379e-05/0.4194, allocations: 4 kB / 482.7 MB, free: 14.96 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.498e-06/0.4194, allocations: 4.125 kB / 482.7 MB, free: 14.96 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.309e-05/0.4195, allocations: 4 kB / 482.7 MB, free: 14.95 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.159e-05/0.4195, allocations: 11.98 kB / 482.8 MB, free: 14.94 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.741e-06/0.4196, allocations: 0 / 482.8 MB, free: 14.94 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.542e-05/0.4196, allocations: 4 kB / 482.8 MB, free: 14.94 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.604e-06/0.4196, allocations: 4 kB / 482.8 MB, free: 14.93 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 () * 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 9.914e-05/0.4197, allocations: 125.8 kB / 482.9 MB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.303e-05/0.4198, allocations: 57.78 kB / 482.9 MB, free: 14.74 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.818e-05/0.4199, allocations: 20.28 kB / 483 MB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.4199, allocations: 4 kB / 483 MB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.4199, allocations: 3.938 kB / 483 MB, free: 14.7 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.4199, allocations: 0 / 483 MB, free: 14.7 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002272/0.4201, allocations: 173.6 kB / 483.1 MB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.4201, allocations: 0 / 483.1 MB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.66e-05/0.4202, allocations: 12 kB / 483.2 MB, free: 14.47 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/0.4202, allocations: 4 kB / 483.2 MB, free: 14.47 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.246e-05/0.4202, allocations: 7.938 kB / 483.2 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.4202, allocations: 3.938 kB / 483.2 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.4203, allocations: 11.94 kB / 483.2 MB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002332/0.4205, allocations: 279 kB / 483.5 MB, free: 14.14 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.24e-05/0.4206, allocations: 97 kB / 483.5 MB, free: 14.03 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.809e-05/0.4206, allocations: 4 kB / 483.6 MB, free: 14.02 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.529e-05/0.4207, allocations: 0 / 483.6 MB, free: 14.02 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.313e-05/0.4207, allocations: 7.984 kB / 483.6 MB, free: 14.02 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.559e-06/0.4207, allocations: 0 / 483.6 MB, free: 14.02 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.896e-05/0.4208, allocations: 114.2 kB / 483.7 MB, free: 13.91 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4208, allocations: 0 / 483.7 MB, free: 13.91 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002577/0.4211, allocations: 8 kB / 483.7 MB, free: 13.9 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 () * 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 0.0001227/0.4212, allocations: 111.1 kB / 483.8 MB, free: 13.78 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001512/0.4214, allocations: 43.92 kB / 483.8 MB, free: 13.74 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.4214, allocations: 4 kB / 483.8 MB, free: 13.73 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.434e-05/0.4214, allocations: 15.98 kB / 483.9 MB, free: 13.72 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002835/0.4217, allocations: 23.97 kB / 483.9 MB, free: 13.7 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003906/0.4221, allocations: 212.6 kB / 484.1 MB, free: 13.45 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002939/0.4224, allocations: 0.7004 MB / 484.8 MB, free: 12.72 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.627e-05/0.4225, allocations: 8.172 kB / 484.8 MB, free: 12.71 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.719e-05/0.4225, allocations: 11.44 kB / 484.8 MB, free: 12.7 MB / 362.7 MB Notification: Performance of SimCode: time 3.81e-07/0.4225, allocations: 0 / 484.8 MB, free: 12.7 MB / 362.7 MB Notification: Performance of Templates: time 0.002506/0.425, allocations: 0.5547 MB / 485.4 MB, free: 12.17 MB / 362.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