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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001284/0.001284, allocations: 118.8 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001539/0.00154, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.504/1.504, allocations: 227.4 MB / 246.9 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0012/0.0012, allocations: 63.89 kB / 358.7 MB, free: 12.86 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3774/0.3786, allocations: 50.53 MB / 409.3 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.004594/0.3832, allocations: 1.593 MB / 410.8 MB, free: 15.95 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00118/0.3844, allocations: 0.5532 MB / 411.4 MB, free: 15.39 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001266/0.3846, allocations: 8 kB / 411.4 MB, free: 15.38 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 7.842e-05/0.3847, allocations: 7.875 kB / 411.4 MB, free: 15.37 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002063/0.3849, allocations: 7.938 kB / 411.4 MB, free: 15.36 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004469/0.3854, allocations: 63.8 kB / 411.5 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001385/0.3855, allocations: 51.78 kB / 411.5 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000139/0.3857, allocations: 15.98 kB / 411.6 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000135/0.3858, allocations: 35.84 kB / 411.6 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.216e-05/0.3859, allocations: 23.86 kB / 411.6 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.945e-05/0.3859, allocations: 4 kB / 411.6 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.465e-05/0.386, allocations: 8 kB / 411.6 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.642e-05/0.3861, allocations: 15.92 kB / 411.6 MB, free: 15.15 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.598e-05/0.3861, allocations: 35.73 kB / 411.7 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002179/0.3864, allocations: 67.72 kB / 411.7 MB, free: 15.05 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.3864, allocations: 0 / 411.7 MB, free: 15.05 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.3864, allocations: 0 / 411.7 MB, free: 15.05 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.334e-06/0.3864, allocations: 0 / 411.7 MB, free: 15.05 MB / 334.1 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.0006783/0.3871, allocations: 376.3 kB / 412.1 MB, free: 14.64 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.212e-05/0.3871, allocations: 12.03 kB / 412.1 MB, free: 14.62 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001717/0.3873, allocations: 28.73 kB / 412.1 MB, free: 14.6 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003062/0.3876, allocations: 198.5 kB / 412.3 MB, free: 14.37 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.129e-05/0.3877, allocations: 8.312 kB / 412.4 MB, free: 14.36 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.645e-05/0.3877, allocations: 4.375 kB / 412.4 MB, free: 14.36 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003115/0.388, allocations: 146.1 kB / 412.5 MB, free: 14.19 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.845e-06/0.388, allocations: 0 / 412.5 MB, free: 14.19 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.307e-05/0.388, allocations: 4 kB / 412.5 MB, free: 14.19 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.158e-05/0.3881, allocations: 4 kB / 412.5 MB, free: 14.18 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.673e-05/0.3881, allocations: 23.92 kB / 412.5 MB, free: 14.16 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003547/0.3885, allocations: 286.5 kB / 412.8 MB, free: 13.82 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002308/0.3887, allocations: 156.9 kB / 413 MB, free: 13.62 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.433e-05/0.3888, allocations: 46.56 kB / 413 MB, free: 13.57 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.566e-05/0.3889, allocations: 3.984 kB / 413 MB, free: 13.57 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.432e-05/0.3889, allocations: 34.56 kB / 413 MB, free: 13.52 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.203e-06/0.3889, allocations: 0 / 413 MB, free: 13.52 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.000284/0.3892, allocations: 89.73 kB / 413.1 MB, free: 13.43 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.808e-05/0.3893, allocations: 122.8 kB / 413.3 MB, free: 13.29 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001142/0.3894, allocations: 133.8 kB / 413.4 MB, free: 13.14 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.638e-05/0.3894, allocations: 25.7 kB / 413.4 MB, free: 13.11 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.655e-05/0.3895, allocations: 100.1 kB / 413.5 MB, free: 13.01 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.886e-05/0.3895, allocations: 3.906 kB / 413.5 MB, free: 13.01 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.909e-05/0.3896, allocations: 21.72 kB / 413.5 MB, free: 12.98 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001131/0.3897, allocations: 322.8 kB / 413.8 MB, free: 12.66 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.404e-05/0.3897, allocations: 19.98 kB / 413.9 MB, free: 12.64 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.724e-05/0.3898, allocations: 44.28 kB / 413.9 MB, free: 12.58 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001066/0.3899, allocations: 64.22 kB / 414 MB, free: 12.5 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.3899, allocations: 0 / 414 MB, free: 12.5 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001632/0.3901, allocations: 85.45 kB / 414.1 MB, free: 12.41 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.466e-05/0.3901, allocations: 4 kB / 414.1 MB, free: 12.41 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.473e-06/0.3901, allocations: 4 kB / 414.1 MB, free: 12.4 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.189e-05/0.3902, allocations: 0 / 414.1 MB, free: 12.4 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.962e-05/0.3902, allocations: 15.98 kB / 414.1 MB, free: 12.39 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.953e-06/0.3902, allocations: 4.125 kB / 414.1 MB, free: 12.38 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.294e-05/0.3903, allocations: 4 kB / 414.1 MB, free: 12.38 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.021e-05/0.3903, allocations: 4 kB / 414.1 MB, free: 12.38 MB / 334.1 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 9.583e-05/0.3904, allocations: 129.7 kB / 414.2 MB, free: 12.24 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.717e-05/0.3905, allocations: 53.83 kB / 414.3 MB, free: 12.18 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.362e-05/0.3905, allocations: 16.23 kB / 414.3 MB, free: 12.15 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.3905, allocations: 0 / 414.3 MB, free: 12.15 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.3906, allocations: 4 kB / 414.3 MB, free: 12.15 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.3906, allocations: 3.938 kB / 414.3 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001908/0.3908, allocations: 185.5 kB / 414.5 MB, free: 11.91 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.3908, allocations: 0 / 414.5 MB, free: 11.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.59e-05/0.3908, allocations: 8 kB / 414.5 MB, free: 11.91 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.3909, allocations: 3.938 kB / 414.5 MB, free: 11.9 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.083e-05/0.3909, allocations: 11.92 kB / 414.5 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.3909, allocations: 0 / 414.5 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.484e-06/0.3909, allocations: 4 kB / 414.5 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002052/0.3911, allocations: 193.1 kB / 414.7 MB, free: 11.68 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.156e-05/0.3912, allocations: 89 kB / 414.8 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.029e-05/0.3912, allocations: 8 kB / 414.8 MB, free: 11.56 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.678e-05/0.3913, allocations: 0 / 414.8 MB, free: 11.56 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.59e-05/0.3913, allocations: 4 kB / 414.8 MB, free: 11.56 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.811e-06/0.3913, allocations: 3.984 kB / 414.8 MB, free: 11.55 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.98e-05/0.3914, allocations: 113.4 kB / 414.9 MB, free: 11.45 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3914, allocations: 4 kB / 414.9 MB, free: 11.44 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002348/0.3917, allocations: 8 kB / 414.9 MB, free: 11.43 MB / 334.1 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.0001111/0.3918, allocations: 107.2 kB / 415 MB, free: 11.32 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001653/0.3919, allocations: 43.86 kB / 415.1 MB, free: 11.28 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.392, allocations: 4 kB / 415.1 MB, free: 11.27 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.858e-05/0.392, allocations: 7.984 kB / 415.1 MB, free: 11.27 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000342/0.3924, allocations: 40.33 kB / 415.1 MB, free: 11.23 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003732/0.3927, allocations: 185.2 kB / 415.3 MB, free: 11.01 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002611/0.393, allocations: 0.6963 MB / 416 MB, free: 10.29 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.68e-05/0.3931, allocations: 7.781 kB / 416 MB, free: 10.28 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.04e-05/0.3931, allocations: 15.44 kB / 416 MB, free: 10.27 MB / 334.1 MB Notification: Performance of SimCode: time 2.11e-07/0.3931, allocations: 0 / 416 MB, free: 10.27 MB / 334.1 MB Notification: Performance of Templates: time 0.003078/0.3962, allocations: 0.6531 MB / 416.7 MB, free: 9.629 MB / 334.1 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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToSquareWaveHold/AssignClockToSquareWaveHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches