Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.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: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.BUF3S,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_BUF3S",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.BUF3S,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_BUF3S",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001642/0.001642, allocations: 110.2 kB / 17.06 MB, free: 5.785 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.001903/0.001903, allocations: 193.4 kB / 18.01 MB, free: 4.941 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.435/1.435, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001448/0.001448, allocations: 55.91 kB / 350.8 MB, free: 3.734 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.262/0.2635, allocations: 49.43 MB / 400.2 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.BUF3S): time 0.002854/0.2664, allocations: 1.516 MB / 401.7 MB, free: 7.207 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001866/0.2682, allocations: 0.8531 MB / 402.6 MB, free: 6.422 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.049e-05/0.2683, allocations: 3.938 kB / 402.6 MB, free: 6.418 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 8.846e-05/0.2684, allocations: 3.938 kB / 402.6 MB, free: 6.414 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.477e-05/0.2685, allocations: 27.78 kB / 402.6 MB, free: 6.387 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002621/0.2688, allocations: 47.89 kB / 402.7 MB, free: 6.34 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002319/0.269, allocations: 143.8 kB / 402.8 MB, free: 6.199 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001104/0.2691, allocations: 27.97 kB / 402.8 MB, free: 6.172 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006018/0.2697, allocations: 375.3 kB / 403.2 MB, free: 5.805 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001437/0.2699, allocations: 67.7 kB / 403.3 MB, free: 5.738 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.758e-05/0.2699, allocations: 12 kB / 403.3 MB, free: 5.727 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.65e-05/0.27, allocations: 8 kB / 403.3 MB, free: 5.719 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.813e-05/0.2701, allocations: 67.69 kB / 403.4 MB, free: 5.652 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002418/0.2703, allocations: 119.2 kB / 403.5 MB, free: 5.535 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000446/0.2708, allocations: 357.5 kB / 403.8 MB, free: 5.188 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.2708, allocations: 4 kB / 403.8 MB, free: 5.184 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2708, allocations: 0 / 403.8 MB, free: 5.184 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.021e-06/0.2708, allocations: 0 / 403.8 MB, free: 5.184 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0008958/0.2717, allocations: 0.7344 MB / 404.6 MB, free: 4.375 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.246e-05/0.2718, allocations: 11.97 kB / 404.6 MB, free: 4.363 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.495e-05/0.2718, allocations: 42.73 kB / 404.6 MB, free: 4.312 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.024e-05/0.2719, allocations: 40.7 kB / 404.7 MB, free: 4.273 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003218/0.2722, allocations: 274.7 kB / 404.9 MB, free: 3.965 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.946e-05/0.2723, allocations: 12.38 kB / 404.9 MB, free: 3.953 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.623e-05/0.2723, allocations: 4.375 kB / 404.9 MB, free: 3.949 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003162/0.2726, allocations: 125.7 kB / 405.1 MB, free: 3.82 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.799e-06/0.2727, allocations: 0 / 405.1 MB, free: 3.82 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.432e-05/0.2727, allocations: 8 kB / 405.1 MB, free: 3.812 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.812e-06/0.2727, allocations: 0 / 405.1 MB, free: 3.812 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001469/0.2728, allocations: 59.89 kB / 405.1 MB, free: 3.754 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006792/0.2735, allocations: 464.5 kB / 405.6 MB, free: 3.25 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001902/0.2737, allocations: 94.48 kB / 405.7 MB, free: 3.148 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000158/0.2739, allocations: 88.88 kB / 405.8 MB, free: 3.059 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.213e-06/0.2739, allocations: 0 / 405.8 MB, free: 3.059 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003848/0.2743, allocations: 196 kB / 406 MB, free: 2.844 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 1.432e-06/0.2743, allocations: 0 / 406 MB, free: 2.844 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.001037/0.2754, allocations: 468.2 kB / 406.4 MB, free: 2.355 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001218/0.2755, allocations: 174.1 kB / 406.6 MB, free: 2.148 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007503/0.2763, allocations: 0.513 MB / 407.1 MB, free: 1.621 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.153e-05/0.2763, allocations: 29.7 kB / 407.1 MB, free: 1.586 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.198e-05/0.2764, allocations: 101.1 kB / 407.2 MB, free: 1.484 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.378e-05/0.2764, allocations: 31.8 kB / 407.3 MB, free: 1.453 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002124/0.2766, allocations: 77.56 kB / 407.3 MB, free: 1.371 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002337/0.2769, allocations: 326.8 kB / 407.7 MB, free: 1.043 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001309/0.277, allocations: 59.97 kB / 407.7 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001498/0.2772, allocations: 69.69 kB / 407.8 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003636/0.2776, allocations: 350.7 kB / 408.1 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.2776, allocations: 0 / 408.1 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005365/0.2781, allocations: 380.3 kB / 408.5 MB, free: 116 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001059/0.2782, allocations: 118.8 kB / 408.6 MB, free: 15.97 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.2782, allocations: 4 kB / 408.6 MB, free: 15.97 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.314e-05/0.2783, allocations: 4.031 kB / 408.6 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.731e-05/0.2783, allocations: 0 / 408.6 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.003e-06/0.2783, allocations: 3.984 kB / 408.6 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001182/0.2784, allocations: 8 kB / 408.6 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.605e-05/0.2785, allocations: 44 kB / 408.7 MB, free: 15.91 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.t_next,bUF3S.inertialDelaySensitive.lh,bUF3S.inertialDelaySensitive.y_old,bUF3S.inertialDelaySensitive.y_auxiliary,bUF3S.inertialDelaySensitive.delayTime,bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.x,$PRE.bUF3S.inertialDelaySensitive.x,bUF3S.yy,bUF3S.nextstate,x_table.y,e_table.y,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 4 * 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.0003623/0.2788, allocations: 370.2 kB / 409 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.557e-05/0.2789, allocations: 39.77 kB / 409.1 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001019/0.279, allocations: 63.14 kB / 409.1 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.279, allocations: 8 kB / 409.1 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.279, allocations: 128 / 409.1 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.975e-06/0.279, allocations: 0 / 409.1 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001155/0.2802, allocations: 0.8133 MB / 410 MB, free: 14.51 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.528e-06/0.2802, allocations: 4 kB / 410 MB, free: 14.51 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.328e-06/0.2802, allocations: 0 / 410 MB, free: 14.51 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.2802, allocations: 0 / 410 MB, free: 14.51 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.838e-05/0.2803, allocations: 11.98 kB / 410 MB, free: 14.5 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.2803, allocations: 0 / 410 MB, free: 14.5 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.2803, allocations: 3.938 kB / 410 MB, free: 14.49 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000722/0.281, allocations: 0.5293 MB / 410.5 MB, free: 13.92 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003276/0.2814, allocations: 252.6 kB / 410.8 MB, free: 13.65 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.62e-05/0.2814, allocations: 8 kB / 410.8 MB, free: 13.64 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001264/0.2815, allocations: 12 kB / 410.8 MB, free: 13.63 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.737e-05/0.2817, allocations: 23.91 kB / 410.8 MB, free: 13.61 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.494e-05/0.2817, allocations: 44 kB / 410.8 MB, free: 13.57 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000491/0.2822, allocations: 390.9 kB / 411.2 MB, free: 13.19 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2822, allocations: 4 kB / 411.2 MB, free: 13.18 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002733/0.2825, allocations: 40 kB / 411.3 MB, free: 13.14 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: 13 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,bUF3S.nextstate,bUF3S.yy,bUF3S.inertialDelaySensitive.x,bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.delayTime,bUF3S.inertialDelaySensitive.y_auxiliary,bUF3S.inertialDelaySensitive.y_old,bUF3S.inertialDelaySensitive.lh,bUF3S.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,bUF3S.yy,bUF3S.nextstate,bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.y_auxiliary,bUF3S.inertialDelaySensitive.t_next,bUF3S.inertialDelaySensitive.delayTime,bUF3S.inertialDelaySensitive.lh,bUF3S.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,bUF3S.inertialDelaySensitive.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 4 * 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.001053/0.2836, allocations: 1.076 MB / 412.3 MB, free: 12.02 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005436/0.2841, allocations: 441.5 kB / 412.8 MB, free: 11.54 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.2841, allocations: 3.938 kB / 412.8 MB, free: 11.54 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004917/0.2846, allocations: 381.6 kB / 413.1 MB, free: 11.11 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007055/0.2853, allocations: 125 kB / 413.3 MB, free: 11.01 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003774/0.2891, allocations: 2.754 MB / 416 MB, free: 8.133 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007139/0.2899, allocations: 0.7983 MB / 416.8 MB, free: 7.309 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.351e-05/0.2899, allocations: 12.64 kB / 416.8 MB, free: 7.297 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.049e-05/0.29, allocations: 35.42 kB / 416.9 MB, free: 7.262 MB / 334.1 MB Notification: Performance of SimCode: time 8.02e-07/0.29, allocations: 0 / 416.9 MB, free: 7.262 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0285/0.3185, allocations: 5.771 MB / 422.6 MB, free: 1.598 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.955/8.273, allocations: 8 kB / 422.6 MB, free: 1.594 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S_res.csv --start-time 0 --stop-time 12 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0048 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_BUF3S.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/BUF3S/BUF3S.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches