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.001471/0.001471, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00166/0.00166, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.432/1.432, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001318/0.001318, allocations: 63.89 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2872/0.2886, allocations: 50.54 MB / 408.8 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.BUF3S): time 0.002414/0.291, allocations: 1.543 MB / 410.3 MB, free: 15.99 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001759/0.2928, allocations: 0.8732 MB / 411.2 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.537e-05/0.2929, allocations: 4 kB / 411.2 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 8.909e-05/0.293, allocations: 11.86 kB / 411.2 MB, free: 15.1 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.347e-05/0.2931, allocations: 23.84 kB / 411.2 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002514/0.2933, allocations: 47.89 kB / 411.3 MB, free: 15.03 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000199/0.2935, allocations: 151.7 kB / 411.4 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.574e-05/0.2937, allocations: 20 kB / 411.4 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003952/0.2941, allocations: 387.2 kB / 411.8 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000115/0.2942, allocations: 63.77 kB / 411.9 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.675e-05/0.2942, allocations: 12 kB / 411.9 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.484e-05/0.2943, allocations: 12 kB / 411.9 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.032e-05/0.2943, allocations: 75.62 kB / 412 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001122/0.2945, allocations: 107.2 kB / 412.1 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003185/0.2948, allocations: 353.5 kB / 412.4 MB, free: 13.87 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.2948, allocations: 4 kB / 412.4 MB, free: 13.86 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.177e-06/0.2948, allocations: 3.984 kB / 412.4 MB, free: 13.86 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.302e-06/0.2948, allocations: 0 / 412.4 MB, free: 13.86 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.0007038/0.2955, allocations: 0.7305 MB / 413.1 MB, free: 13.05 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.926e-05/0.2956, allocations: 8.031 kB / 413.2 MB, free: 13.05 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.641e-05/0.2956, allocations: 42.69 kB / 413.2 MB, free: 13 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.375e-05/0.2957, allocations: 44.7 kB / 413.2 MB, free: 12.95 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002729/0.296, allocations: 270.7 kB / 413.5 MB, free: 12.65 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.028e-05/0.296, allocations: 8.375 kB / 413.5 MB, free: 12.64 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.693e-05/0.296, allocations: 8.375 kB / 413.5 MB, free: 12.63 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002726/0.2963, allocations: 121.7 kB / 413.6 MB, free: 12.51 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.744e-06/0.2963, allocations: 3.938 kB / 413.6 MB, free: 12.5 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.433e-05/0.2964, allocations: 8 kB / 413.7 MB, free: 12.5 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.2964, allocations: 3.984 kB / 413.7 MB, free: 12.49 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001369/0.2965, allocations: 63.89 kB / 413.7 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006273/0.2972, allocations: 464.5 kB / 414.2 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001719/0.2973, allocations: 98.47 kB / 414.3 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001446/0.2975, allocations: 84.89 kB / 414.3 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.063e-05/0.2975, allocations: 0 / 414.3 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003319/0.2979, allocations: 198.7 kB / 414.5 MB, free: 11.52 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 2.054e-06/0.2979, allocations: 0 / 414.5 MB, free: 11.52 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007394/0.2986, allocations: 468.2 kB / 415 MB, free: 11.03 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.345e-05/0.2987, allocations: 170.2 kB / 415.2 MB, free: 10.82 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005799/0.2993, allocations: 0.5168 MB / 415.7 MB, free: 10.29 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.877e-05/0.2993, allocations: 29.7 kB / 415.7 MB, free: 10.26 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.137e-05/0.2994, allocations: 97.12 kB / 415.8 MB, free: 10.16 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.368e-05/0.2995, allocations: 27.84 kB / 415.8 MB, free: 10.13 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001037/0.2996, allocations: 81.52 kB / 415.9 MB, free: 10.05 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001005/0.2997, allocations: 330.8 kB / 416.2 MB, free: 9.715 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001269/0.2998, allocations: 55.97 kB / 416.3 MB, free: 9.66 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000126/0.2999, allocations: 69.69 kB / 416.4 MB, free: 9.586 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003123/0.3003, allocations: 347.2 kB / 416.7 MB, free: 9.191 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.3003, allocations: 112 / 416.7 MB, free: 9.191 MB / 334.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004915/0.3008, allocations: 379.6 kB / 417.1 MB, free: 8.793 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.742e-05/0.3009, allocations: 122.8 kB / 417.2 MB, free: 8.648 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.3009, allocations: 4 kB / 417.2 MB, free: 8.645 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.404e-05/0.3009, allocations: 0 / 417.2 MB, free: 8.645 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.118e-05/0.3009, allocations: 4.109 kB / 417.2 MB, free: 8.641 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.261e-06/0.3009, allocations: 0 / 417.2 MB, free: 8.641 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001498/0.3011, allocations: 19.95 kB / 417.2 MB, free: 8.621 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.148e-05/0.3012, allocations: 43.98 kB / 417.3 MB, free: 8.578 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.000324/0.3015, allocations: 366.2 kB / 417.6 MB, free: 8.188 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.027e-05/0.3015, allocations: 39.77 kB / 417.7 MB, free: 8.148 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.84e-05/0.3016, allocations: 75.14 kB / 417.7 MB, free: 8.07 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.235e-06/0.3017, allocations: 0 / 417.7 MB, free: 8.07 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.3017, allocations: 0 / 417.7 MB, free: 8.07 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-06/0.3017, allocations: 0 / 417.7 MB, free: 8.07 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008882/0.3026, allocations: 0.8055 MB / 418.5 MB, free: 7.184 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.3026, allocations: 4 kB / 418.5 MB, free: 7.18 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.689e-06/0.3026, allocations: 0 / 418.5 MB, free: 7.18 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.3026, allocations: 0 / 418.5 MB, free: 7.18 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.613e-05/0.3026, allocations: 15.98 kB / 418.6 MB, free: 7.164 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.3026, allocations: 0 / 418.6 MB, free: 7.164 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.3026, allocations: 11.88 kB / 418.6 MB, free: 7.152 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005747/0.3032, allocations: 0.5137 MB / 419.1 MB, free: 6.598 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003057/0.3035, allocations: 252.6 kB / 419.3 MB, free: 6.332 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.552e-05/0.3036, allocations: 15.94 kB / 419.3 MB, free: 6.316 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001332/0.3037, allocations: 8 kB / 419.4 MB, free: 6.309 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.512e-05/0.3038, allocations: 23.91 kB / 419.4 MB, free: 6.285 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.664e-05/0.3039, allocations: 51.92 kB / 419.4 MB, free: 6.234 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004275/0.3043, allocations: 390.9 kB / 419.8 MB, free: 5.855 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3043, allocations: 0 / 419.8 MB, free: 5.855 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002818/0.3046, allocations: 40 kB / 419.8 MB, free: 5.816 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.0008916/0.3055, allocations: 1.082 MB / 420.9 MB, free: 4.684 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004967/0.306, allocations: 453.5 kB / 421.4 MB, free: 4.191 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.306, allocations: 0 / 421.4 MB, free: 4.191 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002934/0.3063, allocations: 373.6 kB / 421.7 MB, free: 3.777 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006155/0.307, allocations: 122.7 kB / 421.9 MB, free: 3.672 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003111/0.3101, allocations: 2.751 MB / 424.6 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004181/0.3105, allocations: 0.8022 MB / 425.4 MB, free: 15.98 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.789e-05/0.3106, allocations: 8.656 kB / 425.4 MB, free: 15.97 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.234e-05/0.3107, allocations: 31.42 kB / 425.4 MB, free: 15.94 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3107, allocations: 0 / 425.4 MB, free: 15.94 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0238/0.3345, allocations: 5.766 MB / 431.2 MB, free: 10.25 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.575/7.91, allocations: 8.344 kB / 431.2 MB, free: 10.25 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.0.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