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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001794/0.001794, allocations: 112.2 kB / 17.74 MB, free: 5.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002223/0.002223, allocations: 187.1 kB / 18.67 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.444/1.444, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001228, allocations: 47.94 kB / 352 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2998/0.301, allocations: 49.44 MB / 401.4 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.002745/0.3038, allocations: 1.593 MB / 403 MB, free: 7.285 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008254/0.3047, allocations: 494.7 kB / 403.5 MB, free: 6.797 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.021e-05/0.3047, allocations: 7.938 kB / 403.5 MB, free: 6.789 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.524e-05/0.3048, allocations: 3.938 kB / 403.5 MB, free: 6.785 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000125/0.3049, allocations: 3.938 kB / 403.5 MB, free: 6.781 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002721/0.3052, allocations: 59.81 kB / 403.6 MB, free: 6.723 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001056/0.3053, allocations: 43.8 kB / 403.6 MB, free: 6.68 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.994e-05/0.3054, allocations: 20.16 kB / 403.6 MB, free: 6.66 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.907e-05/0.3055, allocations: 23.92 kB / 403.6 MB, free: 6.637 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.032e-05/0.3056, allocations: 23.86 kB / 403.7 MB, free: 6.613 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.96e-05/0.3056, allocations: 4 kB / 403.7 MB, free: 6.609 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.298e-05/0.3056, allocations: 4 kB / 403.7 MB, free: 6.605 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.37e-05/0.3057, allocations: 19.91 kB / 403.7 MB, free: 6.586 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.874e-05/0.3057, allocations: 31.75 kB / 403.7 MB, free: 6.555 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000121/0.3059, allocations: 63.73 kB / 403.8 MB, free: 6.492 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.3059, allocations: 0 / 403.8 MB, free: 6.492 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3059, allocations: 0 / 403.8 MB, free: 6.492 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.129e-06/0.3059, allocations: 4 kB / 403.8 MB, free: 6.488 MB / 318.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.0004988/0.3064, allocations: 372.3 kB / 404.2 MB, free: 6.082 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.552e-05/0.3064, allocations: 12.03 kB / 404.2 MB, free: 6.07 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.431e-05/0.3065, allocations: 8.844 kB / 404.2 MB, free: 6.062 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000219/0.3067, allocations: 203.2 kB / 404.4 MB, free: 5.828 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.32e-05/0.3067, allocations: 8.25 kB / 404.4 MB, free: 5.82 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.491e-05/0.3067, allocations: 12.31 kB / 404.4 MB, free: 5.809 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002727/0.307, allocations: 134 kB / 404.5 MB, free: 5.656 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/0.307, allocations: 0 / 404.5 MB, free: 5.656 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.066e-05/0.3071, allocations: 4 kB / 404.5 MB, free: 5.652 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.3071, allocations: 0 / 404.5 MB, free: 5.652 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.541e-05/0.3072, allocations: 27.92 kB / 404.6 MB, free: 5.625 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003328/0.3075, allocations: 270.6 kB / 404.8 MB, free: 5.305 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002242/0.3077, allocations: 160.8 kB / 405 MB, free: 5.102 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.423e-05/0.3078, allocations: 42.69 kB / 405 MB, free: 5.051 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.304e-05/0.3079, allocations: 7.984 kB / 405 MB, free: 5.043 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.995e-05/0.3079, allocations: 38.5 kB / 405.1 MB, free: 4.996 MB / 318.1 MB Notification: Performance of pre-optimization done (n=6): time 1.162e-06/0.3079, allocations: 0 / 405.1 MB, free: 4.996 MB / 318.1 MB Notification: Performance of matching and sorting (n=6): time 0.000272/0.3082, allocations: 93.69 kB / 405.2 MB, free: 4.898 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.663e-05/0.3082, allocations: 118.7 kB / 405.3 MB, free: 4.758 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001272/0.3084, allocations: 142.3 kB / 405.4 MB, free: 4.605 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.573e-05/0.3084, allocations: 33.7 kB / 405.4 MB, free: 4.566 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.136e-05/0.3084, allocations: 84.14 kB / 405.5 MB, free: 4.48 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.24e-05/0.3085, allocations: 19.83 kB / 405.5 MB, free: 4.461 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.232e-05/0.3085, allocations: 17.72 kB / 405.6 MB, free: 4.438 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001024/0.3086, allocations: 318.8 kB / 405.9 MB, free: 4.117 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.772e-05/0.3087, allocations: 11.98 kB / 405.9 MB, free: 4.105 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.349e-05/0.3087, allocations: 56.22 kB / 405.9 MB, free: 4.035 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001131/0.3089, allocations: 60.22 kB / 406 MB, free: 3.961 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.3089, allocations: 0 / 406 MB, free: 3.961 MB / 318.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001589/0.309, allocations: 89.5 kB / 406.1 MB, free: 3.867 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.378e-05/0.3091, allocations: 4 kB / 406.1 MB, free: 3.863 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.3091, allocations: 7.938 kB / 406.1 MB, free: 3.855 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.337e-05/0.3091, allocations: 0 / 406.1 MB, free: 3.855 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.873e-05/0.3092, allocations: 11.94 kB / 406.1 MB, free: 3.844 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.548e-06/0.3092, allocations: 4.156 kB / 406.1 MB, free: 3.84 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.12e-05/0.3092, allocations: 7.984 kB / 406.1 MB, free: 3.832 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.003e-05/0.3093, allocations: 4 kB / 406.1 MB, free: 3.828 MB / 318.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.66e-05/0.3094, allocations: 129.8 kB / 406.3 MB, free: 3.691 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.954e-05/0.3094, allocations: 53.53 kB / 406.3 MB, free: 3.633 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.333e-05/0.3095, allocations: 12.25 kB / 406.3 MB, free: 3.613 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.3095, allocations: 4 kB / 406.3 MB, free: 3.609 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.3095, allocations: 0 / 406.3 MB, free: 3.609 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.3095, allocations: 7.922 kB / 406.3 MB, free: 3.602 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001767/0.3097, allocations: 177.6 kB / 406.5 MB, free: 3.379 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.3097, allocations: 0 / 406.5 MB, free: 3.379 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.601e-05/0.3098, allocations: 15.98 kB / 406.5 MB, free: 3.363 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.033e-06/0.3098, allocations: 0 / 406.5 MB, free: 3.363 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.426e-06/0.3098, allocations: 8 kB / 406.5 MB, free: 3.355 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.736e-06/0.3098, allocations: 3.984 kB / 406.5 MB, free: 3.352 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.3098, allocations: 0 / 406.5 MB, free: 3.352 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001902/0.31, allocations: 189 kB / 406.7 MB, free: 3.145 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.463e-05/0.3101, allocations: 93 kB / 406.8 MB, free: 3.035 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.664e-05/0.3101, allocations: 4 kB / 406.8 MB, free: 3.031 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.199e-05/0.3102, allocations: 11.98 kB / 406.8 MB, free: 3.02 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.968e-05/0.3102, allocations: 4 kB / 406.8 MB, free: 3.016 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.958e-06/0.3102, allocations: 0 / 406.8 MB, free: 3.016 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.753e-05/0.3103, allocations: 109.8 kB / 406.9 MB, free: 2.91 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3103, allocations: 0 / 406.9 MB, free: 2.91 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002313/0.3105, allocations: 8 kB / 406.9 MB, free: 2.902 MB / 318.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.0001234/0.3106, allocations: 111.1 kB / 407.1 MB, free: 2.785 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001573/0.3108, allocations: 51.94 kB / 407.1 MB, free: 2.734 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.3108, allocations: 4 kB / 407.1 MB, free: 2.73 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 3.783e-05/0.3109, allocations: 4 kB / 407.1 MB, free: 2.727 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003278/0.3112, allocations: 37.92 kB / 407.1 MB, free: 2.691 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003749/0.3116, allocations: 219.1 kB / 407.4 MB, free: 2.438 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002645/0.3119, allocations: 0.6922 MB / 408.1 MB, free: 1.719 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.242e-05/0.3119, allocations: 11.44 kB / 408.1 MB, free: 1.707 MB / 318.1 MB Notification: Performance of SimCode: time 1.473e-06/0.3119, allocations: 0 / 408.1 MB, free: 1.707 MB / 318.1 MB Notification: Performance of Templates: time 0.002216/0.3141, allocations: 0.8762 MB / 408.9 MB, free: 0.8398 MB / 318.1 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches