Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001132/0.001132, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001332/0.001332, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.35/1.35, allocations: 227.4 MB / 246.9 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001208/0.001208, allocations: 63.89 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2799/0.2811, allocations: 50.55 MB / 408.8 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock): time 0.003657/0.2848, allocations: 0.8351 MB / 409.6 MB, free: 0.707 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003824/0.2853, allocations: 111.7 kB / 409.7 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001064/0.2854, allocations: 3.938 kB / 409.7 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001338/0.2856, allocations: 7.922 kB / 409.7 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001499/0.2857, allocations: 15.92 kB / 409.7 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003167/0.286, allocations: 39.91 kB / 409.8 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001222/0.2862, allocations: 35.92 kB / 409.8 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001365/0.2863, allocations: 19.97 kB / 409.8 MB, free: 488 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.192e-05/0.2864, allocations: 23.86 kB / 409.8 MB, free: 464 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.571e-05/0.2865, allocations: 19.92 kB / 409.9 MB, free: 444 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.38e-05/0.2865, allocations: 8 kB / 409.9 MB, free: 436 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.317e-05/0.2865, allocations: 4 kB / 409.9 MB, free: 432 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.517e-05/0.2866, allocations: 15.92 kB / 409.9 MB, free: 416 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.032e-05/0.2866, allocations: 31.75 kB / 409.9 MB, free: 384 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001498/0.2868, allocations: 58.69 kB / 410 MB, free: 328 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.2868, allocations: 0 / 410 MB, free: 328 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.2868, allocations: 0 / 410 MB, free: 328 kB / 318.1 MB Notification: Performance of Transformations before backend: time 1.013e-05/0.2868, allocations: 0 / 410 MB, free: 328 kB / 318.1 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.0005778/0.2874, allocations: 379.1 kB / 410.4 MB, free: 15.9 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.381e-05/0.2875, allocations: 8.031 kB / 410.4 MB, free: 15.89 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.939e-05/0.2875, allocations: 42.73 kB / 410.4 MB, free: 15.84 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.884e-05/0.2876, allocations: 16.84 kB / 410.4 MB, free: 15.82 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000237/0.2878, allocations: 208.1 kB / 410.6 MB, free: 15.58 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.076e-05/0.2878, allocations: 384 / 410.6 MB, free: 15.58 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.617e-05/0.2879, allocations: 8.359 kB / 410.6 MB, free: 15.57 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003858/0.2882, allocations: 143.8 kB / 410.8 MB, free: 15.42 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.513e-05/0.2883, allocations: 3.938 kB / 410.8 MB, free: 15.42 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.148e-05/0.2883, allocations: 0 / 410.8 MB, free: 15.42 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.601e-06/0.2883, allocations: 0 / 410.8 MB, free: 15.42 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.855e-05/0.2884, allocations: 27.92 kB / 410.8 MB, free: 15.39 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001972/0.2886, allocations: 173.6 kB / 411 MB, free: 15.17 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002044/0.2888, allocations: 66.77 kB / 411 MB, free: 15.1 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.665e-05/0.2889, allocations: 48.83 kB / 411.1 MB, free: 15.05 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.749e-05/0.289, allocations: 4 kB / 411.1 MB, free: 15.04 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.17e-05/0.289, allocations: 34.5 kB / 411.1 MB, free: 15 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 1.463e-06/0.289, allocations: 0 / 411.1 MB, free: 15 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.000299/0.2893, allocations: 101.6 kB / 411.2 MB, free: 14.89 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.079e-05/0.2894, allocations: 55.72 kB / 411.3 MB, free: 14.83 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001844/0.2896, allocations: 148.3 kB / 411.4 MB, free: 14.68 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.896e-05/0.2896, allocations: 29.7 kB / 411.5 MB, free: 14.64 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.132e-05/0.2897, allocations: 88.14 kB / 411.5 MB, free: 14.55 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.81e-05/0.2897, allocations: 0 / 411.5 MB, free: 14.55 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.835e-05/0.2898, allocations: 29.7 kB / 411.6 MB, free: 14.52 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002066/0.29, allocations: 314.8 kB / 411.9 MB, free: 14.2 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.043e-05/0.29, allocations: 11.98 kB / 411.9 MB, free: 14.19 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.663e-05/0.2901, allocations: 62.97 kB / 411.9 MB, free: 14.1 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001276/0.2903, allocations: 78.73 kB / 412 MB, free: 14 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.2903, allocations: 0 / 412 MB, free: 14 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000196/0.2905, allocations: 97.44 kB / 412.1 MB, free: 13.89 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.919e-05/0.2905, allocations: 7.938 kB / 412.1 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/0.2905, allocations: 4.25 kB / 412.1 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.924e-05/0.2906, allocations: 4 kB / 412.1 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001106/0.2907, allocations: 19.94 kB / 412.2 MB, free: 13.86 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.129e-05/0.2907, allocations: 3.984 kB / 412.2 MB, free: 13.86 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.965e-05/0.2908, allocations: 7.938 kB / 412.2 MB, free: 13.85 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.052e-05/0.2908, allocations: 4 kB / 412.2 MB, free: 13.84 MB / 334.1 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,$CLKPRE.unitDelay1.u,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 0.0001966/0.291, allocations: 129.8 kB / 412.3 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001437/0.2912, allocations: 93.45 kB / 412.4 MB, free: 13.61 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.327e-05/0.2912, allocations: 16.89 kB / 412.4 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.2912, allocations: 8 kB / 412.4 MB, free: 13.58 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.2912, allocations: 3.938 kB / 412.4 MB, free: 13.58 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.2913, allocations: 0 / 412.4 MB, free: 13.58 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001665/0.2914, allocations: 173.6 kB / 412.6 MB, free: 13.36 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.2914, allocations: 0 / 412.6 MB, free: 13.36 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.96e-05/0.2915, allocations: 12 kB / 412.6 MB, free: 13.35 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.099e-06/0.2916, allocations: 3.938 kB / 412.6 MB, free: 13.34 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.315e-06/0.2916, allocations: 4 kB / 412.6 MB, free: 13.34 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.385e-06/0.2916, allocations: 0 / 412.6 MB, free: 13.34 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.2916, allocations: 0 / 412.6 MB, free: 13.34 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000286/0.2919, allocations: 117 kB / 412.7 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.357e-05/0.292, allocations: 104.9 kB / 412.8 MB, free: 13.09 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.078e-05/0.292, allocations: 0 / 412.8 MB, free: 13.09 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.086e-05/0.2921, allocations: 0 / 412.8 MB, free: 13.09 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.448e-06/0.2921, allocations: 0 / 412.8 MB, free: 13.09 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.267e-06/0.2921, allocations: 4 kB / 412.8 MB, free: 13.08 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.538e-05/0.2922, allocations: 107.2 kB / 412.9 MB, free: 12.98 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.2922, allocations: 0 / 412.9 MB, free: 12.98 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003341/0.2925, allocations: 12 kB / 412.9 MB, free: 12.96 MB / 334.1 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 0.000624/0.2932, allocations: 0.6787 MB / 413.6 MB, free: 12.26 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001678/0.2934, allocations: 44.36 kB / 413.7 MB, free: 12.21 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/0.2934, allocations: 8.062 kB / 413.7 MB, free: 12.21 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 1.263e-06/0.2934, allocations: 0 / 413.7 MB, free: 12.21 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004462/0.2938, allocations: 62.67 kB / 413.7 MB, free: 12.15 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001671/0.2955, allocations: 1.366 MB / 415.1 MB, free: 10.66 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003608/0.2959, allocations: 0.7041 MB / 415.8 MB, free: 9.93 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.966e-05/0.296, allocations: 0.6719 kB / 415.8 MB, free: 9.926 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.048e-05/0.296, allocations: 23.52 kB / 415.8 MB, free: 9.902 MB / 334.1 MB Notification: Performance of SimCode: time 8.91e-07/0.296, allocations: 3.938 kB / 415.8 MB, free: 9.898 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02564/0.3217, allocations: 1.81 MB / 417.6 MB, free: 8.203 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.47/7.792, allocations: 10.89 kB / 417.7 MB, free: 8.195 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock_res.csv --start-time 0 --stop-time 0.09 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3.6e-05 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/AssignClock/AssignClock.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,assignClock1.y Variables in the result:time,previous(unitDelay1.u),assignClock1.u,assignClock1.y,const.y,sum.u[1]