Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Digital.Examples.BUF3S.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008255/0.0008255, allocations: 83.69 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00129/0.00129, allocations: 170 kB / 23.95 MB, free: 0.6172 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8706/0.8706, allocations: 177.1 MB / 204.2 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.BUF3S,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Digital_Examples_BUF3S",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.BUF3S,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Digital_Examples_BUF3S",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.683e-06/1.683e-06, allocations: 0 / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.676e-05/1.844e-05, allocations: 7.766 kB / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.BUF3S): time 0.001791/0.00181, allocations: 1.503 MB / 326.1 MB, free: 14.43 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001364/0.003173, allocations: 0.838 MB / 326.9 MB, free: 13.59 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.665e-05/0.00322, allocations: 4 kB / 326.9 MB, free: 13.59 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.737e-05/0.003307, allocations: 15.86 kB / 326.9 MB, free: 13.57 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.534e-05/0.003373, allocations: 11.88 kB / 326.9 MB, free: 13.56 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002242/0.003597, allocations: 55.81 kB / 327 MB, free: 13.5 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001657/0.003763, allocations: 135.7 kB / 327.1 MB, free: 13.37 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.822e-05/0.003851, allocations: 8 kB / 327.1 MB, free: 13.36 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003401/0.004191, allocations: 419.2 kB / 327.5 MB, free: 12.95 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.473e-05/0.004286, allocations: 63.81 kB / 327.6 MB, free: 12.89 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.834e-05/0.004314, allocations: 8 kB / 327.6 MB, free: 12.88 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.141e-05/0.004336, allocations: 16 kB / 327.6 MB, free: 12.87 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.53e-05/0.004401, allocations: 59.78 kB / 327.7 MB, free: 12.81 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.741e-05/0.004468, allocations: 59.72 kB / 327.7 MB, free: 12.75 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002502/0.004718, allocations: 358.8 kB / 328.1 MB, free: 12.4 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.004722, allocations: 4 kB / 328.1 MB, free: 12.39 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.004723, allocations: 0 / 328.1 MB, free: 12.39 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.348e-06/0.004727, allocations: 0 / 328.1 MB, free: 12.39 MB / 298.7 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.0006261/0.005353, allocations: 0.6506 MB / 328.7 MB, free: 11.69 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.773e-05/0.005391, allocations: 8.031 kB / 328.8 MB, free: 11.68 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.435e-05/0.005425, allocations: 42.73 kB / 328.8 MB, free: 11.63 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.61e-05/0.005471, allocations: 40.7 kB / 328.8 MB, free: 11.59 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001884/0.00566, allocations: 224 kB / 329.1 MB, free: 11.35 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.487e-05/0.005675, allocations: 4.375 kB / 329.1 MB, free: 11.34 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.679e-05/0.005691, allocations: 8.375 kB / 329.1 MB, free: 11.34 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002539/0.005945, allocations: 241 kB / 329.3 MB, free: 11.07 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.993e-06/0.005952, allocations: 192 / 329.3 MB, free: 11.07 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.734e-05/0.00597, allocations: 12.06 kB / 329.3 MB, free: 11.06 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.005975, allocations: 4 kB / 329.3 MB, free: 11.05 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001254/0.0061, allocations: 174.8 kB / 329.5 MB, free: 10.86 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004325/0.006533, allocations: 407.7 kB / 329.9 MB, free: 10.42 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001551/0.006688, allocations: 197.3 kB / 330.1 MB, free: 10.19 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001147/0.006803, allocations: 183.7 kB / 330.3 MB, free: 9.984 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.749e-06/0.006812, allocations: 0 / 330.3 MB, free: 9.984 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002992/0.007112, allocations: 321.4 kB / 330.6 MB, free: 9.621 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 1.473e-06/0.007113, allocations: 0 / 330.6 MB, free: 9.621 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.0005955/0.007709, allocations: 0.697 MB / 331.3 MB, free: 8.844 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.3e-05/0.007772, allocations: 166.2 kB / 331.4 MB, free: 8.645 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006529/0.008424, allocations: 0.5168 MB / 332 MB, free: 8.121 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.119e-05/0.008446, allocations: 37.64 kB / 332 MB, free: 8.078 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.938e-05/0.008495, allocations: 101.1 kB / 332.1 MB, free: 7.977 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.683e-05/0.008522, allocations: 31.8 kB / 332.1 MB, free: 7.945 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.113e-05/0.008593, allocations: 77.52 kB / 332.2 MB, free: 7.863 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.602e-05/0.008669, allocations: 326.8 kB / 332.5 MB, free: 7.535 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000114/0.008783, allocations: 174.8 kB / 332.7 MB, free: 7.34 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001197/0.008903, allocations: 195 kB / 332.9 MB, free: 7.121 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002135/0.009116, allocations: 367.1 kB / 333.2 MB, free: 6.707 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.009118, allocations: 0 / 333.2 MB, free: 6.707 MB / 298.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003556/0.009474, allocations: 0.4911 MB / 333.7 MB, free: 6.164 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.983e-05/0.009534, allocations: 122.8 kB / 333.8 MB, free: 6.02 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.009539, allocations: 0 / 333.8 MB, free: 6.02 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.296e-05/0.009552, allocations: 4.031 kB / 333.8 MB, free: 6.016 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.936e-05/0.009571, allocations: 3.938 kB / 333.9 MB, free: 6.012 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.689e-06/0.009576, allocations: 4 kB / 333.9 MB, free: 6.008 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.105e-05/0.009667, allocations: 19.94 kB / 333.9 MB, free: 5.988 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.865e-05/0.009706, allocations: 40.05 kB / 333.9 MB, free: 5.949 MB / 298.7 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.0002235/0.009929, allocations: 370.5 kB / 334.3 MB, free: 5.555 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.089e-05/0.00996, allocations: 39.77 kB / 334.3 MB, free: 5.516 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.22e-05/0.01003, allocations: 67.08 kB / 334.4 MB, free: 5.445 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-06/0.01003, allocations: 128 / 334.4 MB, free: 5.445 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.149e-06/0.01004, allocations: 8 kB / 334.4 MB, free: 5.438 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.975e-06/0.01004, allocations: 0 / 334.4 MB, free: 5.438 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006464/0.01069, allocations: 0.8817 MB / 335.3 MB, free: 4.457 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.01069, allocations: 0 / 335.3 MB, free: 4.457 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.871e-06/0.0107, allocations: 4 kB / 335.3 MB, free: 4.453 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.0107, allocations: 0 / 335.3 MB, free: 4.453 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.831e-05/0.01072, allocations: 15.98 kB / 335.3 MB, free: 4.438 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.01072, allocations: 0 / 335.3 MB, free: 4.438 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.01072, allocations: 0 / 335.3 MB, free: 4.438 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004252/0.01114, allocations: 0.6492 MB / 335.9 MB, free: 3.723 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002329/0.01138, allocations: 205.4 kB / 336.1 MB, free: 3.523 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.426e-05/0.01141, allocations: 16 kB / 336.2 MB, free: 3.508 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.245e-05/0.01149, allocations: 8 kB / 336.2 MB, free: 3.5 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.233e-05/0.01158, allocations: 23.97 kB / 336.2 MB, free: 3.477 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.234e-05/0.01161, allocations: 43.94 kB / 336.2 MB, free: 3.434 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002998/0.01191, allocations: 390.9 kB / 336.6 MB, free: 3.055 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.01191, allocations: 0 / 336.6 MB, free: 3.055 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002335/0.01214, allocations: 55.81 kB / 336.7 MB, free: 3 MB / 298.7 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.0007807/0.01292, allocations: 1.198 MB / 337.9 MB, free: 1.727 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004701/0.01339, allocations: 0.6163 MB / 338.5 MB, free: 1.008 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.0134, allocations: 3.938 kB / 338.5 MB, free: 1.004 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004531/0.01385, allocations: 432.3 kB / 338.9 MB, free: 0.5078 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004046/0.01425, allocations: 119.5 kB / 339 MB, free: 412 kB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002414/0.01667, allocations: 3.359 MB / 342.4 MB, free: 12.8 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001623/0.01683, allocations: 194.2 kB / 342.6 MB, free: 12.59 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 3.309e-05/0.01686, allocations: 12.78 kB / 342.6 MB, free: 12.58 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.931e-05/0.01691, allocations: 36.48 kB / 342.6 MB, free: 12.54 MB / 314.7 MB Notification: Performance of SimCode: time 8.12e-07/0.01691, allocations: 0 / 342.6 MB, free: 12.54 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0213/0.03821, allocations: 6.877 MB / 349.5 MB, free: 5.84 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.625/6.663, allocations: 10.86 kB / 349.5 MB, free: 5.832 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Digital.Examples.BUF3S.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Digital.Examples.BUF3S.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Digital.Examples.BUF3S_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Digital_Examples_BUF3S_fmu --startTime=0 --stopTime=12 --stepSize=0.0023933 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Digital_Examples_BUF3S.fmu > Modelica_4.1.0_Modelica.Electrical.Digital.Examples.BUF3S.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Digital.Examples.BUF3S_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/BUF3S/BUF3S.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Digital.Examples.BUF3S.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.294040706939995]