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: translateModel(Modelica.Electrical.Digital.Examples.BUF3S,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bUF3S.y",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.BUF3S") translateModel(Modelica.Electrical.Digital.Examples.BUF3S,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bUF3S.y",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.BUF3S") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001716/0.001716, allocations: 178.8 kB / 16.41 MB, free: 5.703 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.471/1.471, allocations: 205.4 MB / 222.6 MB, free: 9.105 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.0008152/0.0008153, allocations: 94.28 kB / 270.9 MB, free: 8.352 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003266/0.0003266, allocations: 8 kB / 327 MB, free: 204 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2546/0.255, allocations: 47.58 MB / 374.6 MB, free: 45.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.BUF3S): time 0.001569/0.2566, allocations: 1.206 MB / 375.8 MB, free: 44.47 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001567/0.2582, allocations: 0.8557 MB / 376.6 MB, free: 43.84 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.643e-05/0.2583, allocations: 0 / 376.6 MB, free: 43.84 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 7.764e-05/0.2584, allocations: 5.219 kB / 376.6 MB, free: 43.83 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.401e-05/0.2584, allocations: 11.3 kB / 376.6 MB, free: 43.82 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002507/0.2587, allocations: 40.55 kB / 376.7 MB, free: 43.79 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001251/0.2588, allocations: 106.6 kB / 376.8 MB, free: 43.73 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001043/0.259, allocations: 20.73 kB / 376.8 MB, free: 43.72 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004133/0.2594, allocations: 335.3 kB / 377.1 MB, free: 43.59 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000108/0.2595, allocations: 76.34 kB / 377.2 MB, free: 43.56 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.72e-05/0.2595, allocations: 3.438 kB / 377.2 MB, free: 43.56 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.924e-05/0.2596, allocations: 3.25 kB / 377.2 MB, free: 43.56 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.311e-05/0.2597, allocations: 69.5 kB / 377.3 MB, free: 43.52 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.727e-05/0.2597, allocations: 68.05 kB / 377.3 MB, free: 43.46 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002073/0.2599, allocations: 281.2 kB / 377.6 MB, free: 43.26 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.2599, allocations: 1.125 kB / 377.6 MB, free: 43.26 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2599, allocations: 0 / 377.6 MB, free: 43.26 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.177e-06/0.26, allocations: 4 kB / 377.6 MB, free: 43.25 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.0004863/0.2605, allocations: 0.6615 MB / 378.3 MB, free: 42.59 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.2605, allocations: 8.875 kB / 378.3 MB, free: 42.59 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.561e-05/0.2606, allocations: 34.34 kB / 378.3 MB, free: 42.57 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002151/0.2608, allocations: 259.8 kB / 378.6 MB, free: 42.31 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.094e-05/0.2608, allocations: 17.41 kB / 378.6 MB, free: 42.3 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.525e-05/0.2608, allocations: 11.16 kB / 378.6 MB, free: 42.3 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002733/0.2611, allocations: 122 kB / 378.7 MB, free: 42.22 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.243e-06/0.2611, allocations: 1.188 kB / 378.7 MB, free: 42.22 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.139e-05/0.2612, allocations: 6.75 kB / 378.7 MB, free: 42.21 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.2612, allocations: 1.344 kB / 378.7 MB, free: 42.21 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001333/0.2613, allocations: 56.41 kB / 378.8 MB, free: 42.19 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005182/0.2619, allocations: 465.5 kB / 379.2 MB, free: 41.77 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001812/0.262, allocations: 95.11 kB / 379.3 MB, free: 41.71 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000136/0.2622, allocations: 90.92 kB / 379.4 MB, free: 41.66 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.813e-06/0.2622, allocations: 1.25 kB / 379.4 MB, free: 41.66 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002724/0.2625, allocations: 199.3 kB / 379.6 MB, free: 41.49 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 1.463e-06/0.2625, allocations: 0 / 379.6 MB, free: 41.49 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.0007032/0.2632, allocations: 462.2 kB / 380.1 MB, free: 41.21 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.252e-05/0.2633, allocations: 168.8 kB / 380.2 MB, free: 41.01 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005532/0.2638, allocations: 0.5167 MB / 380.8 MB, free: 40.66 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.801e-05/0.2639, allocations: 33.73 kB / 380.8 MB, free: 40.63 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.915e-05/0.2639, allocations: 109.7 kB / 380.9 MB, free: 40.52 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.471e-05/0.264, allocations: 22.72 kB / 380.9 MB, free: 40.51 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.517e-05/0.264, allocations: 2.344 kB / 380.9 MB, free: 40.51 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.914e-05/0.2641, allocations: 326.9 kB / 381.2 MB, free: 40.18 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001229/0.2642, allocations: 54.19 kB / 381.3 MB, free: 40.16 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001196/0.2643, allocations: 82.67 kB / 381.4 MB, free: 40.11 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001377/0.2645, allocations: 161.3 kB / 381.5 MB, free: 39.95 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.2645, allocations: 1.344 kB / 381.5 MB, free: 39.95 MB / 298.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004495/0.2649, allocations: 373.3 kB / 381.9 MB, free: 39.71 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.608e-05/0.265, allocations: 125.7 kB / 382 MB, free: 39.57 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.265, allocations: 0 / 382 MB, free: 39.57 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.144e-05/0.265, allocations: 1.219 kB / 382 MB, free: 39.57 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.925e-05/0.2651, allocations: 1.438 kB / 382 MB, free: 39.57 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.741e-06/0.2651, allocations: 1.219 kB / 382 MB, free: 39.57 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001568/0.2652, allocations: 18.02 kB / 382 MB, free: 39.56 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.864e-05/0.2653, allocations: 50.22 kB / 382.1 MB, free: 39.55 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.000268/0.2656, allocations: 361.3 kB / 382.4 MB, free: 39.23 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.863e-05/0.2656, allocations: 38.97 kB / 382.5 MB, free: 39.21 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.079e-05/0.2657, allocations: 67.2 kB / 382.5 MB, free: 39.16 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.2657, allocations: 1.406 kB / 382.5 MB, free: 39.16 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.2657, allocations: 0 / 382.5 MB, free: 39.16 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.2657, allocations: 5.328 kB / 382.5 MB, free: 39.16 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007856/0.2665, allocations: 0.7985 MB / 383.3 MB, free: 38.51 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.2666, allocations: 0 / 383.3 MB, free: 38.51 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.991e-06/0.2666, allocations: 4.891 kB / 383.4 MB, free: 38.5 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-06/0.2666, allocations: 0 / 383.4 MB, free: 38.5 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.737e-05/0.2666, allocations: 17.34 kB / 383.4 MB, free: 38.5 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.2666, allocations: 1.125 kB / 383.4 MB, free: 38.5 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.2666, allocations: 0 / 383.4 MB, free: 38.5 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005278/0.2672, allocations: 0.5365 MB / 383.9 MB, free: 38.1 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002391/0.2674, allocations: 240.8 kB / 384.1 MB, free: 37.89 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.152e-05/0.2675, allocations: 10.94 kB / 384.2 MB, free: 37.89 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000139/0.2676, allocations: 13.08 kB / 384.2 MB, free: 37.88 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.606e-05/0.2677, allocations: 22.47 kB / 384.2 MB, free: 37.87 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.027e-05/0.2678, allocations: 44.28 kB / 384.2 MB, free: 37.86 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003955/0.2682, allocations: 391.6 kB / 384.6 MB, free: 37.61 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2682, allocations: 0 / 384.6 MB, free: 37.61 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002702/0.2684, allocations: 50.05 kB / 384.7 MB, free: 37.61 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.0001175/0.2686, allocations: 116.3 kB / 384.8 MB, free: 37.51 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004188/0.269, allocations: 437 kB / 385.2 MB, free: 37.14 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.269, allocations: 0 / 385.2 MB, free: 37.14 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002424/0.2693, allocations: 378.4 kB / 385.6 MB, free: 36.79 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005677/0.2698, allocations: 108.3 kB / 385.7 MB, free: 36.75 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001035/0.2709, allocations: 0.7802 MB / 386.5 MB, free: 36.2 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002695/0.2712, allocations: 0.805 MB / 387.3 MB, free: 35.41 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.067e-05/0.2712, allocations: 11.44 kB / 387.3 MB, free: 35.39 MB / 298.7 MB Notification: Performance of SimCode: time 2.51e-07/0.2712, allocations: 3.938 kB / 387.3 MB, free: 35.39 MB / 298.7 MB Notification: Performance of Templates: time 0.003427/0.2746, allocations: 2.485 MB / 389.8 MB, free: 32.91 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.BUF3S.makefile (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 & ./Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.BUF3S --alarm=480 -emit_protected > 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/jenkins/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