Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.BUF3S.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.BUF3S,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_BUF3S",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.BUF3S,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_BUF3S",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000875/0.000875, allocations: 175.5 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.283/1.283, allocations: 205.4 MB / 222.9 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007875/0.0007878, allocations: 93.34 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002978/0.0002978, allocations: 16 kB / 327.6 MB, free: 15.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2203/0.2207, allocations: 47.58 MB / 375.2 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.BUF3S): time 0.001451/0.2222, allocations: 1.201 MB / 376.4 MB, free: 44.47 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001456/0.2236, allocations: 0.8537 MB / 377.2 MB, free: 43.84 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.294e-05/0.2237, allocations: 1.062 kB / 377.2 MB, free: 43.84 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 7.516e-05/0.2238, allocations: 8.797 kB / 377.3 MB, free: 43.83 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.174e-05/0.2239, allocations: 15.06 kB / 377.3 MB, free: 43.82 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002232/0.2241, allocations: 35.97 kB / 377.3 MB, free: 43.79 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001241/0.2242, allocations: 106.9 kB / 377.4 MB, free: 43.73 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.894e-05/0.2243, allocations: 20.88 kB / 377.4 MB, free: 43.71 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000427/0.2248, allocations: 342.7 kB / 377.8 MB, free: 43.58 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001083/0.2249, allocations: 68.42 kB / 377.8 MB, free: 43.55 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.66e-05/0.2249, allocations: 4.219 kB / 377.8 MB, free: 43.55 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.76e-05/0.225, allocations: 2.969 kB / 377.8 MB, free: 43.55 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.262e-05/0.225, allocations: 64.67 kB / 377.9 MB, free: 43.52 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000114/0.2252, allocations: 128.3 kB / 378 MB, free: 43.42 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002168/0.2254, allocations: 273 kB / 378.3 MB, free: 43.22 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.2254, allocations: 5.031 kB / 378.3 MB, free: 43.21 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.2254, allocations: 3.938 kB / 378.3 MB, free: 43.21 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5e-06/0.2254, allocations: 4 kB / 378.3 MB, free: 43.21 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.0005412/0.226, allocations: 0.6582 MB / 379 MB, free: 42.54 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.459e-05/0.226, allocations: 9.938 kB / 379 MB, free: 42.54 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.36e-05/0.2261, allocations: 42.58 kB / 379 MB, free: 42.5 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.849e-05/0.2261, allocations: 35.44 kB / 379.1 MB, free: 42.48 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002239/0.2264, allocations: 276.9 kB / 379.3 MB, free: 42.2 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.3e-05/0.2264, allocations: 5.219 kB / 379.3 MB, free: 42.2 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.583e-05/0.2264, allocations: 11.17 kB / 379.3 MB, free: 42.2 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002873/0.2267, allocations: 123.3 kB / 379.5 MB, free: 42.12 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.2267, allocations: 4 kB / 379.5 MB, free: 42.12 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.438e-05/0.2268, allocations: 7.312 kB / 379.5 MB, free: 42.11 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.059e-06/0.2268, allocations: 1.188 kB / 379.5 MB, free: 42.11 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001352/0.2269, allocations: 56.36 kB / 379.5 MB, free: 42.09 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005274/0.2274, allocations: 464.3 kB / 380 MB, free: 41.67 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000168/0.2276, allocations: 93.92 kB / 380.1 MB, free: 41.61 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001432/0.2278, allocations: 83.73 kB / 380.2 MB, free: 41.56 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.432e-06/0.2278, allocations: 1.375 kB / 380.2 MB, free: 41.56 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002991/0.2281, allocations: 202.7 kB / 380.4 MB, free: 41.39 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 1.483e-06/0.2281, allocations: 0 / 380.4 MB, free: 41.39 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.0008464/0.229, allocations: 462.9 kB / 380.8 MB, free: 41.11 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.36e-05/0.229, allocations: 172.4 kB / 381 MB, free: 40.91 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006306/0.2297, allocations: 0.5181 MB / 381.5 MB, free: 40.56 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.515e-05/0.2297, allocations: 30.27 kB / 381.5 MB, free: 40.53 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.751e-05/0.2298, allocations: 100.8 kB / 381.6 MB, free: 40.43 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.511e-05/0.2298, allocations: 29.86 kB / 381.6 MB, free: 40.41 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.56e-05/0.2298, allocations: 3.812 kB / 381.7 MB, free: 40.41 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.597e-05/0.2299, allocations: 330.2 kB / 382 MB, free: 40.08 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001263/0.23, allocations: 57.66 kB / 382 MB, free: 40.05 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001226/0.2302, allocations: 74.19 kB / 382.1 MB, free: 40 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002629/0.2304, allocations: 341.8 kB / 382.4 MB, free: 39.68 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.2304, allocations: 1.406 kB / 382.4 MB, free: 39.68 MB / 298.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004458/0.2309, allocations: 373.4 kB / 382.8 MB, free: 39.43 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.299e-05/0.2309, allocations: 121.8 kB / 382.9 MB, free: 39.3 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.598e-06/0.231, allocations: 4 kB / 382.9 MB, free: 39.3 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.227e-05/0.231, allocations: 1.094 kB / 382.9 MB, free: 39.3 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.914e-05/0.231, allocations: 5.234 kB / 382.9 MB, free: 39.29 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.919e-06/0.231, allocations: 5.75 kB / 382.9 MB, free: 39.29 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001567/0.2312, allocations: 18.12 kB / 383 MB, free: 39.28 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.46e-05/0.2312, allocations: 45.22 kB / 383 MB, free: 39.27 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,$whenCondition1,$whenCondition2,e_table.y,x_table.y,bUF3S.nextstate,bUF3S.yy,$PRE.bUF3S.inertialDelaySensitive.x,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: 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002678/0.2315, allocations: 361.2 kB / 383.4 MB, free: 38.95 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.438e-05/0.2316, allocations: 35.12 kB / 383.4 MB, free: 38.94 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.254e-05/0.2317, allocations: 68.25 kB / 383.5 MB, free: 38.89 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/0.2317, allocations: 0.9688 kB / 383.5 MB, free: 38.89 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.2317, allocations: 0 / 383.5 MB, free: 38.89 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.2317, allocations: 5.25 kB / 383.5 MB, free: 38.89 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008246/0.2325, allocations: 0.8099 MB / 384.3 MB, free: 38.22 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.2325, allocations: 1.188 kB / 384.3 MB, free: 38.22 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.14e-06/0.2326, allocations: 3.938 kB / 384.3 MB, free: 38.22 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.2326, allocations: 1 kB / 384.3 MB, free: 38.22 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.732e-05/0.2326, allocations: 12.39 kB / 384.3 MB, free: 38.21 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.2326, allocations: 0.875 kB / 384.3 MB, free: 38.21 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.2326, allocations: 5 kB / 384.3 MB, free: 38.21 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005411/0.2332, allocations: 0.5194 MB / 384.8 MB, free: 37.83 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002408/0.2334, allocations: 240.4 kB / 385 MB, free: 37.62 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.133e-05/0.2335, allocations: 11.66 kB / 385.1 MB, free: 37.62 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001385/0.2336, allocations: 13.38 kB / 385.1 MB, free: 37.61 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.335e-05/0.2337, allocations: 29.62 kB / 385.1 MB, free: 37.59 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.356e-05/0.2338, allocations: 45.08 kB / 385.1 MB, free: 37.59 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004175/0.2342, allocations: 386.5 kB / 385.5 MB, free: 37.34 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2342, allocations: 4 kB / 385.5 MB, free: 37.34 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002711/0.2345, allocations: 46.06 kB / 385.6 MB, free: 37.33 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007772/0.2353, allocations: 1.079 MB / 386.6 MB, free: 36.41 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004217/0.2357, allocations: 434.8 kB / 387.1 MB, free: 36.05 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.2357, allocations: 1.219 kB / 387.1 MB, free: 36.05 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002422/0.236, allocations: 383.8 kB / 387.4 MB, free: 35.68 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005638/0.2365, allocations: 116.6 kB / 387.6 MB, free: 35.57 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001886/0.2384, allocations: 1.601 MB / 389.2 MB, free: 33.91 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002489/0.2387, allocations: 0.8031 MB / 390 MB, free: 33.09 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.142e-05/0.2387, allocations: 31.42 kB / 390 MB, free: 33.05 MB / 298.7 MB Notification: Performance of SimCode: time 2.41e-07/0.2387, allocations: 0 / 390 MB, free: 33.05 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.632/3.871, allocations: 2.283 MB / 392.3 MB, free: 30.77 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.BUF3S.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.BUF3S.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.BUF3S_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_BUF3S_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_BUF3S.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.BUF3S.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.BUF3S.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches