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.001173/0.001173, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001331/0.001331, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.4/1.4, allocations: 227.4 MB / 246.8 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00124/0.00124, allocations: 65.77 kB / 307.1 MB, free: 492 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1033, allocations: 50.52 MB / 357.6 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.BUF3S): time 0.003191/0.1066, allocations: 1.524 MB / 359.1 MB, free: 12.42 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001977/0.1086, allocations: 0.8826 MB / 360 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000101/0.1087, allocations: 4 kB / 360 MB, free: 11.53 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001141/0.1089, allocations: 11.92 kB / 360 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001052/0.109, allocations: 27.78 kB / 360 MB, free: 11.49 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003172/0.1093, allocations: 43.89 kB / 360.1 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000245/0.1096, allocations: 139.8 kB / 360.2 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001276/0.1097, allocations: 27.98 kB / 360.2 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000501/0.1102, allocations: 375.3 kB / 360.6 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000169/0.1104, allocations: 63.77 kB / 360.7 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.289e-05/0.1105, allocations: 8 kB / 360.7 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.435e-05/0.1105, allocations: 12 kB / 360.7 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.734e-05/0.1106, allocations: 67.64 kB / 360.7 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001443/0.1108, allocations: 115.2 kB / 360.9 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003783/0.1112, allocations: 346.8 kB / 361.2 MB, free: 10.32 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.554e-06/0.1112, allocations: 4 kB / 361.2 MB, free: 10.31 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.1112, allocations: 0 / 361.2 MB, free: 10.31 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.585e-05/0.1112, allocations: 0 / 361.2 MB, free: 10.31 MB / 302.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.0008614/0.1121, allocations: 0.7191 MB / 361.9 MB, free: 9.52 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.754e-05/0.1121, allocations: 8.031 kB / 361.9 MB, free: 9.512 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.734e-05/0.1122, allocations: 50.67 kB / 362 MB, free: 9.453 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.7e-05/0.1123, allocations: 36.47 kB / 362 MB, free: 9.418 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002933/0.1126, allocations: 274.3 kB / 362.3 MB, free: 9.109 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.608e-05/0.1126, allocations: 8.375 kB / 362.3 MB, free: 9.102 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.611e-05/0.1127, allocations: 8.375 kB / 362.3 MB, free: 9.094 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002991/0.113, allocations: 121.7 kB / 362.4 MB, free: 8.969 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.695e-06/0.113, allocations: 4 kB / 362.4 MB, free: 8.965 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.203e-05/0.113, allocations: 4 kB / 362.4 MB, free: 8.961 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.967e-06/0.113, allocations: 0 / 362.4 MB, free: 8.961 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001415/0.1132, allocations: 59.95 kB / 362.5 MB, free: 8.902 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006623/0.1138, allocations: 468.5 kB / 362.9 MB, free: 8.395 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001949/0.1141, allocations: 98.53 kB / 363 MB, free: 8.289 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001494/0.1142, allocations: 84.89 kB / 363.1 MB, free: 8.203 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.452e-05/0.1142, allocations: 4 kB / 363.1 MB, free: 8.199 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003868/0.1146, allocations: 202.6 kB / 363.3 MB, free: 7.977 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 2.053e-06/0.1146, allocations: 3.938 kB / 363.3 MB, free: 7.973 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.000898/0.1156, allocations: 463.4 kB / 363.8 MB, free: 7.492 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000129/0.1157, allocations: 166.2 kB / 363.9 MB, free: 7.293 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008121/0.1165, allocations: 0.5207 MB / 364.5 MB, free: 6.762 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.814e-05/0.1166, allocations: 29.7 kB / 364.5 MB, free: 6.727 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.226e-05/0.1167, allocations: 101.1 kB / 364.6 MB, free: 6.625 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.369e-05/0.1167, allocations: 31.64 kB / 364.6 MB, free: 6.594 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001701/0.1169, allocations: 85.33 kB / 364.7 MB, free: 6.504 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001457/0.1171, allocations: 326.8 kB / 365 MB, free: 6.176 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001362/0.1172, allocations: 51.97 kB / 365.1 MB, free: 6.125 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001485/0.1174, allocations: 77.69 kB / 365.2 MB, free: 6.043 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003644/0.1177, allocations: 343.2 kB / 365.5 MB, free: 5.652 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.1177, allocations: 0 / 365.5 MB, free: 5.652 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005545/0.1183, allocations: 372.3 kB / 365.8 MB, free: 5.258 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001034/0.1184, allocations: 122.8 kB / 366 MB, free: 5.113 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.1184, allocations: 0 / 366 MB, free: 5.113 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.532e-05/0.1185, allocations: 0 / 366 MB, free: 5.113 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.962e-05/0.1185, allocations: 12.03 kB / 366 MB, free: 5.102 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.561e-06/0.1185, allocations: 7.969 kB / 366 MB, free: 5.094 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001605/0.1187, allocations: 8 kB / 366 MB, free: 5.086 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.666e-05/0.1187, allocations: 40 kB / 366 MB, free: 5.047 MB / 302.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.0003619/0.1191, allocations: 366.2 kB / 366.4 MB, free: 4.652 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.98e-05/0.1192, allocations: 43.52 kB / 366.4 MB, free: 4.609 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.735e-05/0.1193, allocations: 63.14 kB / 366.5 MB, free: 4.539 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.1193, allocations: 0 / 366.5 MB, free: 4.539 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.1193, allocations: 0 / 366.5 MB, free: 4.539 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.604e-06/0.1193, allocations: 4 kB / 366.5 MB, free: 4.535 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009242/0.1202, allocations: 0.8132 MB / 367.3 MB, free: 3.641 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.1202, allocations: 0 / 367.3 MB, free: 3.641 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.36e-06/0.1203, allocations: 0 / 367.3 MB, free: 3.641 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.1203, allocations: 0 / 367.3 MB, free: 3.641 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.564e-05/0.1203, allocations: 15.98 kB / 367.3 MB, free: 3.625 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.1203, allocations: 0 / 367.3 MB, free: 3.625 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.1203, allocations: 4.125 kB / 367.3 MB, free: 3.621 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006111/0.1209, allocations: 0.5286 MB / 367.9 MB, free: 3.055 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000318/0.1213, allocations: 248.5 kB / 368.1 MB, free: 2.793 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.994e-05/0.1213, allocations: 12 kB / 368.1 MB, free: 2.781 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001424/0.1215, allocations: 12 kB / 368.1 MB, free: 2.77 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001241/0.1216, allocations: 23.91 kB / 368.2 MB, free: 2.746 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.467e-05/0.1217, allocations: 47.92 kB / 368.2 MB, free: 2.699 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004945/0.1222, allocations: 390.8 kB / 368.6 MB, free: 2.32 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.1222, allocations: 0 / 368.6 MB, free: 2.32 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003006/0.1225, allocations: 51.88 kB / 368.6 MB, free: 2.27 MB / 302.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.0009324/0.1234, allocations: 1.074 MB / 369.7 MB, free: 1.145 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004803/0.1239, allocations: 437.5 kB / 370.1 MB, free: 0.668 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.1239, allocations: 0 / 370.1 MB, free: 0.668 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003031/0.1242, allocations: 377.5 kB / 370.5 MB, free: 256 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006501/0.1249, allocations: 126.3 kB / 370.6 MB, free: 144 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1556/0.2805, allocations: 2.733 MB / 373.4 MB, free: 19.05 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003077/0.2808, allocations: 0.8047 MB / 374.2 MB, free: 18.33 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.243e-05/0.2809, allocations: 11.67 kB / 374.2 MB, free: 18.33 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.553e-05/0.281, allocations: 27.59 kB / 374.2 MB, free: 18.32 MB / 302.1 MB Notification: Performance of SimCode: time 7.52e-07/0.281, allocations: 0 / 374.2 MB, free: 18.32 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02327/0.3042, allocations: 5.743 MB / 379.9 MB, free: 17.65 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.744/8.049, allocations: 13.2 kB / 380 MB, free: 17.64 MB / 302.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