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.001025/0.001025, allocations: 176.4 kB / 17.4 MB, free: 4.422 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.432/1.432, allocations: 223.3 MB / 241.4 MB, free: 9.98 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.0008792/0.0008789, allocations: 104.5 kB / 292.6 MB, free: 10.59 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004091/0.0004087, allocations: 11.94 kB / 352.3 MB, free: 14.84 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2861/0.2866, allocations: 50.4 MB / 402.8 MB, free: 32.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1079/0.3946, allocations: 77.36 MB / 480.1 MB, free: 2.996 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002891/0.3949, allocations: 79.95 kB / 480.2 MB, free: 2.918 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004539/0.3995, allocations: 1.565 MB / 481.8 MB, free: 1.359 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.026e-06/0.3995, allocations: 0 / 481.8 MB, free: 1.359 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.037e-05/0.3995, allocations: 0 / 481.8 MB, free: 1.359 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.0004445/0.4, allocations: 379.2 kB / 482.1 MB, free: 0.9375 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.861e-05/0.4, allocations: 12.02 kB / 482.1 MB, free: 0.9258 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.924e-05/0.4001, allocations: 12.84 kB / 482.1 MB, free: 0.9141 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002151/0.4003, allocations: 188.2 kB / 482.3 MB, free: 0.6914 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.196e-05/0.4003, allocations: 384 / 482.3 MB, free: 0.6914 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.418e-05/0.4003, allocations: 4.375 kB / 482.3 MB, free: 0.6875 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00033/0.4007, allocations: 142.4 kB / 482.5 MB, free: 0.5273 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.408e-06/0.4007, allocations: 192 / 482.5 MB, free: 0.5273 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.45e-05/0.4007, allocations: 3.938 kB / 482.5 MB, free: 0.5234 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.14e-06/0.4007, allocations: 0 / 482.5 MB, free: 0.5234 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.928e-05/0.4008, allocations: 27.98 kB / 482.5 MB, free: 0.4961 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004571/0.4013, allocations: 369.8 kB / 482.9 MB, free: 80 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002378/0.4015, allocations: 168.8 kB / 483 MB, free: 15.87 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.111e-05/0.4016, allocations: 46.62 kB / 483.1 MB, free: 15.81 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.978e-05/0.4017, allocations: 3.984 kB / 483.1 MB, free: 15.81 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.24e-05/0.4017, allocations: 30.56 kB / 483.1 MB, free: 15.77 MB / 362.7 MB Notification: Performance of pre-optimization done (n=6): time 1.152e-06/0.4017, allocations: 0 / 483.1 MB, free: 15.77 MB / 362.7 MB Notification: Performance of matching and sorting (n=6): time 0.0003105/0.402, allocations: 109.5 kB / 483.2 MB, free: 15.66 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.321e-05/0.4021, allocations: 102.8 kB / 483.3 MB, free: 15.53 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000128/0.4022, allocations: 144.7 kB / 483.5 MB, free: 15.38 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.445e-05/0.4023, allocations: 25.7 kB / 483.5 MB, free: 15.35 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.079e-05/0.4023, allocations: 88.12 kB / 483.6 MB, free: 15.26 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.93e-05/0.4023, allocations: 8.062 kB / 483.6 MB, free: 15.25 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.831e-06/0.4023, allocations: 8 kB / 483.6 MB, free: 15.24 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001131/0.4025, allocations: 318.8 kB / 483.9 MB, free: 14.92 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.732e-05/0.4025, allocations: 16 kB / 483.9 MB, free: 14.91 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.952e-05/0.4026, allocations: 44.28 kB / 484 MB, free: 14.85 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001138/0.4027, allocations: 68.16 kB / 484 MB, free: 14.77 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.478e-06/0.4027, allocations: 7.938 kB / 484 MB, free: 14.76 MB / 362.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001644/0.4029, allocations: 93.5 kB / 484.1 MB, free: 14.66 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.563e-05/0.4029, allocations: 8 kB / 484.1 MB, free: 14.65 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-06/0.4029, allocations: 0 / 484.1 MB, free: 14.65 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.532e-05/0.403, allocations: 4 kB / 484.1 MB, free: 14.65 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.861e-05/0.403, allocations: 11.94 kB / 484.1 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.826e-06/0.403, allocations: 3.984 kB / 484.1 MB, free: 14.63 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.575e-05/0.4031, allocations: 4 kB / 484.2 MB, free: 14.63 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.194e-05/0.4031, allocations: 8.359 kB / 484.2 MB, free: 14.62 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.241e-05/0.4032, allocations: 131 kB / 484.3 MB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.907e-05/0.4033, allocations: 49.59 kB / 484.3 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.666e-05/0.4034, allocations: 20.17 kB / 484.4 MB, free: 14.41 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.4034, allocations: 0 / 484.4 MB, free: 14.41 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.4034, allocations: 4 kB / 484.4 MB, free: 14.4 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.4034, allocations: 0 / 484.4 MB, free: 14.4 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002239/0.4036, allocations: 173.6 kB / 484.5 MB, free: 14.18 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.4036, allocations: 0 / 484.5 MB, free: 14.18 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.741e-05/0.4037, allocations: 15.98 kB / 484.5 MB, free: 14.17 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.4037, allocations: 0 / 484.5 MB, free: 14.17 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.31e-05/0.4037, allocations: 8 kB / 484.6 MB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.4037, allocations: 3.938 kB / 484.6 MB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.4037, allocations: 0 / 484.6 MB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002279/0.404, allocations: 267.5 kB / 484.8 MB, free: 13.88 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.65e-05/0.404, allocations: 93 kB / 484.9 MB, free: 13.77 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.452e-05/0.4041, allocations: 3.984 kB / 484.9 MB, free: 13.76 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.45e-05/0.4042, allocations: 4.062 kB / 484.9 MB, free: 13.76 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.059e-05/0.4042, allocations: 8 kB / 484.9 MB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.631e-06/0.4042, allocations: 0 / 484.9 MB, free: 13.75 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.08e-05/0.4043, allocations: 110.2 kB / 485 MB, free: 13.64 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4043, allocations: 0 / 485 MB, free: 13.64 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002536/0.4046, allocations: 16 kB / 485 MB, free: 13.63 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.0001271/0.4047, allocations: 103.2 kB / 485.1 MB, free: 13.52 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001503/0.4049, allocations: 47.91 kB / 485.2 MB, free: 13.47 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.4049, allocations: 0 / 485.2 MB, free: 13.47 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.38e-05/0.405, allocations: 24.12 kB / 485.2 MB, free: 13.45 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004106/0.4054, allocations: 31.08 kB / 485.3 MB, free: 13.42 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003786/0.4058, allocations: 207 kB / 485.5 MB, free: 13.17 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002903/0.4061, allocations: 0.7004 MB / 486.2 MB, free: 12.45 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.594e-05/0.4061, allocations: 7.984 kB / 486.2 MB, free: 12.44 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.619e-05/0.4062, allocations: 11.44 kB / 486.2 MB, free: 12.43 MB / 362.7 MB Notification: Performance of SimCode: time 2.31e-07/0.4062, allocations: 0 / 486.2 MB, free: 12.43 MB / 362.7 MB Notification: Performance of Templates: time 0.002647/0.4088, allocations: 0.5554 MB / 486.7 MB, free: 11.89 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/jenkins1/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