Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Digital_Examples_BUF3S",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.BUF3S,fileNamePrefix="Modelica_3_2_3_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.001352/0.001352, allocations: 113.4 kB / 17.73 MB, free: 5.355 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.001303/0.001303, allocations: 184.1 kB / 18.66 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.445/1.445, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002257/0.002257, allocations: 59.91 kB / 328 MB, free: 3.816 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0877/0.08997, allocations: 46.62 MB / 374.6 MB, free: 5.09 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.BUF3S): time 0.002655/0.09267, allocations: 1.524 MB / 376.2 MB, free: 3.555 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001905/0.0946, allocations: 0.898 MB / 377.1 MB, free: 2.648 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.952e-05/0.09466, allocations: 0 / 377.1 MB, free: 2.648 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 9.064e-05/0.09478, allocations: 7.938 kB / 377.1 MB, free: 2.641 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.926e-05/0.09486, allocations: 19.8 kB / 377.1 MB, free: 2.621 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002518/0.09512, allocations: 51.88 kB / 377.1 MB, free: 2.57 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002273/0.09535, allocations: 143.8 kB / 377.3 MB, free: 2.43 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001066/0.09547, allocations: 15.98 kB / 377.3 MB, free: 2.414 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004535/0.09593, allocations: 375.3 kB / 377.7 MB, free: 2.047 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001402/0.09608, allocations: 67.69 kB / 377.7 MB, free: 1.98 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.634e-05/0.09613, allocations: 8 kB / 377.7 MB, free: 1.973 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.57e-05/0.09617, allocations: 15.94 kB / 377.8 MB, free: 1.957 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.485e-05/0.09627, allocations: 63.77 kB / 377.8 MB, free: 1.895 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001268/0.09641, allocations: 111.2 kB / 377.9 MB, free: 1.785 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003778/0.09679, allocations: 358.5 kB / 378.3 MB, free: 1.434 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.0968, allocations: 0 / 378.3 MB, free: 1.434 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.09681, allocations: 0 / 378.3 MB, free: 1.434 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.49e-06/0.09682, allocations: 0 / 378.3 MB, free: 1.434 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.0007958/0.09762, allocations: 0.7344 MB / 379 MB, free: 0.625 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.931e-05/0.09766, allocations: 12.03 kB / 379 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.055e-05/0.09772, allocations: 42.73 kB / 379.1 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.097e-05/0.09779, allocations: 36.7 kB / 379.1 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002916/0.09808, allocations: 274.7 kB / 379.4 MB, free: 224 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.801e-05/0.09811, allocations: 8.375 kB / 379.4 MB, free: 216 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.917e-05/0.09815, allocations: 8.375 kB / 379.4 MB, free: 208 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003063/0.09846, allocations: 129.7 kB / 379.5 MB, free: 72 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.09848, allocations: 0 / 379.5 MB, free: 72 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.168e-05/0.09851, allocations: 4 kB / 379.5 MB, free: 68 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.096e-05/0.09852, allocations: 11.92 kB / 379.5 MB, free: 56 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1602/0.2588, allocations: 57.81 kB / 379.6 MB, free: 13.07 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007423/0.2595, allocations: 458.6 kB / 380 MB, free: 12.8 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002204/0.2598, allocations: 99.59 kB / 380.1 MB, free: 12.77 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001457/0.2599, allocations: 87.58 kB / 380.2 MB, free: 12.77 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.546e-06/0.2599, allocations: 1.375 kB / 380.2 MB, free: 12.77 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003886/0.2603, allocations: 200.8 kB / 380.4 MB, free: 12.66 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 1.904e-06/0.2604, allocations: 1.375 kB / 380.4 MB, free: 12.66 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.000751/0.2611, allocations: 459.8 kB / 380.9 MB, free: 12.5 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.358e-05/0.2612, allocations: 172.6 kB / 381 MB, free: 12.31 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005909/0.2618, allocations: 0.5157 MB / 381.5 MB, free: 12.11 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.206e-05/0.2618, allocations: 30.34 kB / 381.6 MB, free: 12.08 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.664e-05/0.2619, allocations: 99.55 kB / 381.7 MB, free: 12 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.469e-05/0.2619, allocations: 33.28 kB / 381.7 MB, free: 11.99 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001023/0.262, allocations: 86.36 kB / 381.8 MB, free: 11.96 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.113e-05/0.2621, allocations: 320 kB / 382.1 MB, free: 11.65 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001262/0.2622, allocations: 58.16 kB / 382.2 MB, free: 11.65 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001485/0.2623, allocations: 75 kB / 382.2 MB, free: 11.63 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002864/0.2626, allocations: 340.8 kB / 382.6 MB, free: 11.36 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.2627, allocations: 3.938 kB / 382.6 MB, free: 11.36 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005491/0.2632, allocations: 374.7 kB / 382.9 MB, free: 11.2 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.769e-05/0.2633, allocations: 131.1 kB / 383.1 MB, free: 11.06 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.2633, allocations: 4.125 kB / 383.1 MB, free: 11.06 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.55e-05/0.2633, allocations: 1.125 kB / 383.1 MB, free: 11.06 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.077e-05/0.2633, allocations: 1.734 kB / 383.1 MB, free: 11.06 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.011e-06/0.2634, allocations: 1.031 kB / 383.1 MB, free: 11.06 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001348/0.2635, allocations: 11.3 kB / 383.1 MB, free: 11.06 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.597e-05/0.2636, allocations: 38.69 kB / 383.1 MB, free: 11.06 MB / 318.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.0002644/0.2638, allocations: 368.1 kB / 383.5 MB, free: 10.76 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.224e-05/0.2639, allocations: 43.61 kB / 383.5 MB, free: 10.74 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.794e-05/0.264, allocations: 65.64 kB / 383.6 MB, free: 10.7 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.264, allocations: 3.094 kB / 383.6 MB, free: 10.7 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.264, allocations: 0 / 383.6 MB, free: 10.7 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.264, allocations: 1.656 kB / 383.6 MB, free: 10.7 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008232/0.2648, allocations: 0.8109 MB / 384.4 MB, free: 10.12 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.2649, allocations: 5.125 kB / 384.4 MB, free: 10.12 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.949e-06/0.2649, allocations: 0.875 kB / 384.4 MB, free: 10.12 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.2649, allocations: 4.562 kB / 384.4 MB, free: 10.12 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.602e-05/0.2649, allocations: 10.94 kB / 384.4 MB, free: 10.12 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.2649, allocations: 1.406 kB / 384.4 MB, free: 10.12 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.2649, allocations: 0 / 384.4 MB, free: 10.12 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005427/0.2655, allocations: 0.5204 MB / 384.9 MB, free: 9.773 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002442/0.2657, allocations: 245.4 kB / 385.2 MB, free: 9.594 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.166e-05/0.2658, allocations: 18.22 kB / 385.2 MB, free: 9.59 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001245/0.2659, allocations: 9.812 kB / 385.2 MB, free: 9.59 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.586e-05/0.266, allocations: 24.55 kB / 385.2 MB, free: 9.582 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.771e-05/0.2661, allocations: 42.72 kB / 385.3 MB, free: 9.578 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003936/0.2665, allocations: 391.9 kB / 385.7 MB, free: 9.371 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2665, allocations: 0 / 385.7 MB, free: 9.371 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002807/0.2668, allocations: 52.89 kB / 385.7 MB, free: 9.359 MB / 318.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.0007252/0.2675, allocations: 1.081 MB / 386.8 MB, free: 8.48 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004303/0.2679, allocations: 441.7 kB / 387.2 MB, free: 8.137 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.2679, allocations: 4.094 kB / 387.2 MB, free: 8.133 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002291/0.2682, allocations: 373.3 kB / 387.6 MB, free: 7.805 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006192/0.2688, allocations: 134.8 kB / 387.7 MB, free: 7.762 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002799/0.2716, allocations: 2.748 MB / 390.5 MB, free: 5.844 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002794/0.2719, allocations: 0.7991 MB / 391.3 MB, free: 5.109 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 6.085e-05/0.272, allocations: 16.53 kB / 391.3 MB, free: 5.102 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.701e-05/0.272, allocations: 31.47 kB / 391.3 MB, free: 5.078 MB / 318.1 MB Notification: Performance of SimCode: time 3.41e-07/0.272, allocations: 1.125 kB / 391.3 MB, free: 5.078 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02729/0.2993, allocations: 5.769 MB / 397.1 MB, free: 4.145 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.089/8.388, allocations: 5.734 kB / 397.1 MB, free: 4.141 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Electrical_Digital_Examples_BUF3S.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/BUF3S/BUF3S.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches