Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.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.Electrical.Digital.Examples.BUF3S,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_BUF3S",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.BUF3S,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_BUF3S",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001715/0.001715, allocations: 118.2 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001997/0.001997, allocations: 205.2 kB / 18.74 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.426/1.426, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001963/0.001963, allocations: 63.89 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2724/0.2744, allocations: 50.54 MB / 408.8 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.BUF3S): time 0.002665/0.2771, allocations: 1.528 MB / 410.3 MB, free: 12 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001878/0.279, allocations: 0.8887 MB / 411.2 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.849e-05/0.279, allocations: 4 kB / 411.2 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 8.348e-05/0.2791, allocations: 3.938 kB / 411.2 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.923e-05/0.2792, allocations: 23.78 kB / 411.2 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002407/0.2795, allocations: 43.95 kB / 411.3 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002229/0.2797, allocations: 147.7 kB / 411.4 MB, free: 14.9 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.787e-05/0.2798, allocations: 19.98 kB / 411.4 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000436/0.2802, allocations: 383.3 kB / 411.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001302/0.2804, allocations: 59.77 kB / 411.8 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.534e-05/0.2804, allocations: 12 kB / 411.9 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.505e-05/0.2804, allocations: 8 kB / 411.9 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.965e-05/0.2805, allocations: 71.64 kB / 411.9 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001158/0.2807, allocations: 111.2 kB / 412 MB, free: 14.24 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003909/0.2811, allocations: 353.5 kB / 412.4 MB, free: 13.9 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.426e-06/0.2811, allocations: 11.98 kB / 412.4 MB, free: 13.89 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.2811, allocations: 0 / 412.4 MB, free: 13.89 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.939e-06/0.2811, allocations: 0 / 412.4 MB, free: 13.89 MB / 334.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.0008076/0.2819, allocations: 0.7343 MB / 413.1 MB, free: 13.08 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.106e-05/0.282, allocations: 8.031 kB / 413.1 MB, free: 13.07 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.786e-05/0.282, allocations: 38.75 kB / 413.2 MB, free: 13.02 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.62e-05/0.2821, allocations: 44.7 kB / 413.2 MB, free: 12.98 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000302/0.2824, allocations: 274.7 kB / 413.5 MB, free: 12.67 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.294e-05/0.2824, allocations: 8.375 kB / 413.5 MB, free: 12.66 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.958e-05/0.2825, allocations: 8.375 kB / 413.5 MB, free: 12.66 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003365/0.2828, allocations: 133.4 kB / 413.6 MB, free: 12.52 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.825e-06/0.2828, allocations: 0 / 413.6 MB, free: 12.52 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.339e-05/0.2829, allocations: 7.984 kB / 413.6 MB, free: 12.52 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.641e-06/0.2829, allocations: 3.984 kB / 413.7 MB, free: 12.51 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001365/0.283, allocations: 59.91 kB / 413.7 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006808/0.2837, allocations: 456.5 kB / 414.2 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001884/0.2839, allocations: 102.5 kB / 414.3 MB, free: 11.85 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000148/0.2841, allocations: 84.83 kB / 414.3 MB, free: 11.76 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.448e-06/0.2841, allocations: 0 / 414.3 MB, free: 11.76 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003325/0.2844, allocations: 194.7 kB / 414.5 MB, free: 11.55 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.493e-06/0.2844, allocations: 0 / 414.5 MB, free: 11.55 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008135/0.2852, allocations: 468.2 kB / 415 MB, free: 11.06 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001196/0.2854, allocations: 174.2 kB / 415.2 MB, free: 10.85 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006514/0.286, allocations: 0.5168 MB / 415.7 MB, free: 10.32 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.946e-05/0.2861, allocations: 29.7 kB / 415.7 MB, free: 10.29 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.002e-05/0.2862, allocations: 105.1 kB / 415.8 MB, free: 10.18 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.786e-05/0.2862, allocations: 23.84 kB / 415.8 MB, free: 10.16 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001092/0.2863, allocations: 81.52 kB / 415.9 MB, free: 10.07 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001536/0.2865, allocations: 326.8 kB / 416.2 MB, free: 9.742 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001256/0.2866, allocations: 55.97 kB / 416.3 MB, free: 9.688 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001316/0.2867, allocations: 73.69 kB / 416.4 MB, free: 9.609 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003685/0.2871, allocations: 347.3 kB / 416.7 MB, free: 9.215 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.2871, allocations: 3.938 kB / 416.7 MB, free: 9.211 MB / 334.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000542/0.2877, allocations: 368.4 kB / 417.1 MB, free: 8.82 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.172e-05/0.2878, allocations: 122.7 kB / 417.2 MB, free: 8.676 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.2878, allocations: 4 kB / 417.2 MB, free: 8.672 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.271e-05/0.2878, allocations: 0 / 417.2 MB, free: 8.672 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.07e-05/0.2878, allocations: 3.984 kB / 417.2 MB, free: 8.668 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.338e-06/0.2878, allocations: 4.031 kB / 417.2 MB, free: 8.664 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001321/0.288, allocations: 15.95 kB / 417.2 MB, free: 8.648 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.155e-05/0.2881, allocations: 43.98 kB / 417.2 MB, free: 8.605 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.0003636/0.2884, allocations: 362.2 kB / 417.6 MB, free: 8.219 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.001e-05/0.2885, allocations: 39.77 kB / 417.6 MB, free: 8.18 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001022/0.2886, allocations: 63.16 kB / 417.7 MB, free: 8.113 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.2886, allocations: 4 kB / 417.7 MB, free: 8.109 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.2886, allocations: 0 / 417.7 MB, free: 8.109 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.2886, allocations: 4 kB / 417.7 MB, free: 8.105 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001005/0.2896, allocations: 0.8168 MB / 418.5 MB, free: 7.211 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.2897, allocations: 4.062 kB / 418.5 MB, free: 7.207 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.639e-06/0.2897, allocations: 4 kB / 418.5 MB, free: 7.203 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.744e-06/0.2897, allocations: 0 / 418.5 MB, free: 7.203 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.943e-05/0.2897, allocations: 15.98 kB / 418.5 MB, free: 7.188 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.2897, allocations: 0 / 418.5 MB, free: 7.188 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.2897, allocations: 3.938 kB / 418.6 MB, free: 7.184 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006459/0.2904, allocations: 0.5176 MB / 419.1 MB, free: 6.625 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003077/0.2907, allocations: 248.6 kB / 419.3 MB, free: 6.363 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.468e-05/0.2907, allocations: 12 kB / 419.3 MB, free: 6.352 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001301/0.2909, allocations: 8 kB / 419.3 MB, free: 6.344 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000103/0.291, allocations: 31.84 kB / 419.4 MB, free: 6.312 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.42e-05/0.2911, allocations: 47.92 kB / 419.4 MB, free: 6.266 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004584/0.2915, allocations: 382.9 kB / 419.8 MB, free: 5.895 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.883e-06/0.2915, allocations: 4 kB / 419.8 MB, free: 5.891 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002794/0.2918, allocations: 43.94 kB / 419.8 MB, free: 5.848 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.001009/0.2928, allocations: 1.082 MB / 420.9 MB, free: 4.715 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005529/0.2934, allocations: 441.5 kB / 421.3 MB, free: 4.234 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.2934, allocations: 3.938 kB / 421.3 MB, free: 4.23 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003571/0.2938, allocations: 377.5 kB / 421.7 MB, free: 3.812 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006006/0.2944, allocations: 130.4 kB / 421.8 MB, free: 3.695 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003533/0.2979, allocations: 2.74 MB / 424.6 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005193/0.2985, allocations: 0.7983 MB / 425.4 MB, free: 16 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.228e-05/0.2985, allocations: 8.656 kB / 425.4 MB, free: 8 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.917e-05/0.2986, allocations: 31.42 kB / 425.4 MB, free: 15.98 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.2986, allocations: 4 kB / 425.4 MB, free: 15.97 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02651/0.3251, allocations: 5.772 MB / 431.2 MB, free: 10.29 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.019/8.344, allocations: 10.38 kB / 431.2 MB, free: 10.28 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Digital_Examples_BUF3S.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/BUF3S/BUF3S.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches