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.001975/0.001975, allocations: 186.5 kB / 17.27 MB, free: 4.504 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.451/1.451, allocations: 222.9 MB / 240.9 MB, free: 11 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.001018/0.001018, allocations: 96.92 kB / 291.2 MB, free: 10.94 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001117/0.001117, allocations: 35.94 kB / 350 MB, free: 68 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.295/0.2961, allocations: 49.45 MB / 399.5 MB, free: 33.36 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.002636/0.2988, allocations: 1.647 MB / 401.1 MB, free: 31.72 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006855/0.2996, allocations: 478.8 kB / 401.6 MB, free: 31.25 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.769e-05/0.2997, allocations: 7.938 kB / 401.6 MB, free: 31.24 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 5.717e-05/0.2997, allocations: 5.047 kB / 401.6 MB, free: 31.23 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001439/0.2999, allocations: 3.938 kB / 401.6 MB, free: 31.23 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002899/0.3002, allocations: 55.83 kB / 401.7 MB, free: 31.18 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001021/0.3003, allocations: 47.8 kB / 401.7 MB, free: 31.13 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001199/0.3004, allocations: 16.17 kB / 401.7 MB, free: 31.11 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.696e-05/0.3005, allocations: 19.92 kB / 401.8 MB, free: 31.09 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.355e-05/0.3006, allocations: 23.86 kB / 401.8 MB, free: 31.07 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.211e-05/0.3006, allocations: 0 / 401.8 MB, free: 31.07 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.542e-05/0.3006, allocations: 7.938 kB / 401.8 MB, free: 31.06 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.892e-05/0.3007, allocations: 19.91 kB / 401.8 MB, free: 31.04 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.843e-05/0.3007, allocations: 27.8 kB / 401.8 MB, free: 31.02 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001102/0.3009, allocations: 63.73 kB / 401.9 MB, free: 30.95 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.3009, allocations: 0 / 401.9 MB, free: 30.95 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.3009, allocations: 0 / 401.9 MB, free: 30.95 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.288e-06/0.3009, allocations: 0 / 401.9 MB, free: 30.95 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.0004976/0.3014, allocations: 380.7 kB / 402.3 MB, free: 30.54 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.332e-05/0.3014, allocations: 8.031 kB / 402.3 MB, free: 30.53 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.086e-05/0.3015, allocations: 12.75 kB / 402.3 MB, free: 30.52 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000176/0.3017, allocations: 192.2 kB / 402.5 MB, free: 30.29 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.105e-05/0.3017, allocations: 8.375 kB / 402.5 MB, free: 30.28 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.636e-05/0.3017, allocations: 4.375 kB / 402.5 MB, free: 30.28 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002963/0.302, allocations: 137.9 kB / 402.6 MB, free: 30.12 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.208e-05/0.302, allocations: 3.938 kB / 402.6 MB, free: 30.12 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.002e-05/0.3021, allocations: 0 / 402.6 MB, free: 30.12 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.961e-06/0.3021, allocations: 4 kB / 402.6 MB, free: 30.11 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.498e-05/0.3022, allocations: 23.98 kB / 402.6 MB, free: 30.09 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003675/0.3025, allocations: 286.5 kB / 402.9 MB, free: 29.75 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000235/0.3028, allocations: 168.8 kB / 403.1 MB, free: 29.54 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.202e-05/0.3029, allocations: 38.7 kB / 403.1 MB, free: 29.5 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.514e-05/0.3029, allocations: 3.984 kB / 403.1 MB, free: 29.49 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.434e-05/0.3029, allocations: 38.56 kB / 403.2 MB, free: 29.45 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 1.202e-06/0.3029, allocations: 0 / 403.2 MB, free: 29.45 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002546/0.3032, allocations: 97.45 kB / 403.3 MB, free: 29.34 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.999e-05/0.3032, allocations: 106.8 kB / 403.4 MB, free: 29.21 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.543e-05/0.3033, allocations: 136.9 kB / 403.5 MB, free: 29.07 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.187e-06/0.3033, allocations: 29.7 kB / 403.5 MB, free: 29.04 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.183e-05/0.3034, allocations: 96.38 kB / 403.6 MB, free: 28.94 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.663e-05/0.3034, allocations: 11.84 kB / 403.6 MB, free: 28.93 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.222e-05/0.3034, allocations: 17.72 kB / 403.7 MB, free: 28.91 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.651e-05/0.3035, allocations: 326.8 kB / 404 MB, free: 28.58 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.509e-05/0.3036, allocations: 12 kB / 404 MB, free: 28.57 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.583e-05/0.3036, allocations: 40.28 kB / 404 MB, free: 28.51 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.943e-05/0.3037, allocations: 68.2 kB / 404.1 MB, free: 28.43 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.3037, allocations: 0 / 404.1 MB, free: 28.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001306/0.3038, allocations: 93.52 kB / 404.2 MB, free: 28.33 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.379e-05/0.3039, allocations: 8 kB / 404.2 MB, free: 28.32 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.628e-06/0.3039, allocations: 0 / 404.2 MB, free: 28.32 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.275e-05/0.3039, allocations: 0 / 404.2 MB, free: 28.32 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.073e-05/0.304, allocations: 15.92 kB / 404.2 MB, free: 28.31 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.953e-06/0.304, allocations: 4 kB / 404.2 MB, free: 28.3 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.311e-05/0.304, allocations: 3.938 kB / 404.2 MB, free: 28.3 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.694e-06/0.304, allocations: 4 kB / 404.2 MB, free: 28.3 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 6.005e-05/0.3041, allocations: 121.8 kB / 404.3 MB, free: 28.17 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.09e-05/0.3042, allocations: 57.66 kB / 404.4 MB, free: 28.11 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.413e-05/0.3042, allocations: 20.17 kB / 404.4 MB, free: 28.08 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.816e-06/0.3042, allocations: 4 kB / 404.4 MB, free: 28.07 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.3042, allocations: 4 kB / 404.4 MB, free: 28.07 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.866e-06/0.3042, allocations: 0 / 404.4 MB, free: 28.07 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001425/0.3044, allocations: 173.6 kB / 404.6 MB, free: 27.85 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.3044, allocations: 7.922 kB / 404.6 MB, free: 27.84 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.807e-05/0.3045, allocations: 8 kB / 404.6 MB, free: 27.84 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.3045, allocations: 4 kB / 404.6 MB, free: 27.83 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.834e-06/0.3045, allocations: 0 / 404.6 MB, free: 27.83 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.3045, allocations: 0 / 404.6 MB, free: 27.83 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.3045, allocations: 4.281 kB / 404.6 MB, free: 27.83 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003399/0.3048, allocations: 0.7528 MB / 405.4 MB, free: 27.01 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.738e-05/0.3049, allocations: 101 kB / 405.5 MB, free: 26.89 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.735e-05/0.3049, allocations: 4 kB / 405.5 MB, free: 26.89 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.77e-05/0.305, allocations: 11.92 kB / 405.5 MB, free: 26.88 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.751e-05/0.305, allocations: 4 kB / 405.5 MB, free: 26.88 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.28e-06/0.305, allocations: 4 kB / 405.5 MB, free: 26.87 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.053e-05/0.3051, allocations: 109.7 kB / 405.6 MB, free: 26.77 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3051, allocations: 0 / 405.6 MB, free: 26.77 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003146/0.3054, allocations: 8 kB / 405.6 MB, free: 26.76 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.0001013/0.3055, allocations: 99.19 kB / 405.7 MB, free: 26.65 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001452/0.3057, allocations: 51.91 kB / 405.8 MB, free: 26.6 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.3057, allocations: 0 / 405.8 MB, free: 26.6 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.867e-05/0.3057, allocations: 12 kB / 405.8 MB, free: 26.59 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004471/0.3062, allocations: 27.95 kB / 405.8 MB, free: 26.56 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000363/0.3066, allocations: 333.9 kB / 406.1 MB, free: 26.18 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001315/0.3067, allocations: 0.6965 MB / 406.8 MB, free: 25.46 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.84e-05/0.3068, allocations: 8 kB / 406.8 MB, free: 25.45 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.624e-05/0.3068, allocations: 7.438 kB / 406.8 MB, free: 25.45 MB / 298.7 MB Notification: Performance of SimCode: time 1.9e-07/0.3068, allocations: 4 kB / 406.8 MB, free: 25.44 MB / 298.7 MB Notification: Performance of Templates: time 0.002573/0.3094, allocations: 0.6032 MB / 407.4 MB, free: 24.85 MB / 298.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@2/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