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.001051/0.001051, allocations: 106.9 kB / 16.62 MB, free: 6.809 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.0009769/0.0009769, allocations: 193.8 kB / 17.55 MB, free: 5.949 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.398/1.398, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001223, allocations: 46.11 kB / 300.2 MB, free: 6.133 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1031, allocations: 49.45 MB / 349.7 MB, free: 4.68 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.BUF3S): time 0.003999/0.1072, allocations: 1.579 MB / 351.3 MB, free: 3.086 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00211/0.1093, allocations: 0.842 MB / 352.1 MB, free: 2.238 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.333e-05/0.1094, allocations: 0 / 352.1 MB, free: 2.238 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00012/0.1096, allocations: 11.92 kB / 352.1 MB, free: 2.227 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001191/0.1097, allocations: 15.84 kB / 352.1 MB, free: 2.211 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003031/0.11, allocations: 43.97 kB / 352.2 MB, free: 2.168 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000251/0.1103, allocations: 147.7 kB / 352.3 MB, free: 2.023 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001214/0.1104, allocations: 15.98 kB / 352.3 MB, free: 2.008 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004886/0.1109, allocations: 383.3 kB / 352.7 MB, free: 1.633 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001526/0.1111, allocations: 67.77 kB / 352.8 MB, free: 1.566 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.263e-05/0.1112, allocations: 12 kB / 352.8 MB, free: 1.555 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.936e-05/0.1112, allocations: 8 kB / 352.8 MB, free: 1.547 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001792/0.1114, allocations: 71.69 kB / 352.9 MB, free: 1.477 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001245/0.1115, allocations: 115.2 kB / 353 MB, free: 1.363 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004409/0.112, allocations: 354.7 kB / 353.3 MB, free: 1.016 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.112, allocations: 0 / 353.3 MB, free: 1.016 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.112, allocations: 0 / 353.3 MB, free: 1.016 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.171e-05/0.112, allocations: 0 / 353.3 MB, free: 1.016 MB / 286.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.0009164/0.1129, allocations: 0.7191 MB / 354 MB, free: 228 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/0.113, allocations: 12.03 kB / 354.1 MB, free: 216 kB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.762e-05/0.1131, allocations: 42.75 kB / 354.1 MB, free: 164 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.534e-05/0.1131, allocations: 40.47 kB / 354.1 MB, free: 124 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003374/0.1135, allocations: 278.3 kB / 354.4 MB, free: 15.81 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.369e-05/0.1135, allocations: 4.375 kB / 354.4 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.868e-05/0.1136, allocations: 8.375 kB / 354.4 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003041/0.1139, allocations: 127.7 kB / 354.5 MB, free: 15.67 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.157e-05/0.1139, allocations: 0 / 354.5 MB, free: 15.67 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.44e-05/0.1139, allocations: 11.92 kB / 354.6 MB, free: 15.66 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.1139, allocations: 3.984 kB / 354.6 MB, free: 15.65 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001522/0.1141, allocations: 59.97 kB / 354.6 MB, free: 15.59 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007121/0.1148, allocations: 456.4 kB / 355.1 MB, free: 15.1 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001898/0.115, allocations: 98.53 kB / 355.2 MB, free: 14.99 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001735/0.1152, allocations: 80.89 kB / 355.2 MB, free: 14.91 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.19e-05/0.1152, allocations: 4 kB / 355.2 MB, free: 14.91 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003836/0.1156, allocations: 210.6 kB / 355.4 MB, free: 14.68 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.683e-06/0.1156, allocations: 0 / 355.4 MB, free: 14.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007952/0.1164, allocations: 460.1 kB / 355.9 MB, free: 14.2 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.877e-05/0.1165, allocations: 166.2 kB / 356.1 MB, free: 14 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006189/0.1172, allocations: 0.5168 MB / 356.6 MB, free: 13.47 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.104e-05/0.1172, allocations: 33.69 kB / 356.6 MB, free: 13.43 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.355e-05/0.1173, allocations: 105.1 kB / 356.7 MB, free: 13.33 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.502e-05/0.1173, allocations: 31.64 kB / 356.7 MB, free: 13.3 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001053/0.1174, allocations: 77.42 kB / 356.8 MB, free: 13.21 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001113/0.1176, allocations: 326.8 kB / 357.1 MB, free: 12.89 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000128/0.1177, allocations: 51.97 kB / 357.2 MB, free: 12.84 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001383/0.1178, allocations: 73.67 kB / 357.3 MB, free: 12.76 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003165/0.1182, allocations: 350.6 kB / 357.6 MB, free: 12.36 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.1182, allocations: 0 / 357.6 MB, free: 12.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000507/0.1187, allocations: 372.2 kB / 358 MB, free: 11.97 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.448e-05/0.1188, allocations: 126.8 kB / 358.1 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.1188, allocations: 0 / 358.1 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.301e-05/0.1188, allocations: 0 / 358.1 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.305e-05/0.1188, allocations: 4 kB / 358.1 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.061e-06/0.1189, allocations: 3.938 kB / 358.1 MB, free: 11.81 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001504/0.119, allocations: 12 kB / 358.1 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.449e-05/0.1191, allocations: 44.02 kB / 358.2 MB, free: 11.76 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.0003476/0.1194, allocations: 362.2 kB / 358.5 MB, free: 11.37 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.215e-05/0.1195, allocations: 39.53 kB / 358.5 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001014/0.1196, allocations: 67.25 kB / 358.6 MB, free: 11.26 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.1196, allocations: 3.938 kB / 358.6 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.1196, allocations: 0 / 358.6 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.766e-06/0.1196, allocations: 0 / 358.6 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009137/0.1205, allocations: 0.8096 MB / 359.4 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.1206, allocations: 8 kB / 359.4 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.32e-06/0.1206, allocations: 0 / 359.4 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.1206, allocations: 0 / 359.4 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.249e-05/0.1206, allocations: 19.98 kB / 359.5 MB, free: 10.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.714e-06/0.1206, allocations: 0 / 359.5 MB, free: 10.34 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.1206, allocations: 3.938 kB / 359.5 MB, free: 10.33 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006148/0.1213, allocations: 0.5211 MB / 360 MB, free: 9.77 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002934/0.1216, allocations: 244.5 kB / 360.2 MB, free: 9.512 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.08e-05/0.1216, allocations: 16 kB / 360.2 MB, free: 9.496 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001455/0.1218, allocations: 15.92 kB / 360.2 MB, free: 9.48 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001012/0.1219, allocations: 19.92 kB / 360.3 MB, free: 9.461 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.299e-05/0.122, allocations: 47.92 kB / 360.3 MB, free: 9.414 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004538/0.1224, allocations: 382.9 kB / 360.7 MB, free: 9.039 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1224, allocations: 0 / 360.7 MB, free: 9.039 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002993/0.1227, allocations: 44 kB / 360.7 MB, free: 8.996 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.0009534/0.1237, allocations: 1.092 MB / 361.8 MB, free: 7.855 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004928/0.1242, allocations: 441.5 kB / 362.3 MB, free: 7.375 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.1242, allocations: 0 / 362.3 MB, free: 7.375 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003021/0.1245, allocations: 373.6 kB / 362.6 MB, free: 6.961 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006312/0.1252, allocations: 131.4 kB / 362.7 MB, free: 6.84 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003252/0.1284, allocations: 2.797 MB / 365.5 MB, free: 3.934 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004021/0.1288, allocations: 0.8061 MB / 366.3 MB, free: 3.102 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.715e-05/0.1289, allocations: 8.656 kB / 366.4 MB, free: 3.094 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.827e-05/0.129, allocations: 27.42 kB / 366.4 MB, free: 3.066 MB / 302.1 MB Notification: Performance of SimCode: time 5.21e-07/0.129, allocations: 0 / 366.4 MB, free: 3.066 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.198/0.327, allocations: 5.522 MB / 371.9 MB, free: 26.28 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001687/0.3272, allocations: 196.7 kB / 372.1 MB, free: 26.03 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.925/2.252, allocations: 0 / 372.1 MB, free: 26.03 MB / 302.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_BUF3S_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 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.mat","/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