Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.BUF3S,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bUF3S.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S") translateModel(Modelica.Electrical.Digital.Examples.BUF3S,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bUF3S.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007967/0.0007969, allocations: 95.88 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00102/0.00102, allocations: 202 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.405/1.405, allocations: 227.8 MB / 246.8 MB, free: 9.66 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002214/0.0002214, allocations: 4 kB / 307.7 MB, free: 0.5703 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1134/0.1136, allocations: 51.52 MB / 359.3 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.BUF3S): time 0.002067/0.1157, allocations: 1.249 MB / 360.5 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001875/0.1176, allocations: 0.889 MB / 361.4 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.669e-05/0.1177, allocations: 0 / 361.4 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001077/0.1178, allocations: 3.938 kB / 361.4 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 9.124e-05/0.1179, allocations: 15.91 kB / 361.4 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003152/0.1182, allocations: 55.14 kB / 361.5 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002146/0.1185, allocations: 111.7 kB / 361.6 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000141/0.1186, allocations: 23.98 kB / 361.6 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005864/0.1192, allocations: 371.3 kB / 362 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001776/0.1194, allocations: 59.77 kB / 362 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.787e-05/0.1195, allocations: 7.984 kB / 362 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.766e-05/0.1195, allocations: 4 kB / 362 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001134/0.1196, allocations: 63.7 kB / 362.1 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001733/0.1198, allocations: 132.8 kB / 362.2 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004059/0.1202, allocations: 338.7 kB / 362.6 MB, free: 9.734 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.1202, allocations: 4 kB / 362.6 MB, free: 9.73 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.1202, allocations: 0 / 362.6 MB, free: 9.73 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.739e-06/0.1202, allocations: 0 / 362.6 MB, free: 9.73 MB / 302.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.0009601/0.1212, allocations: 0.6687 MB / 363.2 MB, free: 8.988 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.704e-05/0.1213, allocations: 8.031 kB / 363.2 MB, free: 8.98 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001428/0.1214, allocations: 40.47 kB / 363.3 MB, free: 8.941 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004371/0.1219, allocations: 274.3 kB / 363.5 MB, free: 8.633 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.971e-05/0.1219, allocations: 4.375 kB / 363.5 MB, free: 8.629 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.579e-05/0.122, allocations: 8.375 kB / 363.6 MB, free: 8.621 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003999/0.1224, allocations: 133.8 kB / 363.7 MB, free: 8.484 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.236e-05/0.1224, allocations: 4 kB / 363.7 MB, free: 8.48 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.903e-05/0.1224, allocations: 4 kB / 363.7 MB, free: 8.477 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.925e-06/0.1224, allocations: 4 kB / 363.7 MB, free: 8.473 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001679/0.1226, allocations: 55.97 kB / 363.8 MB, free: 8.418 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001075/0.1237, allocations: 460.4 kB / 364.2 MB, free: 7.918 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002061/0.1239, allocations: 94.55 kB / 364.3 MB, free: 7.816 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001697/0.1241, allocations: 84.89 kB / 364.4 MB, free: 7.73 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.052e-05/0.1241, allocations: 0 / 364.4 MB, free: 7.73 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003986/0.1245, allocations: 201.7 kB / 364.6 MB, free: 7.512 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.553e-06/0.1245, allocations: 0 / 364.6 MB, free: 7.512 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.000908/0.1255, allocations: 459.9 kB / 365 MB, free: 7.031 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001199/0.1256, allocations: 174.2 kB / 365.2 MB, free: 6.824 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007792/0.1264, allocations: 0.5207 MB / 365.7 MB, free: 6.297 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.533e-05/0.1264, allocations: 29.7 kB / 365.7 MB, free: 6.262 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.474e-05/0.1265, allocations: 97.12 kB / 365.8 MB, free: 6.164 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.916e-05/0.1266, allocations: 23.66 kB / 365.9 MB, free: 6.141 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.268e-05/0.1266, allocations: 25.7 kB / 365.9 MB, free: 6.109 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001592/0.1268, allocations: 334.7 kB / 366.2 MB, free: 5.773 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001384/0.127, allocations: 55.97 kB / 366.3 MB, free: 5.719 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001436/0.1271, allocations: 73.69 kB / 366.3 MB, free: 5.641 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003364/0.1275, allocations: 343.4 kB / 366.7 MB, free: 5.25 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.1275, allocations: 0 / 366.7 MB, free: 5.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005597/0.128, allocations: 379.9 kB / 367 MB, free: 4.852 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001027/0.1281, allocations: 122.8 kB / 367.2 MB, free: 4.707 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.687e-06/0.1282, allocations: 4 kB / 367.2 MB, free: 4.703 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.605e-05/0.1282, allocations: 0 / 367.2 MB, free: 4.703 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.682e-05/0.1282, allocations: 8.141 kB / 367.2 MB, free: 4.695 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.003e-06/0.1282, allocations: 4 kB / 367.2 MB, free: 4.691 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001772/0.1284, allocations: 12 kB / 367.2 MB, free: 4.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.729e-05/0.1285, allocations: 40.05 kB / 367.2 MB, free: 4.641 MB / 302.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.0003818/0.1289, allocations: 379.1 kB / 367.6 MB, free: 4.234 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.414e-05/0.1289, allocations: 39.61 kB / 367.6 MB, free: 4.195 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001111/0.1291, allocations: 67.14 kB / 367.7 MB, free: 4.121 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.1291, allocations: 0 / 367.7 MB, free: 4.121 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.1291, allocations: 4 kB / 367.7 MB, free: 4.117 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.085e-06/0.1291, allocations: 0 / 367.7 MB, free: 4.117 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009703/0.1301, allocations: 0.8093 MB / 368.5 MB, free: 3.227 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.963e-06/0.1301, allocations: 0 / 368.5 MB, free: 3.227 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.992e-06/0.1301, allocations: 0 / 368.5 MB, free: 3.227 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.1301, allocations: 0 / 368.5 MB, free: 3.227 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.923e-05/0.1301, allocations: 15.98 kB / 368.5 MB, free: 3.211 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.414e-06/0.1301, allocations: 0 / 368.5 MB, free: 3.211 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.1301, allocations: 3.938 kB / 368.5 MB, free: 3.207 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000674/0.1308, allocations: 0.5252 MB / 369.1 MB, free: 2.641 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003369/0.1312, allocations: 244.4 kB / 369.3 MB, free: 2.383 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.068e-05/0.1312, allocations: 8 kB / 369.3 MB, free: 2.375 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001482/0.1314, allocations: 12 kB / 369.3 MB, free: 2.363 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001167/0.1315, allocations: 31.89 kB / 369.4 MB, free: 2.332 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.781e-05/0.1316, allocations: 47.92 kB / 369.4 MB, free: 2.285 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004812/0.1321, allocations: 382.9 kB / 369.8 MB, free: 1.91 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1321, allocations: 4 kB / 369.8 MB, free: 1.906 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003049/0.1324, allocations: 51.94 kB / 369.8 MB, free: 1.855 MB / 302.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.0001722/0.1326, allocations: 111.2 kB / 369.9 MB, free: 1.738 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005377/0.1331, allocations: 441.5 kB / 370.4 MB, free: 1.258 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1331, allocations: 0 / 370.4 MB, free: 1.258 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003215/0.1335, allocations: 373.6 kB / 370.7 MB, free: 0.8438 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00069/0.1342, allocations: 116.8 kB / 370.8 MB, free: 0.7344 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1993/0.3335, allocations: 0.7574 MB / 371.6 MB, free: 19.48 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004325/0.3339, allocations: 0.7991 MB / 372.4 MB, free: 18.76 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001091/0.3341, allocations: 9.922 kB / 372.4 MB, free: 18.75 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.096e-05/0.3341, allocations: 11 kB / 372.4 MB, free: 18.75 MB / 302.1 MB Notification: Performance of SimCode: time 2.514e-06/0.3341, allocations: 0 / 372.4 MB, free: 18.75 MB / 302.1 MB Notification: Performance of Templates: time 0.008951/0.3431, allocations: 3.834 MB / 376.3 MB, free: 18.48 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.makefile (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.sim & ./Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/BUF3S/BUF3S.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches