Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Digital_Examples_BUF3S",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.BUF3S,fileNamePrefix="Modelica_3_2_3_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.001474/0.001474, allocations: 105.3 kB / 17.58 MB, free: 5.559 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.001653/0.001653, allocations: 192 kB / 18.51 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.397/1.397, allocations: 205.1 MB / 224.4 MB, free: 12.3 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001305, allocations: 55.91 kB / 280.7 MB, free: 3.07 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08771/0.08902, allocations: 46.63 MB / 327.4 MB, free: 4.375 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.BUF3S): time 0.003228/0.09229, allocations: 1.517 MB / 328.9 MB, free: 2.84 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002256/0.09459, allocations: 0.8896 MB / 329.8 MB, free: 1.941 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001039/0.09471, allocations: 4 kB / 329.8 MB, free: 1.938 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001081/0.09485, allocations: 11.86 kB / 329.8 MB, free: 1.926 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001144/0.09498, allocations: 19.86 kB / 329.8 MB, free: 1.906 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003214/0.09531, allocations: 55.88 kB / 329.9 MB, free: 1.852 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002248/0.09554, allocations: 139.7 kB / 330 MB, free: 1.715 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001215/0.09567, allocations: 27.98 kB / 330 MB, free: 1.688 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004378/0.09612, allocations: 371.3 kB / 330.4 MB, free: 1.324 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001268/0.09626, allocations: 71.7 kB / 330.5 MB, free: 1.254 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.624e-05/0.09631, allocations: 8 kB / 330.5 MB, free: 1.246 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.625e-05/0.09635, allocations: 8 kB / 330.5 MB, free: 1.238 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 9.277e-05/0.09645, allocations: 63.77 kB / 330.5 MB, free: 1.176 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001211/0.09658, allocations: 111.2 kB / 330.7 MB, free: 1.066 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003372/0.09692, allocations: 354.7 kB / 331 MB, free: 0.7188 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.09694, allocations: 0 / 331 MB, free: 0.7188 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.09695, allocations: 0 / 331 MB, free: 0.7188 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.441e-05/0.09697, allocations: 0 / 331 MB, free: 0.7188 MB / 270.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.0008788/0.09785, allocations: 0.7231 MB / 331.7 MB, free: 15.92 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.557e-05/0.09791, allocations: 12.03 kB / 331.7 MB, free: 15.91 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.207e-05/0.09797, allocations: 46.73 kB / 331.8 MB, free: 15.85 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.272e-05/0.09807, allocations: 40.47 kB / 331.8 MB, free: 15.81 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003454/0.09843, allocations: 270.3 kB / 332.1 MB, free: 15.51 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.276e-05/0.09846, allocations: 8.375 kB / 332.1 MB, free: 15.5 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.198e-05/0.0985, allocations: 8.375 kB / 332.1 MB, free: 15.49 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000338/0.09884, allocations: 121.7 kB / 332.2 MB, free: 15.37 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.267e-06/0.09886, allocations: 0 / 332.2 MB, free: 15.37 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.726e-05/0.09889, allocations: 4 kB / 332.2 MB, free: 15.36 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.09891, allocations: 3.938 kB / 332.2 MB, free: 15.36 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001627/0.09908, allocations: 63.95 kB / 332.3 MB, free: 15.3 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007238/0.09981, allocations: 464.5 kB / 332.7 MB, free: 14.79 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001977/0.1, allocations: 98.47 kB / 332.8 MB, free: 14.69 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001536/0.1002, allocations: 80.89 kB / 332.9 MB, free: 14.61 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.251e-05/0.1002, allocations: 8 kB / 332.9 MB, free: 14.6 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003735/0.1006, allocations: 198.6 kB / 333.1 MB, free: 14.38 MB / 286.1 MB Notification: Performance of pre-optimization done (n=13): time 1.613e-06/0.1006, allocations: 0 / 333.1 MB, free: 14.38 MB / 286.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008141/0.1014, allocations: 464 kB / 333.6 MB, free: 13.89 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.566e-05/0.1015, allocations: 166.2 kB / 333.7 MB, free: 13.7 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006704/0.1022, allocations: 0.5168 MB / 334.3 MB, free: 13.17 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.223e-05/0.1022, allocations: 29.7 kB / 334.3 MB, free: 13.14 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.611e-05/0.1023, allocations: 102 kB / 334.4 MB, free: 13.04 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.825e-05/0.1024, allocations: 31.69 kB / 334.4 MB, free: 13 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001146/0.1025, allocations: 85.36 kB / 334.5 MB, free: 12.91 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001012/0.1026, allocations: 326.8 kB / 334.8 MB, free: 12.59 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001307/0.1027, allocations: 51.97 kB / 334.9 MB, free: 12.54 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001328/0.1029, allocations: 77.62 kB / 334.9 MB, free: 12.45 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003487/0.1032, allocations: 351.8 kB / 335.3 MB, free: 12.05 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.1033, allocations: 0 / 335.3 MB, free: 12.05 MB / 286.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005038/0.1038, allocations: 376.2 kB / 335.7 MB, free: 11.66 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.03e-05/0.1039, allocations: 122.8 kB / 335.8 MB, free: 11.51 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.1039, allocations: 0 / 335.8 MB, free: 11.51 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.409e-05/0.1039, allocations: 0 / 335.8 MB, free: 11.51 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.169e-05/0.1039, allocations: 7.984 kB / 335.8 MB, free: 11.5 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.861e-06/0.1039, allocations: 0 / 335.8 MB, free: 11.5 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001548/0.1041, allocations: 8 kB / 335.8 MB, free: 11.5 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.361e-05/0.1042, allocations: 48.02 kB / 335.8 MB, free: 11.45 MB / 286.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.0003341/0.1045, allocations: 366.2 kB / 336.2 MB, free: 11.05 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.305e-05/0.1046, allocations: 35.62 kB / 336.2 MB, free: 11.02 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.679e-05/0.1047, allocations: 63.14 kB / 336.3 MB, free: 10.95 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.1047, allocations: 0 / 336.3 MB, free: 10.95 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.718e-06/0.1047, allocations: 0 / 336.3 MB, free: 10.95 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.1047, allocations: 4 kB / 336.3 MB, free: 10.95 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009284/0.1056, allocations: 0.8056 MB / 337.1 MB, free: 10.06 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.449e-06/0.1056, allocations: 8.062 kB / 337.1 MB, free: 10.05 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.628e-06/0.1056, allocations: 0 / 337.1 MB, free: 10.05 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.1057, allocations: 0 / 337.1 MB, free: 10.05 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.602e-05/0.1057, allocations: 15.98 kB / 337.1 MB, free: 10.04 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.285e-06/0.1057, allocations: 0 / 337.1 MB, free: 10.04 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.1057, allocations: 3.938 kB / 337.1 MB, free: 10.04 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000608/0.1063, allocations: 0.5252 MB / 337.6 MB, free: 9.469 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002866/0.1066, allocations: 260.2 kB / 337.9 MB, free: 9.195 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.797e-05/0.1067, allocations: 12 kB / 337.9 MB, free: 9.184 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001349/0.1068, allocations: 12 kB / 337.9 MB, free: 9.172 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.296e-05/0.1069, allocations: 23.91 kB / 338 MB, free: 9.148 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.919e-05/0.107, allocations: 47.92 kB / 338 MB, free: 9.102 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0004462/0.1074, allocations: 382.9 kB / 338.4 MB, free: 8.727 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1074, allocations: 0 / 338.4 MB, free: 8.727 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002929/0.1077, allocations: 44 kB / 338.4 MB, free: 8.684 MB / 286.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.0008982/0.1086, allocations: 1.074 MB / 339.5 MB, free: 7.559 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004741/0.1091, allocations: 441.5 kB / 339.9 MB, free: 7.078 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.1091, allocations: 0 / 339.9 MB, free: 7.078 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003327/0.1095, allocations: 373.6 kB / 340.3 MB, free: 6.664 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009453/0.1104, allocations: 125.7 kB / 340.4 MB, free: 6.543 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004281/0.1147, allocations: 2.729 MB / 343.1 MB, free: 3.699 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003731/0.1151, allocations: 0.8019 MB / 343.9 MB, free: 2.867 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 6.172e-05/0.1152, allocations: 8.656 kB / 343.9 MB, free: 2.859 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.968e-05/0.1153, allocations: 35.42 kB / 344 MB, free: 2.824 MB / 286.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1153, allocations: 0 / 344 MB, free: 2.824 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0219/0.1372, allocations: 5.745 MB / 349.7 MB, free: 13.02 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.442/8.579, allocations: 11.94 kB / 349.7 MB, free: 13.01 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_BUF3S_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_BUF3S.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/BUF3S/BUF3S.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches