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.001181/0.001181, allocations: 99.02 kB / 17.58 MB, free: 5.418 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.001303/0.001304, allocations: 192 kB / 18.51 MB, free: 4.508 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.434/1.434, allocations: 205.1 MB / 224.4 MB, free: 12.32 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.001341/0.001341, allocations: 55.92 kB / 280.7 MB, free: 3.082 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08973/0.09109, allocations: 46.63 MB / 327.4 MB, free: 4.379 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.BUF3S): time 0.002946/0.09408, allocations: 1.497 MB / 328.9 MB, free: 2.863 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00189/0.096, allocations: 0.8975 MB / 329.8 MB, free: 1.957 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.199e-05/0.09609, allocations: 3.938 kB / 329.8 MB, free: 1.953 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 9.191e-05/0.09621, allocations: 3.938 kB / 329.8 MB, free: 1.949 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001076/0.09633, allocations: 19.84 kB / 329.8 MB, free: 1.93 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002573/0.09659, allocations: 51.89 kB / 329.9 MB, free: 1.879 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001976/0.0968, allocations: 151.6 kB / 330 MB, free: 1.73 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001059/0.09692, allocations: 23.98 kB / 330 MB, free: 1.707 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004172/0.09734, allocations: 375.3 kB / 330.4 MB, free: 1.34 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001287/0.09748, allocations: 63.7 kB / 330.5 MB, free: 1.277 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.741e-05/0.09753, allocations: 8 kB / 330.5 MB, free: 1.27 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.641e-05/0.09758, allocations: 12 kB / 330.5 MB, free: 1.258 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.99e-05/0.09767, allocations: 63.7 kB / 330.5 MB, free: 1.195 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001167/0.0978, allocations: 115.2 kB / 330.7 MB, free: 1.082 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003112/0.09812, allocations: 350.8 kB / 331 MB, free: 0.7383 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.09813, allocations: 4 kB / 331 MB, free: 0.7344 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.915e-06/0.09814, allocations: 4 kB / 331 MB, free: 0.7305 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.897e-06/0.09815, allocations: 0 / 331 MB, free: 0.7305 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.0007512/0.09891, allocations: 0.727 MB / 331.7 MB, free: 15.93 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.873e-05/0.09895, allocations: 12.03 kB / 331.7 MB, free: 15.91 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.338e-05/0.099, allocations: 34.75 kB / 331.8 MB, free: 15.87 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.554e-05/0.09909, allocations: 44.47 kB / 331.8 MB, free: 15.83 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002663/0.09936, allocations: 270.3 kB / 332.1 MB, free: 15.52 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.918e-05/0.09939, allocations: 8.375 kB / 332.1 MB, free: 15.52 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.802e-05/0.09942, allocations: 12.38 kB / 332.1 MB, free: 15.5 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003123/0.09974, allocations: 129.7 kB / 332.2 MB, free: 15.37 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/0.09976, allocations: 0 / 332.2 MB, free: 15.37 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.561e-05/0.0998, allocations: 4 kB / 332.2 MB, free: 15.37 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.189e-06/0.09981, allocations: 0 / 332.2 MB, free: 15.37 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001509/0.09996, allocations: 55.97 kB / 332.3 MB, free: 15.31 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006557/0.1006, allocations: 472.5 kB / 332.7 MB, free: 14.8 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001884/0.1008, allocations: 90.55 kB / 332.8 MB, free: 14.7 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001509/0.101, allocations: 84.89 kB / 332.9 MB, free: 14.62 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.062e-05/0.101, allocations: 0 / 332.9 MB, free: 14.62 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003627/0.1014, allocations: 206.5 kB / 333.1 MB, free: 14.39 MB / 286.1 MB Notification: Performance of pre-optimization done (n=13): time 1.613e-06/0.1014, allocations: 0 / 333.1 MB, free: 14.39 MB / 286.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007648/0.1022, allocations: 464.5 kB / 333.6 MB, free: 13.91 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000105/0.1023, allocations: 174.1 kB / 333.7 MB, free: 13.7 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006448/0.1029, allocations: 0.5129 MB / 334.3 MB, free: 13.18 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.005e-05/0.103, allocations: 33.7 kB / 334.3 MB, free: 13.14 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.461e-05/0.103, allocations: 97.97 kB / 334.4 MB, free: 13.04 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.789e-05/0.1031, allocations: 27.66 kB / 334.4 MB, free: 13.02 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001059/0.1032, allocations: 73.42 kB / 334.5 MB, free: 12.94 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001098/0.1033, allocations: 330.8 kB / 334.8 MB, free: 12.61 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001297/0.1035, allocations: 59.97 kB / 334.9 MB, free: 12.55 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001282/0.1036, allocations: 73.67 kB / 334.9 MB, free: 12.47 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003197/0.1039, allocations: 343.4 kB / 335.3 MB, free: 12.08 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.1039, allocations: 3.938 kB / 335.3 MB, free: 12.07 MB / 286.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005295/0.1045, allocations: 380.2 kB / 335.6 MB, free: 11.67 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.891e-05/0.1046, allocations: 122.8 kB / 335.8 MB, free: 11.53 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.1046, allocations: 4 kB / 335.8 MB, free: 11.52 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.23e-05/0.1046, allocations: 4.031 kB / 335.8 MB, free: 11.52 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.793e-05/0.1046, allocations: 0 / 335.8 MB, free: 11.52 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.314e-06/0.1046, allocations: 0 / 335.8 MB, free: 11.52 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001328/0.1048, allocations: 19.92 kB / 335.8 MB, free: 11.5 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.104e-05/0.1048, allocations: 36 kB / 335.8 MB, free: 11.46 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.0003296/0.1052, allocations: 362.2 kB / 336.2 MB, free: 11.07 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.183e-05/0.1052, allocations: 35.62 kB / 336.2 MB, free: 11.04 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001053/0.1053, allocations: 67.16 kB / 336.3 MB, free: 10.97 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.1053, allocations: 4 kB / 336.3 MB, free: 10.96 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.1054, allocations: 0 / 336.3 MB, free: 10.96 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.484e-06/0.1054, allocations: 0 / 336.3 MB, free: 10.96 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009199/0.1063, allocations: 0.8133 MB / 337.1 MB, free: 10.07 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-06/0.1063, allocations: 0 / 337.1 MB, free: 10.07 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.993e-06/0.1063, allocations: 3.938 kB / 337.1 MB, free: 10.07 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.038e-06/0.1063, allocations: 3.984 kB / 337.1 MB, free: 10.06 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.293e-05/0.1063, allocations: 8 kB / 337.1 MB, free: 10.05 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.1064, allocations: 192 / 337.1 MB, free: 10.05 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.1064, allocations: 7.938 kB / 337.1 MB, free: 10.05 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006105/0.107, allocations: 0.5253 MB / 337.7 MB, free: 9.48 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002837/0.1073, allocations: 248.3 kB / 337.9 MB, free: 9.219 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.779e-05/0.1073, allocations: 12 kB / 337.9 MB, free: 9.207 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001346/0.1075, allocations: 11.98 kB / 337.9 MB, free: 9.195 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.205e-05/0.1076, allocations: 27.92 kB / 337.9 MB, free: 9.168 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.838e-05/0.1076, allocations: 47.92 kB / 338 MB, free: 9.121 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0004326/0.1081, allocations: 390.9 kB / 338.4 MB, free: 8.738 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1081, allocations: 0 / 338.4 MB, free: 8.738 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003047/0.1084, allocations: 40 kB / 338.4 MB, free: 8.699 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.0008989/0.1093, allocations: 1.085 MB / 339.5 MB, free: 7.562 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.000493/0.1098, allocations: 437.5 kB / 339.9 MB, free: 7.086 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.1098, allocations: 4.062 kB / 339.9 MB, free: 7.082 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002971/0.1101, allocations: 373.6 kB / 340.3 MB, free: 6.668 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006187/0.1108, allocations: 121.9 kB / 340.4 MB, free: 6.551 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003302/0.1141, allocations: 2.725 MB / 343.1 MB, free: 3.711 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004144/0.1145, allocations: 0.8058 MB / 343.9 MB, free: 2.875 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 5.893e-05/0.1146, allocations: 8.656 kB / 344 MB, free: 2.867 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.938e-05/0.1146, allocations: 31.42 kB / 344 MB, free: 2.836 MB / 286.1 MB Notification: Performance of SimCode: time 1.102e-06/0.1146, allocations: 4 kB / 344 MB, free: 2.832 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02485/0.1395, allocations: 5.738 MB / 349.7 MB, free: 13.04 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.548/7.688, allocations: 3.938 kB / 349.7 MB, free: 13.03 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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S_res.csv --start-time 0 --stop-time 12 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0048 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.csv","/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