Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.BUF3S.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.BUF3S,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Digital_Examples_BUF3S",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.BUF3S,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001255/0.001255, allocations: 202.9 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.224/1.224, allocations: 226.5 MB / 244.7 MB, free: 6.516 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007333/0.0007332, allocations: 99.59 kB / 296.7 MB, free: 6.676 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001985/0.0001986, allocations: 8 kB / 356.8 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1841/0.1843, allocations: 51.28 MB / 408.1 MB, free: 27.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.BUF3S): time 0.001139/0.1855, allocations: 1.221 MB / 409.3 MB, free: 26.43 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00131/0.1868, allocations: 0.8342 MB / 410.2 MB, free: 25.6 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.759e-05/0.1869, allocations: 4 kB / 410.2 MB, free: 25.59 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 7.349e-05/0.187, allocations: 7.922 kB / 410.2 MB, free: 25.59 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.318e-05/0.187, allocations: 11.92 kB / 410.2 MB, free: 25.57 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002072/0.1872, allocations: 35.97 kB / 410.2 MB, free: 25.54 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001059/0.1874, allocations: 107.7 kB / 410.3 MB, free: 25.43 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.203e-05/0.1875, allocations: 26.02 kB / 410.4 MB, free: 25.41 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003082/0.1878, allocations: 339.3 kB / 410.7 MB, free: 25.08 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.413e-05/0.1879, allocations: 72.86 kB / 410.8 MB, free: 25.01 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.644e-05/0.1879, allocations: 0 / 410.8 MB, free: 25.01 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.429e-05/0.1879, allocations: 4 kB / 410.8 MB, free: 25 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.16e-05/0.188, allocations: 72.5 kB / 410.8 MB, free: 24.93 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.93e-05/0.1881, allocations: 125 kB / 411 MB, free: 24.8 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001636/0.1883, allocations: 280.8 kB / 411.2 MB, free: 24.53 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.1883, allocations: 0 / 411.2 MB, free: 24.53 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1883, allocations: 0 / 411.2 MB, free: 24.53 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.118e-06/0.1883, allocations: 0 / 411.2 MB, free: 24.53 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.0004312/0.1887, allocations: 0.6592 MB / 411.9 MB, free: 23.8 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.582e-05/0.1888, allocations: 8.031 kB / 411.9 MB, free: 23.79 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.196e-05/0.1888, allocations: 40.19 kB / 411.9 MB, free: 23.75 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.775e-05/0.1889, allocations: 40.47 kB / 412 MB, free: 23.71 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001904/0.1891, allocations: 278.3 kB / 412.3 MB, free: 23.39 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.78e-05/0.1891, allocations: 8.375 kB / 412.3 MB, free: 23.39 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.475e-05/0.1891, allocations: 9.812 kB / 412.3 MB, free: 23.38 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002475/0.1894, allocations: 129.7 kB / 412.4 MB, free: 23.25 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.644e-06/0.1894, allocations: 0 / 412.4 MB, free: 23.25 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.897e-05/0.1894, allocations: 7.375 kB / 412.4 MB, free: 23.24 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.959e-06/0.1894, allocations: 0 / 412.4 MB, free: 23.24 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001143/0.1895, allocations: 63.94 kB / 412.5 MB, free: 23.18 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004447/0.19, allocations: 452.5 kB / 412.9 MB, free: 22.69 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00014/0.1901, allocations: 99.36 kB / 413 MB, free: 22.58 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001134/0.1903, allocations: 88.39 kB / 413.1 MB, free: 22.5 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.666e-06/0.1903, allocations: 0 / 413.1 MB, free: 22.5 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002416/0.1905, allocations: 206.5 kB / 413.3 MB, free: 22.27 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 1.363e-06/0.1905, allocations: 0 / 413.3 MB, free: 22.27 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.0006149/0.1912, allocations: 467.6 kB / 413.8 MB, free: 21.79 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.368e-05/0.1912, allocations: 166.2 kB / 413.9 MB, free: 21.59 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004474/0.1917, allocations: 0.5168 MB / 414.4 MB, free: 21.06 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.953e-05/0.1917, allocations: 37.7 kB / 414.5 MB, free: 21.02 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.406e-05/0.1917, allocations: 93.14 kB / 414.6 MB, free: 20.93 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.794e-05/0.1918, allocations: 31.64 kB / 414.6 MB, free: 20.89 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.46e-05/0.1918, allocations: 0 / 414.6 MB, free: 20.89 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.879e-05/0.1918, allocations: 330.8 kB / 414.9 MB, free: 20.56 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.706e-05/0.1919, allocations: 55.97 kB / 415 MB, free: 20.51 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001105/0.1921, allocations: 71.8 kB / 415 MB, free: 20.43 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002281/0.1923, allocations: 343.4 kB / 415.4 MB, free: 20.04 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.1923, allocations: 0 / 415.4 MB, free: 20.04 MB / 298.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003785/0.1927, allocations: 372.2 kB / 415.7 MB, free: 19.65 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.129e-05/0.1928, allocations: 126.8 kB / 415.9 MB, free: 19.5 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.138e-06/0.1928, allocations: 3.938 kB / 415.9 MB, free: 19.5 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.065e-05/0.1928, allocations: 0 / 415.9 MB, free: 19.5 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.678e-05/0.1928, allocations: 4 kB / 415.9 MB, free: 19.49 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.619e-06/0.1928, allocations: 0 / 415.9 MB, free: 19.49 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001378/0.193, allocations: 23.83 kB / 415.9 MB, free: 19.47 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.145e-05/0.193, allocations: 40.03 kB / 415.9 MB, free: 19.43 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.0002165/0.1932, allocations: 370.3 kB / 416.3 MB, free: 19.03 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.283e-05/0.1933, allocations: 35.62 kB / 416.3 MB, free: 19 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.813e-05/0.1934, allocations: 71.14 kB / 416.4 MB, free: 18.91 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.1934, allocations: 0 / 416.4 MB, free: 18.91 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.985e-06/0.1934, allocations: 0 / 416.4 MB, free: 18.91 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.1934, allocations: 0 / 416.4 MB, free: 18.91 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006546/0.194, allocations: 0.8094 MB / 417.2 MB, free: 18.02 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.194, allocations: 112 / 417.2 MB, free: 18.02 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.448e-06/0.1941, allocations: 7.938 kB / 417.2 MB, free: 18.02 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.023e-06/0.1941, allocations: 0 / 417.2 MB, free: 18.02 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.127e-05/0.1941, allocations: 11.94 kB / 417.2 MB, free: 18 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.143e-06/0.1941, allocations: 0 / 417.2 MB, free: 18 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.1941, allocations: 3.938 kB / 417.2 MB, free: 18 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004451/0.1945, allocations: 0.5247 MB / 417.8 MB, free: 17.44 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002248/0.1948, allocations: 248.4 kB / 418 MB, free: 17.18 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.686e-05/0.1948, allocations: 16 kB / 418 MB, free: 17.16 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001282/0.195, allocations: 11.98 kB / 418 MB, free: 17.15 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.266e-05/0.1951, allocations: 31.91 kB / 418.1 MB, free: 17.12 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.618e-05/0.1951, allocations: 43.92 kB / 418.1 MB, free: 17.07 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003236/0.1954, allocations: 386.9 kB / 418.5 MB, free: 16.7 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1954, allocations: 0 / 418.5 MB, free: 16.7 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002445/0.1957, allocations: 44 kB / 418.5 MB, free: 16.66 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.0006159/0.1963, allocations: 1.074 MB / 419.6 MB, free: 15.53 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003428/0.1967, allocations: 433.5 kB / 420 MB, free: 15.06 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.1967, allocations: 0 / 420 MB, free: 15.06 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001977/0.1969, allocations: 377.5 kB / 420.4 MB, free: 14.64 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005316/0.1974, allocations: 114.3 kB / 420.5 MB, free: 14.54 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001778/0.1992, allocations: 1.593 MB / 422.1 MB, free: 12.88 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002228/0.1994, allocations: 0.8063 MB / 422.9 MB, free: 12.05 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.87e-05/0.1995, allocations: 27.44 kB / 422.9 MB, free: 12.02 MB / 298.7 MB Notification: Performance of SimCode: time 4.01e-07/0.1995, allocations: 0 / 422.9 MB, free: 12.02 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.983/3.183, allocations: 2.296 MB / 425.2 MB, free: 9.727 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.BUF3S.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.BUF3S.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.BUF3S_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Electrical_Digital_Examples_BUF3S_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Electrical_Digital_Examples_BUF3S.fmu > Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.BUF3S.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.BUF3S.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches