Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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_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_Modelica.Electrical.Digital.Examples.BUF3S") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001518/0.001518, allocations: 178.1 kB / 17.36 MB, free: 4.445 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.859/1.859, allocations: 205.6 MB / 223.7 MB, free: 8.934 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009325/0.0009324, allocations: 98.48 kB / 272.1 MB, free: 8.109 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003375/0.0003375, allocations: 8 kB / 329 MB, free: 15.05 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3406/0.341, allocations: 47.57 MB / 376.6 MB, free: 45.58 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.BUF3S): time 0.00221/0.3433, allocations: 1.215 MB / 377.8 MB, free: 44.61 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002239/0.3456, allocations: 1.182 MB / 379 MB, free: 43.58 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.139e-05/0.3456, allocations: 0.9688 kB / 379 MB, free: 43.58 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.209e-05/0.3458, allocations: 9.359 kB / 379 MB, free: 43.57 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 8.302e-05/0.3458, allocations: 15.02 kB / 379 MB, free: 43.56 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002567/0.3461, allocations: 44.05 kB / 379.1 MB, free: 43.53 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001699/0.3463, allocations: 116.1 kB / 379.2 MB, free: 43.46 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001339/0.3464, allocations: 13.41 kB / 379.2 MB, free: 43.46 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000588/0.347, allocations: 376.5 kB / 379.6 MB, free: 43.31 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001282/0.3472, allocations: 61.98 kB / 379.6 MB, free: 43.27 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.668e-05/0.3472, allocations: 4.344 kB / 379.6 MB, free: 43.27 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.066e-05/0.3472, allocations: 7 kB / 379.6 MB, free: 43.27 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001159/0.3474, allocations: 62.3 kB / 379.7 MB, free: 43.24 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000145/0.3475, allocations: 136.8 kB / 379.8 MB, free: 43.12 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003685/0.3479, allocations: 343.1 kB / 380.2 MB, free: 42.86 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.526e-06/0.3479, allocations: 0 / 380.2 MB, free: 42.86 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.597e-06/0.3479, allocations: 0 / 380.2 MB, free: 42.86 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.343e-06/0.3479, allocations: 0.9688 kB / 380.2 MB, free: 42.86 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.0007453/0.3487, allocations: 0.6589 MB / 380.8 MB, free: 42.2 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.565e-05/0.3488, allocations: 8.562 kB / 380.8 MB, free: 42.2 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.881e-05/0.3489, allocations: 39.69 kB / 380.9 MB, free: 42.18 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003158/0.3492, allocations: 276.9 kB / 381.1 MB, free: 41.9 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.223e-05/0.3492, allocations: 4.781 kB / 381.1 MB, free: 41.9 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.037e-05/0.3493, allocations: 8.219 kB / 381.2 MB, free: 41.9 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003673/0.3496, allocations: 129.9 kB / 381.3 MB, free: 41.82 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.3497, allocations: 0 / 381.3 MB, free: 41.82 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.685e-05/0.3497, allocations: 3.938 kB / 381.3 MB, free: 41.82 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.434e-06/0.3497, allocations: 1.344 kB / 381.3 MB, free: 41.82 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001646/0.3499, allocations: 63.41 kB / 381.3 MB, free: 41.79 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006549/0.3505, allocations: 461 kB / 381.8 MB, free: 41.37 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002089/0.3508, allocations: 90.48 kB / 381.9 MB, free: 41.31 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002071/0.351, allocations: 87.88 kB / 382 MB, free: 41.26 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.232e-05/0.351, allocations: 0 / 382 MB, free: 41.26 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003861/0.3514, allocations: 199.4 kB / 382.2 MB, free: 41.09 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 1.593e-06/0.3514, allocations: 0 / 382.2 MB, free: 41.09 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.001114/0.3525, allocations: 467 kB / 382.6 MB, free: 40.8 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001358/0.3527, allocations: 169.3 kB / 382.8 MB, free: 40.61 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008833/0.3536, allocations: 0.514 MB / 383.3 MB, free: 40.27 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.372e-05/0.3536, allocations: 29.67 kB / 383.3 MB, free: 40.23 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.426e-05/0.3537, allocations: 104.4 kB / 383.4 MB, free: 40.13 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.42e-05/0.3538, allocations: 26.73 kB / 383.5 MB, free: 40.11 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.01e-05/0.3538, allocations: 7.188 kB / 383.5 MB, free: 40.11 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001441/0.3539, allocations: 326.5 kB / 383.8 MB, free: 39.79 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001554/0.3541, allocations: 61.19 kB / 383.8 MB, free: 39.75 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001601/0.3543, allocations: 75.23 kB / 383.9 MB, free: 39.71 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003695/0.3546, allocations: 342.5 kB / 384.3 MB, free: 39.38 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.3547, allocations: 0 / 384.3 MB, free: 39.38 MB / 298.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006756/0.3553, allocations: 369.8 kB / 384.6 MB, free: 39.14 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001157/0.3555, allocations: 130.1 kB / 384.7 MB, free: 39 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.3555, allocations: 0 / 384.7 MB, free: 39 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.087e-05/0.3555, allocations: 1.219 kB / 384.7 MB, free: 39 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.319e-05/0.3556, allocations: 5.094 kB / 384.7 MB, free: 38.99 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.209e-05/0.3556, allocations: 1.031 kB / 384.7 MB, free: 38.99 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002108/0.3558, allocations: 18.92 kB / 384.8 MB, free: 38.98 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001082/0.3559, allocations: 37.19 kB / 384.8 MB, free: 38.98 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004379/0.3564, allocations: 360.8 kB / 385.2 MB, free: 38.66 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.314e-05/0.3564, allocations: 52.02 kB / 385.2 MB, free: 38.63 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000135/0.3566, allocations: 67.3 kB / 385.3 MB, free: 38.59 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-06/0.3566, allocations: 1.062 kB / 385.3 MB, free: 38.59 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.905e-06/0.3566, allocations: 0 / 385.3 MB, free: 38.59 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.3566, allocations: 0.8438 kB / 385.3 MB, free: 38.59 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001143/0.3578, allocations: 0.8031 MB / 386.1 MB, free: 37.93 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.3578, allocations: 3.938 kB / 386.1 MB, free: 37.93 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.893e-06/0.3578, allocations: 1.188 kB / 386.1 MB, free: 37.93 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.3578, allocations: 0 / 386.1 MB, free: 37.93 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.319e-05/0.3579, allocations: 21.67 kB / 386.1 MB, free: 37.91 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.3579, allocations: 0 / 386.1 MB, free: 37.91 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.43e-06/0.3579, allocations: 5 kB / 386.1 MB, free: 37.91 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007356/0.3586, allocations: 0.5195 MB / 386.6 MB, free: 37.53 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003504/0.359, allocations: 240.6 kB / 386.9 MB, free: 37.32 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.028e-05/0.359, allocations: 15.03 kB / 386.9 MB, free: 37.31 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001457/0.3592, allocations: 16.8 kB / 386.9 MB, free: 37.3 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001339/0.3593, allocations: 26.08 kB / 386.9 MB, free: 37.29 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.967e-05/0.3594, allocations: 48.86 kB / 387 MB, free: 37.28 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0005355/0.36, allocations: 384.2 kB / 387.3 MB, free: 37.04 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.36, allocations: 0 / 387.3 MB, free: 37.04 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002932/0.3603, allocations: 41.19 kB / 387.4 MB, free: 37.04 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 (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.00016/0.3604, allocations: 126.4 kB / 387.5 MB, free: 36.91 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004327/0.3609, allocations: 437.5 kB / 387.9 MB, free: 36.43 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.3609, allocations: 4.062 kB / 387.9 MB, free: 36.43 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000233/0.3611, allocations: 369.6 kB / 388.3 MB, free: 36.02 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005789/0.3617, allocations: 114.4 kB / 388.4 MB, free: 35.91 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001033/0.3628, allocations: 0.7572 MB / 389.2 MB, free: 35.13 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002997/0.3631, allocations: 0.7986 MB / 390 MB, free: 34.3 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.064e-05/0.3631, allocations: 8.656 kB / 390 MB, free: 34.29 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.996e-05/0.3632, allocations: 11.44 kB / 390 MB, free: 34.28 MB / 298.7 MB Notification: Performance of SimCode: time 3.6e-07/0.3632, allocations: 0 / 390 MB, free: 34.28 MB / 298.7 MB Notification: Performance of Templates: time 0.005956/0.3691, allocations: 3.866 MB / 393.8 MB, free: 30.46 MB / 298.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S.makefile (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 & ./Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/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_Modelica.Electrical.Digital.Examples.BUF3S.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches