Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001528/0.001528, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.579/1.579, allocations: 226.7 MB / 245.5 MB, free: 6.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001308/0.001307, allocations: 109.7 kB / 296.7 MB, free: 6.453 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001496/0.001496, allocations: 51.92 kB / 356.6 MB, free: 10.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3973/0.3988, allocations: 50.45 MB / 407.1 MB, free: 27.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003718/0.4026, allocations: 1.663 MB / 408.7 MB, free: 26.14 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001146/0.4038, allocations: 0.5265 MB / 409.2 MB, free: 25.61 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001064/0.4039, allocations: 0 / 409.2 MB, free: 25.61 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 6.02e-05/0.404, allocations: 3.938 kB / 409.2 MB, free: 25.61 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001953/0.4043, allocations: 11.92 kB / 409.3 MB, free: 25.59 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003831/0.4046, allocations: 47.84 kB / 409.3 MB, free: 25.55 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001393/0.4048, allocations: 47.84 kB / 409.4 MB, free: 25.5 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001418/0.405, allocations: 18.31 kB / 409.4 MB, free: 25.48 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001501/0.4051, allocations: 27.92 kB / 409.4 MB, free: 25.46 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.76e-05/0.4052, allocations: 23.86 kB / 409.4 MB, free: 25.43 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.048e-05/0.4052, allocations: 3.984 kB / 409.4 MB, free: 25.43 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.246e-05/0.4053, allocations: 8 kB / 409.4 MB, free: 25.42 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.475e-05/0.4054, allocations: 18.95 kB / 409.5 MB, free: 25.41 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.308e-05/0.4054, allocations: 23.81 kB / 409.5 MB, free: 25.38 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001407/0.4056, allocations: 63.72 kB / 409.5 MB, free: 25.32 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.4056, allocations: 0 / 409.5 MB, free: 25.32 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.4056, allocations: 3.938 kB / 409.5 MB, free: 25.32 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.109e-06/0.4056, allocations: 0 / 409.5 MB, free: 25.32 MB / 298.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.0005856/0.4062, allocations: 384.7 kB / 409.9 MB, free: 24.89 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/0.4063, allocations: 16.03 kB / 409.9 MB, free: 24.88 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001892/0.4065, allocations: 12.84 kB / 409.9 MB, free: 24.87 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001961/0.4067, allocations: 196.1 kB / 410.1 MB, free: 24.64 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.596e-06/0.4067, allocations: 384 / 410.1 MB, free: 24.64 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.217e-05/0.4067, allocations: 8.375 kB / 410.1 MB, free: 24.63 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003456/0.4071, allocations: 145.8 kB / 410.3 MB, free: 24.46 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.259e-05/0.4071, allocations: 0 / 410.3 MB, free: 24.46 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.444e-05/0.4071, allocations: 4 kB / 410.3 MB, free: 24.46 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.4071, allocations: 0 / 410.3 MB, free: 24.46 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001161/0.4073, allocations: 23.98 kB / 410.3 MB, free: 24.44 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003377/0.4076, allocations: 278.6 kB / 410.6 MB, free: 24.11 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002689/0.4079, allocations: 160.8 kB / 410.7 MB, free: 23.91 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001012/0.408, allocations: 38.69 kB / 410.8 MB, free: 23.86 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.769e-05/0.4081, allocations: 8 kB / 410.8 MB, free: 23.85 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.001e-05/0.4081, allocations: 30.56 kB / 410.8 MB, free: 23.81 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 1.402e-06/0.4081, allocations: 0 / 410.8 MB, free: 23.81 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0003578/0.4085, allocations: 101.4 kB / 410.9 MB, free: 23.71 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.018e-05/0.4085, allocations: 115.1 kB / 411 MB, free: 23.57 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001196/0.4087, allocations: 144.5 kB / 411.2 MB, free: 23.42 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.094e-05/0.4087, allocations: 29.7 kB / 411.2 MB, free: 23.39 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.362e-05/0.4087, allocations: 88.08 kB / 411.3 MB, free: 23.3 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.263e-05/0.4088, allocations: 11.89 kB / 411.3 MB, free: 23.29 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.849e-05/0.4088, allocations: 21.72 kB / 411.3 MB, free: 23.26 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.799e-05/0.4089, allocations: 318.8 kB / 411.6 MB, free: 22.94 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.781e-05/0.409, allocations: 15.98 kB / 411.6 MB, free: 22.92 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.544e-05/0.4091, allocations: 48.28 kB / 411.7 MB, free: 22.86 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001377/0.4092, allocations: 68.22 kB / 411.8 MB, free: 22.78 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.536e-06/0.4092, allocations: 0 / 411.8 MB, free: 22.78 MB / 298.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002156/0.4094, allocations: 89.44 kB / 411.8 MB, free: 22.68 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/0.4095, allocations: 7.938 kB / 411.9 MB, free: 22.68 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.101e-06/0.4095, allocations: 4 kB / 411.9 MB, free: 22.67 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.476e-05/0.4095, allocations: 0 / 411.9 MB, free: 22.67 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.315e-05/0.4096, allocations: 11.94 kB / 411.9 MB, free: 22.66 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.538e-06/0.4096, allocations: 4 kB / 411.9 MB, free: 22.66 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.306e-05/0.4097, allocations: 12.11 kB / 411.9 MB, free: 22.64 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.322e-05/0.4098, allocations: 4 kB / 411.9 MB, free: 22.64 MB / 298.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.y,$CLKPRE.clockToSquareWave.y2,clockToSquareWave.y2) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.453e-05/0.4098, allocations: 123.3 kB / 412 MB, free: 22.51 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001164/0.41, allocations: 49.59 kB / 412.1 MB, free: 22.46 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.762e-05/0.41, allocations: 12.25 kB / 412.1 MB, free: 22.43 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.519e-06/0.4101, allocations: 4 kB / 412.1 MB, free: 22.43 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.792e-06/0.4101, allocations: 0 / 412.1 MB, free: 22.43 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.4101, allocations: 7.922 kB / 412.1 MB, free: 22.42 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002059/0.4103, allocations: 177.6 kB / 412.3 MB, free: 22.2 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.4103, allocations: 4 kB / 412.3 MB, free: 22.2 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.511e-05/0.4104, allocations: 11.98 kB / 412.3 MB, free: 22.18 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/0.4104, allocations: 0 / 412.3 MB, free: 22.18 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.278e-05/0.4104, allocations: 4 kB / 412.3 MB, free: 22.18 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.4104, allocations: 0 / 412.3 MB, free: 22.18 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.4105, allocations: 0 / 412.3 MB, free: 22.18 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004789/0.4109, allocations: 0.7567 MB / 413 MB, free: 21.36 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.87e-05/0.4111, allocations: 93 kB / 413.1 MB, free: 21.25 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.709e-05/0.4111, allocations: 4 kB / 413.1 MB, free: 21.25 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001133/0.4112, allocations: 3.938 kB / 413.1 MB, free: 21.24 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.073e-05/0.4113, allocations: 8.047 kB / 413.1 MB, free: 21.23 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.686e-06/0.4113, allocations: 4 kB / 413.1 MB, free: 21.23 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.483e-05/0.4114, allocations: 109.8 kB / 413.3 MB, free: 21.12 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.11e-07/0.4114, allocations: 7.938 kB / 413.3 MB, free: 21.12 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.00055/0.412, allocations: 12 kB / 413.3 MB, free: 21.11 MB / 298.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001854/0.4122, allocations: 107.4 kB / 413.4 MB, free: 20.99 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002032/0.4124, allocations: 47.91 kB / 413.4 MB, free: 20.95 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.4124, allocations: 0 / 413.4 MB, free: 20.95 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.03e-05/0.4125, allocations: 12.3 kB / 413.4 MB, free: 20.93 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005935/0.4131, allocations: 28.64 kB / 413.5 MB, free: 20.91 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000578/0.4137, allocations: 333.5 kB / 413.8 MB, free: 20.53 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000184/0.4139, allocations: 0.6965 MB / 414.5 MB, free: 19.81 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.964e-05/0.4139, allocations: 3.984 kB / 414.5 MB, free: 19.8 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.092e-05/0.414, allocations: 11.44 kB / 414.5 MB, free: 19.79 MB / 298.7 MB Notification: Performance of SimCode: time 1.012e-06/0.414, allocations: 0 / 414.5 MB, free: 19.79 MB / 298.7 MB Notification: Performance of Templates: time 0.003007/0.417, allocations: 0.6025 MB / 415.1 MB, free: 19.21 MB / 298.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToSquareWaveHold/AssignClockToSquareWaveHold.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches