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.001163/0.001162, allocations: 115.7 kB / 17.72 MB, free: 5.418 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.00119/0.00119, allocations: 183.1 kB / 18.65 MB, free: 4.496 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.42/1.42, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.001354/0.001355, allocations: 51.92 kB / 328 MB, free: 3.816 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09595/0.09731, 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.003112/0.1005, allocations: 1.532 MB / 376.2 MB, free: 3.547 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001984/0.1025, allocations: 0.8942 MB / 377.1 MB, free: 2.645 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.248e-05/0.1026, allocations: 0 / 377.1 MB, free: 2.645 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001108/0.1028, allocations: 11.86 kB / 377.1 MB, free: 2.633 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001142/0.1029, allocations: 15.88 kB / 377.1 MB, free: 2.617 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00034/0.1032, allocations: 47.88 kB / 377.1 MB, free: 2.57 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002932/0.1035, allocations: 151.7 kB / 377.3 MB, free: 2.422 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001405/0.1037, allocations: 24 kB / 377.3 MB, free: 2.398 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005284/0.1042, allocations: 383.3 kB / 377.7 MB, free: 2.023 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001498/0.1044, allocations: 71.62 kB / 377.7 MB, free: 1.953 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.197e-05/0.1045, allocations: 12 kB / 377.8 MB, free: 1.941 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.813e-05/0.1045, allocations: 8 kB / 377.8 MB, free: 1.934 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.984e-05/0.1046, allocations: 63.77 kB / 377.8 MB, free: 1.871 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001239/0.1047, allocations: 111.2 kB / 377.9 MB, free: 1.762 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003792/0.1051, allocations: 358.5 kB / 378.3 MB, free: 1.41 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.1051, allocations: 4 kB / 378.3 MB, free: 1.406 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1051, allocations: 0 / 378.3 MB, free: 1.406 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.353e-05/0.1051, allocations: 0 / 378.3 MB, free: 1.406 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.0009149/0.1061, allocations: 0.7305 MB / 379 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.477e-05/0.1061, allocations: 8.031 kB / 379 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.871e-05/0.1062, allocations: 42.73 kB / 379.1 MB, free: 0.543 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.403e-05/0.1063, allocations: 40.7 kB / 379.1 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003053/0.1066, allocations: 274.7 kB / 379.4 MB, free: 200 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.505e-05/0.1066, allocations: 4.375 kB / 379.4 MB, free: 196 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.377e-05/0.1067, allocations: 12.38 kB / 379.4 MB, free: 184 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003173/0.107, allocations: 121.7 kB / 379.5 MB, free: 56 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.107, allocations: 3.938 kB / 379.5 MB, free: 52 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.633e-05/0.107, allocations: 8 kB / 379.5 MB, free: 44 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.1071, allocations: 0 / 379.5 MB, free: 44 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.159/0.266, allocations: 58.92 kB / 379.6 MB, free: 13.12 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006372/0.2667, allocations: 456.6 kB / 380 MB, free: 12.84 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001777/0.2669, allocations: 100.1 kB / 380.1 MB, free: 12.81 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001257/0.267, allocations: 89.75 kB / 380.2 MB, free: 12.8 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.698e-06/0.267, allocations: 1.375 kB / 380.2 MB, free: 12.8 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003133/0.2674, allocations: 202.5 kB / 380.4 MB, free: 12.7 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 1.843e-06/0.2674, allocations: 3.75 kB / 380.4 MB, free: 12.7 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.0006563/0.268, allocations: 461 kB / 380.9 MB, free: 12.54 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.354e-05/0.2681, allocations: 166.8 kB / 381 MB, free: 12.35 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004918/0.2686, allocations: 0.5138 MB / 381.5 MB, free: 12.15 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.124e-05/0.2686, allocations: 32.7 kB / 381.6 MB, free: 12.12 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.94e-05/0.2687, allocations: 104 kB / 381.7 MB, free: 12.04 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.206e-05/0.2687, allocations: 29.56 kB / 381.7 MB, free: 12.03 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.112e-05/0.2688, allocations: 84.8 kB / 381.8 MB, free: 12 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.143e-05/0.2688, allocations: 325.2 kB / 382.1 MB, free: 11.69 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001089/0.269, allocations: 55.56 kB / 382.2 MB, free: 11.69 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001208/0.2691, allocations: 69.72 kB / 382.2 MB, free: 11.67 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002748/0.2694, allocations: 343.8 kB / 382.6 MB, free: 11.41 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.215e-06/0.2694, allocations: 3.938 kB / 382.6 MB, free: 11.4 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005124/0.2699, allocations: 375.9 kB / 382.9 MB, free: 11.23 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.72e-05/0.27, allocations: 127.1 kB / 383.1 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.27, allocations: 1.516 kB / 383.1 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.483e-05/0.27, allocations: 1.062 kB / 383.1 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.778e-05/0.27, allocations: 4.75 kB / 383.1 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.109e-06/0.27, allocations: 8.953 kB / 383.1 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001286/0.2702, allocations: 10.05 kB / 383.1 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.672e-05/0.2702, allocations: 44.19 kB / 383.1 MB, free: 11.1 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.0002401/0.2705, allocations: 365.7 kB / 383.5 MB, free: 10.8 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.43e-05/0.2705, allocations: 38.72 kB / 383.5 MB, free: 10.78 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.872e-05/0.2706, allocations: 61.61 kB / 383.6 MB, free: 10.74 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.2706, allocations: 2.719 kB / 383.6 MB, free: 10.74 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.2706, allocations: 3.156 kB / 383.6 MB, free: 10.74 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-06/0.2706, allocations: 1.312 kB / 383.6 MB, free: 10.74 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000783/0.2714, allocations: 0.8163 MB / 384.4 MB, free: 10.16 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.2714, allocations: 1.906 kB / 384.4 MB, free: 10.16 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.869e-06/0.2715, allocations: 4.812 kB / 384.4 MB, free: 10.16 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.993e-06/0.2715, allocations: 0 / 384.4 MB, free: 10.16 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.427e-05/0.2715, allocations: 15.69 kB / 384.4 MB, free: 10.16 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/0.2715, allocations: 0 / 384.4 MB, free: 10.16 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.2715, allocations: 2.078 kB / 384.4 MB, free: 10.16 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004951/0.272, allocations: 0.5198 MB / 384.9 MB, free: 9.809 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002597/0.2723, allocations: 244.1 kB / 385.2 MB, free: 9.629 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.092e-05/0.2723, allocations: 12.77 kB / 385.2 MB, free: 9.625 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001293/0.2725, allocations: 12.98 kB / 385.2 MB, free: 9.625 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.146e-05/0.2726, allocations: 25.73 kB / 385.2 MB, free: 9.621 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.205e-05/0.2726, allocations: 46.83 kB / 385.3 MB, free: 9.613 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003682/0.273, allocations: 390 kB / 385.7 MB, free: 9.406 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.273, allocations: 0 / 385.7 MB, free: 9.406 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002705/0.2733, allocations: 50.3 kB / 385.7 MB, free: 9.398 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.0006621/0.2739, allocations: 1.082 MB / 386.8 MB, free: 8.516 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000397/0.2744, allocations: 439.2 kB / 387.2 MB, free: 8.168 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.2744, allocations: 1.062 kB / 387.2 MB, free: 8.168 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002207/0.2746, allocations: 374.8 kB / 387.6 MB, free: 7.84 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005887/0.2752, allocations: 140.1 kB / 387.7 MB, free: 7.801 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002605/0.2778, allocations: 2.746 MB / 390.5 MB, free: 5.879 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002441/0.2781, allocations: 0.8032 MB / 391.3 MB, free: 5.141 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 5.042e-05/0.2781, allocations: 13.55 kB / 391.3 MB, free: 5.137 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.885e-05/0.2782, allocations: 34.67 kB / 391.3 MB, free: 5.109 MB / 318.1 MB Notification: Performance of SimCode: time 2.91e-07/0.2782, allocations: 0 / 391.3 MB, free: 5.109 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9286/1.207, allocations: 5.763 MB / 397.1 MB, free: 4.184 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.117/10.32, allocations: 5.281 kB / 397.1 MB, free: 4.18 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