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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001497/0.001497, allocations: 124.7 kB / 17.79 MB, free: 5.246 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001701/0.001701, allocations: 186.9 kB / 20.73 MB, free: 2.316 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "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: 225.6 MB / 249.1 MB, free: 3.641 MB / 190.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001466/0.001466, allocations: 51.92 kB / 365.6 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09349/0.09496, allocations: 52.15 MB / 417.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.BUF3S): time 0.002659/0.09762, allocations: 1.534 MB / 419.3 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001896/0.09951, allocations: 0.8498 MB / 420.2 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.035e-05/0.09956, allocations: 0 / 420.2 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.237e-05/0.09966, allocations: 11.88 kB / 420.2 MB, free: 10.22 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.358e-05/0.09974, allocations: 23.84 kB / 420.2 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002363/0.09998, allocations: 47.89 kB / 420.2 MB, free: 10.15 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002021/0.1002, allocations: 135.7 kB / 420.4 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.471e-05/0.1003, allocations: 11.98 kB / 420.4 MB, free: 10 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000453/0.1007, allocations: 391.3 kB / 420.8 MB, free: 9.621 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000119/0.1008, allocations: 71.64 kB / 420.8 MB, free: 9.551 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.771e-05/0.1009, allocations: 12 kB / 420.8 MB, free: 9.539 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.609e-05/0.1009, allocations: 8 kB / 420.9 MB, free: 9.531 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.326e-05/0.101, allocations: 67.75 kB / 420.9 MB, free: 9.465 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001161/0.1011, allocations: 115.2 kB / 421 MB, free: 9.352 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003694/0.1015, allocations: 354.5 kB / 421.4 MB, free: 9.004 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.1015, allocations: 0 / 421.4 MB, free: 9.004 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1015, allocations: 0 / 421.4 MB, free: 9.004 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.032e-06/0.1015, allocations: 0 / 421.4 MB, free: 9.004 MB / 350.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.0008149/0.1023, allocations: 0.7382 MB / 422.1 MB, free: 8.191 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.907e-05/0.1023, allocations: 12.03 kB / 422.1 MB, free: 8.18 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.122e-05/0.1024, allocations: 42.73 kB / 422.2 MB, free: 8.129 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.551e-05/0.1025, allocations: 40.7 kB / 422.2 MB, free: 8.09 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003226/0.1028, allocations: 270.7 kB / 422.5 MB, free: 7.785 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.006e-05/0.1028, allocations: 4.375 kB / 422.5 MB, free: 7.781 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.649e-05/0.1028, allocations: 12.36 kB / 422.5 MB, free: 7.77 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002813/0.1031, allocations: 125.7 kB / 422.6 MB, free: 7.641 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.734e-06/0.1031, allocations: 4 kB / 422.6 MB, free: 7.637 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.045e-05/0.1031, allocations: 7.938 kB / 422.6 MB, free: 7.629 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.847e-06/0.1031, allocations: 8 kB / 422.6 MB, free: 7.621 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001331/0.1033, allocations: 59.91 kB / 422.7 MB, free: 7.562 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007016/0.104, allocations: 464.4 kB / 423.1 MB, free: 7.059 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001656/0.1041, allocations: 70.55 kB / 423.2 MB, free: 6.98 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001333/0.1043, allocations: 60.89 kB / 423.3 MB, free: 6.918 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.164e-05/0.1043, allocations: 4 kB / 423.3 MB, free: 6.914 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003594/0.1046, allocations: 198.7 kB / 423.5 MB, free: 6.695 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 3.647e-06/0.1047, allocations: 3.984 kB / 423.5 MB, free: 6.691 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007774/0.1054, allocations: 464.1 kB / 423.9 MB, free: 6.207 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001104/0.1055, allocations: 170.2 kB / 424.1 MB, free: 6.004 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006657/0.1062, allocations: 0.5169 MB / 424.6 MB, free: 5.473 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.385e-05/0.1062, allocations: 29.7 kB / 424.6 MB, free: 5.438 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.091e-05/0.1063, allocations: 105.1 kB / 424.7 MB, free: 5.332 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.055e-05/0.1063, allocations: 27.81 kB / 424.8 MB, free: 5.305 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001121/0.1065, allocations: 81.48 kB / 424.9 MB, free: 5.219 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001387/0.1066, allocations: 326.8 kB / 425.2 MB, free: 4.891 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001263/0.1067, allocations: 55.97 kB / 425.2 MB, free: 4.836 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001331/0.1069, allocations: 69.69 kB / 425.3 MB, free: 4.762 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003474/0.1072, allocations: 350.4 kB / 425.6 MB, free: 4.367 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.1072, allocations: 0 / 425.6 MB, free: 4.367 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005431/0.1078, allocations: 372.3 kB / 426 MB, free: 3.973 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001094/0.1079, allocations: 129.3 kB / 426.1 MB, free: 3.824 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.1079, allocations: 0 / 426.1 MB, free: 3.824 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.957e-05/0.1079, allocations: 4 kB / 426.1 MB, free: 3.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.973e-05/0.1079, allocations: 0 / 426.1 MB, free: 3.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.099e-06/0.1079, allocations: 0 / 426.1 MB, free: 3.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000138/0.108, allocations: 20.11 kB / 426.1 MB, free: 3.801 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.549e-05/0.1081, allocations: 40 kB / 426.2 MB, free: 3.762 MB / 350.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.0003756/0.1085, allocations: 370.2 kB / 426.5 MB, free: 3.367 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.4e-05/0.1085, allocations: 43.7 kB / 426.6 MB, free: 3.324 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001081/0.1086, allocations: 67.25 kB / 426.7 MB, free: 3.258 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.712e-06/0.1086, allocations: 11.92 kB / 426.7 MB, free: 3.246 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.217e-06/0.1087, allocations: 0 / 426.7 MB, free: 3.246 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.494e-06/0.1087, allocations: 0 / 426.7 MB, free: 3.246 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001015/0.1097, allocations: 0.7939 MB / 427.5 MB, free: 2.371 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.1097, allocations: 4 kB / 427.5 MB, free: 2.367 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.342e-06/0.1097, allocations: 4 kB / 427.5 MB, free: 2.363 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.1097, allocations: 0 / 427.5 MB, free: 2.363 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.626e-05/0.1097, allocations: 12 kB / 427.5 MB, free: 2.352 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.794e-06/0.1097, allocations: 0 / 427.5 MB, free: 2.352 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.1097, allocations: 3.938 kB / 427.5 MB, free: 2.348 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006879/0.1104, allocations: 0.5368 MB / 428 MB, free: 1.773 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003682/0.1108, allocations: 240.6 kB / 428.3 MB, free: 1.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.946e-05/0.1108, allocations: 12 kB / 428.3 MB, free: 1.508 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001337/0.111, allocations: 15.98 kB / 428.3 MB, free: 1.492 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001125/0.1111, allocations: 31.91 kB / 428.3 MB, free: 1.461 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.728e-05/0.1111, allocations: 36 kB / 428.4 MB, free: 1.426 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004892/0.1116, allocations: 386.9 kB / 428.7 MB, free: 1.051 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1116, allocations: 0 / 428.7 MB, free: 1.051 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002861/0.1119, allocations: 47.98 kB / 428.8 MB, free: 1.004 MB / 350.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.001032/0.1129, allocations: 1.082 MB / 429.9 MB, free: 15.87 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000492/0.1134, allocations: 377.7 kB / 430.2 MB, free: 15.45 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1134, allocations: 0 / 430.2 MB, free: 15.45 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003082/0.1137, allocations: 305.5 kB / 430.5 MB, free: 15.11 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006223/0.1144, allocations: 128.1 kB / 430.6 MB, free: 14.99 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003547/0.1179, allocations: 2.755 MB / 433.4 MB, free: 12.12 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000496/0.1184, allocations: 0.8022 MB / 434.2 MB, free: 11.29 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.796e-05/0.1184, allocations: 16.58 kB / 434.2 MB, free: 11.27 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.894e-05/0.1185, allocations: 23.44 kB / 434.2 MB, free: 11.25 MB / 366.1 MB Notification: Performance of SimCode: time 3.9e-07/0.1185, allocations: 0 / 434.2 MB, free: 11.25 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03768/0.1562, allocations: 5.796 MB / 440 MB, free: 5.559 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.901/8.057, allocations: 3.938 kB / 440 MB, free: 5.555 MB / 366.1 MB " [Timeout remaining time 652] (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 --stepSize=0.0023933 --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) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/BUF3S/BUF3S.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 10.538039004895836]