Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000869/0.0008689, allocations: 182.5 kB / 16.71 MB, free: 4.969 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.295/1.295, allocations: 225.7 MB / 243.2 MB, free: 8.473 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007338/0.0007339, allocations: 98.61 kB / 294.4 MB, free: 9.512 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002537/0.0002538, allocations: 11.94 kB / 354.2 MB, free: 13.64 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2905/0.2908, allocations: 50.41 MB / 404.6 MB, free: 31.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock): time 0.001317/0.2922, allocations: 0.5619 MB / 405.1 MB, free: 30.78 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003161/0.2925, allocations: 111.7 kB / 405.2 MB, free: 30.67 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.629e-05/0.2926, allocations: 5.062 kB / 405.2 MB, free: 30.67 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001018/0.2927, allocations: 3.938 kB / 405.3 MB, free: 30.66 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001387/0.2929, allocations: 3.984 kB / 405.3 MB, free: 30.66 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002045/0.2931, allocations: 40.44 kB / 405.3 MB, free: 30.62 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.624e-05/0.2932, allocations: 31.92 kB / 405.3 MB, free: 30.59 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001287/0.2933, allocations: 29.97 kB / 405.4 MB, free: 30.56 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.187e-05/0.2933, allocations: 12.69 kB / 405.4 MB, free: 30.55 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.973e-05/0.2934, allocations: 15.92 kB / 405.4 MB, free: 30.54 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.57e-05/0.2934, allocations: 5.531 kB / 405.4 MB, free: 30.53 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.358e-05/0.2935, allocations: 0 / 405.4 MB, free: 30.53 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.711e-05/0.2935, allocations: 15.86 kB / 405.4 MB, free: 30.52 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.62e-05/0.2936, allocations: 53.52 kB / 405.5 MB, free: 30.46 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.909e-05/0.2937, allocations: 52.3 kB / 405.5 MB, free: 30.41 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.2937, allocations: 6.734 kB / 405.5 MB, free: 30.4 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.2937, allocations: 0 / 405.5 MB, free: 30.4 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.607e-06/0.2937, allocations: 0 / 405.5 MB, free: 30.4 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.000403/0.2941, allocations: 357.3 kB / 405.9 MB, free: 30 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.46e-05/0.2941, allocations: 15.97 kB / 405.9 MB, free: 29.99 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.569e-05/0.2942, allocations: 8.844 kB / 405.9 MB, free: 29.98 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001744/0.2944, allocations: 193 kB / 406.1 MB, free: 29.75 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.137e-05/0.2944, allocations: 384 / 406.1 MB, free: 29.75 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.28e-05/0.2944, allocations: 9.312 kB / 406.1 MB, free: 29.75 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000262/0.2947, allocations: 143.7 kB / 406.2 MB, free: 29.6 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.265e-06/0.2947, allocations: 4.188 kB / 406.2 MB, free: 29.59 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.148e-05/0.2947, allocations: 7.938 kB / 406.2 MB, free: 29.59 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.691e-06/0.2947, allocations: 0 / 406.2 MB, free: 29.59 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.666e-05/0.2948, allocations: 23.97 kB / 406.3 MB, free: 29.56 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001253/0.2949, allocations: 165.7 kB / 406.4 MB, free: 29.35 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001283/0.295, allocations: 85.17 kB / 406.5 MB, free: 29.26 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.915e-05/0.2951, allocations: 48.86 kB / 406.6 MB, free: 29.21 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.685e-06/0.2951, allocations: 3.938 kB / 406.6 MB, free: 29.21 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.839e-05/0.2952, allocations: 38.56 kB / 406.6 MB, free: 29.16 MB / 298.7 MB Notification: Performance of pre-optimization done (n=8): time 1.072e-06/0.2952, allocations: 0 / 406.6 MB, free: 29.16 MB / 298.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001852/0.2953, allocations: 101.5 kB / 406.7 MB, free: 29.05 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.242e-05/0.2954, allocations: 59.41 kB / 406.8 MB, free: 28.98 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.453e-05/0.2955, allocations: 133.8 kB / 406.9 MB, free: 28.84 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.889e-06/0.2955, allocations: 29.7 kB / 406.9 MB, free: 28.81 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.056e-05/0.2956, allocations: 88.12 kB / 407 MB, free: 28.72 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.424e-05/0.2956, allocations: 7.906 kB / 407 MB, free: 28.71 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.347e-06/0.2956, allocations: 0 / 407 MB, free: 28.71 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.464e-05/0.2956, allocations: 326.8 kB / 407.3 MB, free: 28.38 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.723e-05/0.2957, allocations: 8 kB / 407.3 MB, free: 28.38 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.05e-05/0.2957, allocations: 58.8 kB / 407.4 MB, free: 28.29 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.501e-05/0.2958, allocations: 70.81 kB / 407.5 MB, free: 28.2 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.2958, allocations: 0 / 407.5 MB, free: 28.2 MB / 298.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001091/0.2959, allocations: 101.5 kB / 407.6 MB, free: 28.09 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.125e-05/0.2959, allocations: 8.562 kB / 407.6 MB, free: 28.09 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.65e-06/0.2959, allocations: 4 kB / 407.6 MB, free: 28.08 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.374e-05/0.2959, allocations: 0 / 407.6 MB, free: 28.08 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.948e-05/0.296, allocations: 12 kB / 407.6 MB, free: 28.07 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.773e-06/0.296, allocations: 11.92 kB / 407.6 MB, free: 28.06 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.11e-05/0.2961, allocations: 7.906 kB / 407.6 MB, free: 28.05 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.905e-06/0.2961, allocations: 4.25 kB / 407.6 MB, free: 28.05 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 9 (sum.y,sum.u[2],sum.u[1],const.y,unitDelay1.y,unitDelay1.u,$CLKPRE.unitDelay1.u,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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.849e-05/0.2962, allocations: 133.7 kB / 407.7 MB, free: 27.91 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.139e-05/0.2962, allocations: 89.59 kB / 407.8 MB, free: 27.81 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.34e-05/0.2963, allocations: 16.72 kB / 407.8 MB, free: 27.79 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.242e-06/0.2963, allocations: 0 / 407.8 MB, free: 27.79 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.427e-06/0.2963, allocations: 0 / 407.8 MB, free: 27.79 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.2963, allocations: 7.984 kB / 407.8 MB, free: 27.79 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.32e-05/0.2964, allocations: 173.6 kB / 408 MB, free: 27.57 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.11e-07/0.2964, allocations: 0 / 408 MB, free: 27.57 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.691e-05/0.2964, allocations: 16 kB / 408 MB, free: 27.55 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.2964, allocations: 3.938 kB / 408 MB, free: 27.55 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.684e-06/0.2965, allocations: 3.984 kB / 408 MB, free: 27.54 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.2965, allocations: 0 / 408 MB, free: 27.54 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.2965, allocations: 4 kB / 408 MB, free: 27.54 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001019/0.2966, allocations: 101.2 kB / 408.1 MB, free: 27.42 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.585e-05/0.2966, allocations: 93 kB / 408.2 MB, free: 27.31 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.81e-05/0.2967, allocations: 15.8 kB / 408.3 MB, free: 27.3 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.199e-05/0.2967, allocations: 8 kB / 408.3 MB, free: 27.29 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.895e-06/0.2967, allocations: 0 / 408.3 MB, free: 27.29 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.209e-06/0.2967, allocations: 4 kB / 408.3 MB, free: 27.29 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.927e-05/0.2968, allocations: 107.2 kB / 408.4 MB, free: 27.18 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2968, allocations: 0 / 408.4 MB, free: 27.18 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001817/0.297, allocations: 8 kB / 408.4 MB, free: 27.17 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 (assignClock1.u,assignClock1.y,unitDelay1.u,unitDelay1.y,const.y,sum.u[1],sum.u[2],sum.y) * Number of discrete states: 0 () * Number of clocked states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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 8.592e-05/0.2971, allocations: 111.2 kB / 408.5 MB, free: 27.05 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.623e-05/0.2972, allocations: 47.98 kB / 408.5 MB, free: 27.01 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.2972, allocations: 0 / 408.5 MB, free: 27.01 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.61e-07/0.2972, allocations: 0 / 408.5 MB, free: 27.01 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002702/0.2974, allocations: 48.98 kB / 408.6 MB, free: 26.96 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002589/0.2977, allocations: 199.5 kB / 408.8 MB, free: 26.74 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001444/0.2979, allocations: 0.7043 MB / 409.5 MB, free: 26.01 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.293e-05/0.2979, allocations: 4.672 kB / 409.5 MB, free: 26 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.042e-05/0.2979, allocations: 15.44 kB / 409.5 MB, free: 25.98 MB / 298.7 MB Notification: Performance of SimCode: time 3e-07/0.2979, allocations: 0 / 409.5 MB, free: 25.98 MB / 298.7 MB Notification: Performance of Templates: time 0.002373/0.3003, allocations: 0.6433 MB / 410.1 MB, free: 25.34 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/AssignClock/AssignClock.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches