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.001399/0.001399, allocations: 105.9 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.001605/0.001605, allocations: 216.5 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.308/1.308, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001129/0.001129, allocations: 63.83 kB / 307.1 MB, free: 0.5742 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08164/0.08279, allocations: 50.52 MB / 357.6 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.BUF3S): time 0.002911/0.08573, allocations: 1.532 MB / 359.1 MB, free: 12.5 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001959/0.08771, allocations: 0.8903 MB / 360 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.948e-05/0.08783, allocations: 4 kB / 360 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 9.744e-05/0.08796, allocations: 7.875 kB / 360 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 9.626e-05/0.08806, allocations: 19.84 kB / 360 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002738/0.08834, allocations: 43.89 kB / 360.1 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002452/0.0886, allocations: 151.7 kB / 360.2 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001194/0.08872, allocations: 15.98 kB / 360.2 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004529/0.08918, allocations: 379.3 kB / 360.6 MB, free: 11 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001306/0.08932, allocations: 59.77 kB / 360.7 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.919e-05/0.08938, allocations: 12 kB / 360.7 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.353e-05/0.08942, allocations: 11.94 kB / 360.7 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.537e-05/0.08952, allocations: 67.75 kB / 360.8 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001454/0.08967, allocations: 111.2 kB / 360.9 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003479/0.09003, allocations: 354.8 kB / 361.2 MB, free: 10.39 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.09004, allocations: 0 / 361.2 MB, free: 10.39 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.09005, allocations: 0 / 361.2 MB, free: 10.39 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.101e-05/0.09007, allocations: 0 / 361.2 MB, free: 10.39 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.0008487/0.09092, allocations: 0.7152 MB / 361.9 MB, free: 9.605 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.708e-05/0.09098, allocations: 11.97 kB / 361.9 MB, free: 9.594 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.196e-05/0.09103, allocations: 42.69 kB / 362 MB, free: 9.543 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.541e-05/0.09112, allocations: 40.47 kB / 362 MB, free: 9.504 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000302/0.09143, allocations: 274.3 kB / 362.3 MB, free: 9.195 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.218e-05/0.09146, allocations: 8.375 kB / 362.3 MB, free: 9.188 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.115e-05/0.0915, allocations: 12.38 kB / 362.3 MB, free: 9.176 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003264/0.09183, allocations: 133.7 kB / 362.4 MB, free: 9.039 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.215e-06/0.09185, allocations: 0 / 362.4 MB, free: 9.039 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.291e-05/0.09188, allocations: 4 kB / 362.4 MB, free: 9.035 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.538e-06/0.09189, allocations: 0 / 362.4 MB, free: 9.035 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001392/0.09203, allocations: 59.91 kB / 362.5 MB, free: 8.977 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006325/0.09268, allocations: 460.6 kB / 362.9 MB, free: 8.477 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001822/0.09287, allocations: 98.48 kB / 363 MB, free: 8.371 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00015/0.09303, allocations: 80.89 kB / 363.1 MB, free: 8.289 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.005e-05/0.09305, allocations: 0 / 363.1 MB, free: 8.289 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003392/0.09339, allocations: 206.7 kB / 363.3 MB, free: 8.062 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.753e-06/0.09341, allocations: 4 kB / 363.3 MB, free: 8.059 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007837/0.0942, allocations: 463.9 kB / 363.8 MB, free: 7.574 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.582e-05/0.0943, allocations: 166.2 kB / 363.9 MB, free: 7.375 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006705/0.09498, allocations: 0.5168 MB / 364.5 MB, free: 6.848 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.199e-05/0.09502, allocations: 33.7 kB / 364.5 MB, free: 6.809 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.994e-05/0.0951, allocations: 97.12 kB / 364.6 MB, free: 6.711 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.175e-05/0.09515, allocations: 31.59 kB / 364.6 MB, free: 6.68 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001334/0.09529, allocations: 85.31 kB / 364.7 MB, free: 6.59 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001236/0.09542, allocations: 326.8 kB / 365 MB, free: 6.262 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001308/0.09557, allocations: 59.97 kB / 365.1 MB, free: 6.203 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001344/0.09571, allocations: 69.69 kB / 365.1 MB, free: 6.129 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003566/0.09607, allocations: 342.6 kB / 365.5 MB, free: 5.742 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.09609, allocations: 0 / 365.5 MB, free: 5.742 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005347/0.09663, allocations: 376.3 kB / 365.9 MB, free: 5.344 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.046e-05/0.09673, allocations: 130.8 kB / 366 MB, free: 5.191 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.162e-06/0.09674, allocations: 4.031 kB / 366 MB, free: 5.188 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.384e-05/0.09676, allocations: 112 / 366 MB, free: 5.188 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.73e-05/0.09678, allocations: 3.938 kB / 366 MB, free: 5.184 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.99e-06/0.09679, allocations: 4 kB / 366 MB, free: 5.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001314/0.09693, allocations: 11.98 kB / 366 MB, free: 5.168 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.997e-05/0.09699, allocations: 36 kB / 366 MB, free: 5.133 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.0003225/0.09732, allocations: 370.2 kB / 366.4 MB, free: 4.734 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.103e-05/0.09737, allocations: 39.53 kB / 366.4 MB, free: 4.695 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.862e-05/0.09748, allocations: 71.14 kB / 366.5 MB, free: 4.617 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.09749, allocations: 0 / 366.5 MB, free: 4.617 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.838e-06/0.0975, allocations: 0 / 366.5 MB, free: 4.617 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.09751, allocations: 3.984 kB / 366.5 MB, free: 4.613 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008875/0.0984, allocations: 0.8055 MB / 367.3 MB, free: 3.727 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.09841, allocations: 0 / 367.3 MB, free: 3.727 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.745e-06/0.09843, allocations: 4.172 kB / 367.3 MB, free: 3.723 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.09843, allocations: 0 / 367.3 MB, free: 3.723 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.735e-05/0.09847, allocations: 16 kB / 367.3 MB, free: 3.707 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.09847, allocations: 0 / 367.3 MB, free: 3.707 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.09848, allocations: 7.938 kB / 367.3 MB, free: 3.699 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006286/0.09912, allocations: 0.5251 MB / 367.9 MB, free: 3.133 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002915/0.09942, allocations: 240.5 kB / 368.1 MB, free: 2.879 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.572e-05/0.09948, allocations: 8 kB / 368.1 MB, free: 2.871 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001334/0.09962, allocations: 11.98 kB / 368.1 MB, free: 2.859 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001276/0.09976, allocations: 31.91 kB / 368.2 MB, free: 2.828 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.924e-05/0.09982, allocations: 43.92 kB / 368.2 MB, free: 2.785 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004745/0.1003, allocations: 390.9 kB / 368.6 MB, free: 2.406 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1003, allocations: 0 / 368.6 MB, free: 2.406 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002961/0.1006, allocations: 47.94 kB / 368.6 MB, free: 2.359 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.000983/0.1016, allocations: 1.073 MB / 369.7 MB, free: 1.238 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005179/0.1021, allocations: 437.5 kB / 370.1 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1021, allocations: 0 / 370.1 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003082/0.1025, allocations: 385.5 kB / 370.5 MB, free: 344 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006084/0.1031, allocations: 130.4 kB / 370.6 MB, free: 224 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1514/0.2545, allocations: 2.728 MB / 373.4 MB, free: 19.12 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002922/0.2549, allocations: 0.7999 MB / 374.2 MB, free: 18.4 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.968e-05/0.2549, allocations: 9.312 kB / 374.2 MB, free: 18.4 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.466e-05/0.255, allocations: 30.48 kB / 374.2 MB, free: 18.39 MB / 302.1 MB Notification: Performance of SimCode: time 5.92e-07/0.255, allocations: 0 / 374.2 MB, free: 18.39 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1438/0.3988, allocations: 5.75 MB / 379.9 MB, free: 17.72 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.19/8.589, allocations: 4.75 kB / 380 MB, free: 17.72 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_BUF3S_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 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.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_trunk_Modelica.Electrical.Digital.Examples.BUF3S.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches