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.001538/0.001538, allocations: 110.2 kB / 17.06 MB, free: 5.973 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.00172/0.00172, allocations: 198.8 kB / 18.01 MB, free: 5.051 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.301/1.301, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001033/0.001033, allocations: 51.92 kB / 350.8 MB, free: 3.73 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2567/0.2577, allocations: 49.43 MB / 400.2 MB, free: 8.621 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.BUF3S): time 0.002331/0.2601, allocations: 1.52 MB / 401.7 MB, free: 7.422 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001663/0.2618, allocations: 0.8549 MB / 402.6 MB, free: 6.586 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.492e-05/0.2618, allocations: 0 / 402.6 MB, free: 6.586 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 7.912e-05/0.2619, allocations: 11.92 kB / 402.6 MB, free: 6.574 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.192e-05/0.262, allocations: 23.78 kB / 402.6 MB, free: 6.551 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000221/0.2622, allocations: 49.89 kB / 402.7 MB, free: 6.504 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001992/0.2624, allocations: 151.7 kB / 402.8 MB, free: 6.355 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.177e-05/0.2625, allocations: 19.98 kB / 402.9 MB, free: 6.336 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003959/0.2629, allocations: 391.2 kB / 403.2 MB, free: 5.953 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001078/0.2631, allocations: 59.77 kB / 403.3 MB, free: 5.895 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.395e-05/0.2631, allocations: 8 kB / 403.3 MB, free: 5.887 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.562e-05/0.2631, allocations: 12 kB / 403.3 MB, free: 5.875 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.347e-05/0.2632, allocations: 63.75 kB / 403.4 MB, free: 5.812 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001127/0.2633, allocations: 119.1 kB / 403.5 MB, free: 5.695 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003075/0.2636, allocations: 354.5 kB / 403.8 MB, free: 5.348 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/0.2637, allocations: 0 / 403.8 MB, free: 5.348 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2637, allocations: 0 / 403.8 MB, free: 5.348 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.51e-06/0.2637, allocations: 0 / 403.8 MB, free: 5.348 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.000656/0.2643, allocations: 0.7382 MB / 404.6 MB, free: 4.535 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.402e-05/0.2644, allocations: 8.031 kB / 404.6 MB, free: 4.527 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.39e-05/0.2644, allocations: 42.73 kB / 404.6 MB, free: 4.477 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.283e-05/0.2645, allocations: 44.7 kB / 404.7 MB, free: 4.434 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002673/0.2648, allocations: 278.6 kB / 404.9 MB, free: 4.121 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.224e-05/0.2648, allocations: 12.38 kB / 405 MB, free: 4.109 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.551e-05/0.2648, allocations: 12.31 kB / 405 MB, free: 4.098 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002665/0.2651, allocations: 125.7 kB / 405.1 MB, free: 3.969 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.143e-06/0.2651, allocations: 0 / 405.1 MB, free: 3.969 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.094e-05/0.2651, allocations: 4 kB / 405.1 MB, free: 3.965 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.2652, allocations: 0 / 405.1 MB, free: 3.965 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001337/0.2653, allocations: 67.94 kB / 405.2 MB, free: 3.898 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006098/0.2659, allocations: 472.4 kB / 405.6 MB, free: 3.387 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001695/0.2661, allocations: 90.55 kB / 405.7 MB, free: 3.289 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001394/0.2662, allocations: 84.88 kB / 405.8 MB, free: 3.203 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.871e-06/0.2663, allocations: 0 / 405.8 MB, free: 3.203 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003053/0.2666, allocations: 202.6 kB / 406 MB, free: 2.98 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 1.413e-06/0.2666, allocations: 0 / 406 MB, free: 2.98 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007134/0.2673, allocations: 464.1 kB / 406.4 MB, free: 2.496 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.541e-05/0.2674, allocations: 166.2 kB / 406.6 MB, free: 2.297 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005596/0.2679, allocations: 0.5091 MB / 407.1 MB, free: 1.773 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.574e-05/0.268, allocations: 33.7 kB / 407.1 MB, free: 1.734 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.049e-05/0.268, allocations: 97.12 kB / 407.2 MB, free: 1.637 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.891e-05/0.2681, allocations: 35.73 kB / 407.3 MB, free: 1.602 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.85e-05/0.2682, allocations: 77.56 kB / 407.4 MB, free: 1.52 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.462e-05/0.2683, allocations: 330.8 kB / 407.7 MB, free: 1.188 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001187/0.2684, allocations: 55.97 kB / 407.7 MB, free: 1.133 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001259/0.2685, allocations: 69.69 kB / 407.8 MB, free: 1.059 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003182/0.2689, allocations: 345.7 kB / 408.1 MB, free: 0.668 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.2689, allocations: 7.938 kB / 408.1 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005001/0.2694, allocations: 372.3 kB / 408.5 MB, free: 272 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.411e-05/0.2695, allocations: 122.8 kB / 408.6 MB, free: 124 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.2695, allocations: 0 / 408.6 MB, free: 124 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.345e-05/0.2695, allocations: 4.031 kB / 408.6 MB, free: 120 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.993e-05/0.2695, allocations: 4 kB / 408.6 MB, free: 116 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.558e-06/0.2696, allocations: 3.984 kB / 408.6 MB, free: 112 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001279/0.2697, allocations: 11.94 kB / 408.7 MB, free: 100 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.839e-05/0.2698, allocations: 40.05 kB / 408.7 MB, free: 60 kB / 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.0003322/0.2701, allocations: 366.2 kB / 409 MB, free: 15.67 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.183e-05/0.2701, allocations: 43.75 kB / 409.1 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.485e-05/0.2702, allocations: 67.14 kB / 409.2 MB, free: 15.56 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.2703, allocations: 4 kB / 409.2 MB, free: 15.55 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.2703, allocations: 0 / 409.2 MB, free: 15.55 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.2703, allocations: 0 / 409.2 MB, free: 15.55 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008884/0.2712, allocations: 0.8083 MB / 410 MB, free: 14.67 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.2712, allocations: 4 kB / 410 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.731e-06/0.2712, allocations: 3.938 kB / 410 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.2712, allocations: 0 / 410 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.476e-05/0.2712, allocations: 19.92 kB / 410 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.2712, allocations: 0 / 410 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.2712, allocations: 3.938 kB / 410 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005905/0.2718, allocations: 0.5254 MB / 410.5 MB, free: 14.07 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003035/0.2722, allocations: 248.6 kB / 410.8 MB, free: 13.81 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.573e-05/0.2722, allocations: 12 kB / 410.8 MB, free: 13.8 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001323/0.2724, allocations: 8 kB / 410.8 MB, free: 13.79 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.685e-05/0.2724, allocations: 27.91 kB / 410.8 MB, free: 13.76 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.182e-05/0.2725, allocations: 36 kB / 410.9 MB, free: 13.73 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004251/0.2729, allocations: 390.9 kB / 411.2 MB, free: 13.35 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2729, allocations: 4 kB / 411.2 MB, free: 13.34 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002766/0.2732, allocations: 44 kB / 411.3 MB, free: 13.3 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.0008856/0.2741, allocations: 1.082 MB / 412.4 MB, free: 12.17 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004769/0.2746, allocations: 437.5 kB / 412.8 MB, free: 11.69 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.2746, allocations: 4.062 kB / 412.8 MB, free: 11.69 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002959/0.2749, allocations: 377.6 kB / 413.2 MB, free: 11.27 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006038/0.2755, allocations: 123 kB / 413.3 MB, free: 11.16 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003051/0.2786, allocations: 2.747 MB / 416 MB, free: 8.293 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004063/0.279, allocations: 0.8061 MB / 416.8 MB, free: 7.461 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.028e-05/0.2791, allocations: 12.66 kB / 416.8 MB, free: 7.449 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.984e-05/0.2791, allocations: 35.3 kB / 416.9 MB, free: 7.414 MB / 334.1 MB Notification: Performance of SimCode: time 2.81e-07/0.2791, allocations: 0 / 416.9 MB, free: 7.414 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02124/0.3004, allocations: 5.773 MB / 422.7 MB, free: 1.75 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.601/7.902, allocations: 8.625 kB / 422.7 MB, free: 1.742 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