Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001226/0.001226, allocations: 109.3 kB / 17.73 MB, free: 5.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001328/0.001328, allocations: 188.2 kB / 18.66 MB, free: 4.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.92/1.92, allocations: 205.1 MB / 224.5 MB, free: 12.2 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001559/0.001559, allocations: 51.94 kB / 328.5 MB, free: 3.297 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1819/0.1835, allocations: 46.61 MB / 375.1 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.BUF3S): time 0.006279/0.1899, allocations: 1.524 MB / 376.7 MB, free: 3.039 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003783/0.1937, allocations: 0.8903 MB / 377.6 MB, free: 2.141 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001143/0.1939, allocations: 3.938 kB / 377.6 MB, free: 2.137 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001718/0.1941, allocations: 11.92 kB / 377.6 MB, free: 2.125 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001489/0.1942, allocations: 19.84 kB / 377.6 MB, free: 2.105 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004462/0.1947, allocations: 43.89 kB / 377.6 MB, free: 2.062 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003787/0.1951, allocations: 155.7 kB / 377.8 MB, free: 1.91 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001999/0.1953, allocations: 16 kB / 377.8 MB, free: 1.895 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007481/0.1961, allocations: 375.3 kB / 378.2 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000236/0.1963, allocations: 63.7 kB / 378.2 MB, free: 1.465 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.596e-05/0.1964, allocations: 8 kB / 378.2 MB, free: 1.457 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.312e-05/0.1964, allocations: 12 kB / 378.2 MB, free: 1.445 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001552/0.1966, allocations: 63.7 kB / 378.3 MB, free: 1.383 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000154/0.1968, allocations: 115.2 kB / 378.4 MB, free: 1.27 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004533/0.1972, allocations: 358.5 kB / 378.8 MB, free: 0.918 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.1973, allocations: 4 kB / 378.8 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.136e-06/0.1973, allocations: 0 / 378.8 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.097e-06/0.1973, allocations: 0 / 378.8 MB, free: 0.9141 MB / 318.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.001024/0.1983, allocations: 0.7344 MB / 379.5 MB, free: 108 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.578e-05/0.1984, allocations: 12.03 kB / 379.5 MB, free: 96 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.516e-05/0.1985, allocations: 36.7 kB / 379.6 MB, free: 60 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.267/0.4655, allocations: 268.4 kB / 379.8 MB, free: 13.04 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.882e-05/0.4656, allocations: 9.859 kB / 379.8 MB, free: 13.04 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.101e-05/0.4657, allocations: 8.875 kB / 379.8 MB, free: 13.04 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005204/0.4662, allocations: 126.5 kB / 380 MB, free: 13.01 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.543e-05/0.4662, allocations: 0.7031 kB / 380 MB, free: 13.01 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.372e-05/0.4663, allocations: 3.938 kB / 380 MB, free: 13.01 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.037e-05/0.4663, allocations: 1.312 kB / 380 MB, free: 13.01 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002125/0.4665, allocations: 63.66 kB / 380 MB, free: 13 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001289/0.4678, allocations: 459.7 kB / 380.5 MB, free: 12.71 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002603/0.4681, allocations: 103.1 kB / 380.6 MB, free: 12.69 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002021/0.4683, allocations: 81.44 kB / 380.7 MB, free: 12.68 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.235e-05/0.4683, allocations: 5.141 kB / 380.7 MB, free: 12.68 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005916/0.4689, allocations: 200.3 kB / 380.9 MB, free: 12.57 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 2.885e-06/0.469, allocations: 0 / 380.9 MB, free: 12.57 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.00114/0.4701, allocations: 471.2 kB / 381.3 MB, free: 12.39 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001178/0.4702, allocations: 169.1 kB / 381.5 MB, free: 12.2 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001077/0.4713, allocations: 0.5128 MB / 382 MB, free: 12.01 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.857e-05/0.4714, allocations: 36.02 kB / 382 MB, free: 11.98 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.406e-05/0.4715, allocations: 99.34 kB / 382.1 MB, free: 11.89 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.318e-05/0.4715, allocations: 31.06 kB / 382.2 MB, free: 11.88 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002139/0.4718, allocations: 78.3 kB / 382.2 MB, free: 11.85 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.373e-05/0.4719, allocations: 327.3 kB / 382.6 MB, free: 11.54 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001853/0.4721, allocations: 55.42 kB / 382.6 MB, free: 11.54 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001594/0.4722, allocations: 73.03 kB / 382.7 MB, free: 11.52 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004421/0.4727, allocations: 343.6 kB / 383 MB, free: 11.23 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.4727, allocations: 0 / 383 MB, free: 11.23 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0007276/0.4734, allocations: 383.1 kB / 383.4 MB, free: 11.01 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.878e-05/0.4735, allocations: 126 kB / 383.5 MB, free: 10.88 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/0.4736, allocations: 0 / 383.5 MB, free: 10.88 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.789e-05/0.4736, allocations: 4.641 kB / 383.5 MB, free: 10.88 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.204e-05/0.4736, allocations: 6.141 kB / 383.5 MB, free: 10.88 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.647e-06/0.4736, allocations: 0 / 383.5 MB, free: 10.88 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002098/0.4739, allocations: 14.64 kB / 383.5 MB, free: 10.88 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.939e-05/0.474, allocations: 40.17 kB / 383.6 MB, free: 10.88 MB / 318.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.0003905/0.4743, allocations: 367.7 kB / 383.9 MB, free: 10.57 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.117e-05/0.4744, allocations: 43.92 kB / 384 MB, free: 10.55 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001206/0.4746, allocations: 65.78 kB / 384 MB, free: 10.51 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.4746, allocations: 0 / 384 MB, free: 10.51 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.4746, allocations: 0 / 384 MB, free: 10.51 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.4746, allocations: 2.109 kB / 384 MB, free: 10.51 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001156/0.4758, allocations: 0.8161 MB / 384.9 MB, free: 9.934 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.4758, allocations: 0 / 384.9 MB, free: 9.934 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.583e-06/0.4758, allocations: 1.156 kB / 384.9 MB, free: 9.934 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.4758, allocations: 1.125 kB / 384.9 MB, free: 9.934 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.618e-05/0.4758, allocations: 16.59 kB / 384.9 MB, free: 9.93 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.4758, allocations: 0 / 384.9 MB, free: 9.93 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.4759, allocations: 1.125 kB / 384.9 MB, free: 9.93 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007722/0.4766, allocations: 0.5234 MB / 385.4 MB, free: 9.578 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003654/0.477, allocations: 247.4 kB / 385.6 MB, free: 9.395 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.559e-05/0.4771, allocations: 13 kB / 385.7 MB, free: 9.391 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001457/0.4773, allocations: 10.7 kB / 385.7 MB, free: 9.391 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001494/0.4774, allocations: 27.92 kB / 385.7 MB, free: 9.379 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.671e-05/0.4775, allocations: 46.88 kB / 385.7 MB, free: 9.375 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006153/0.4781, allocations: 387.5 kB / 386.1 MB, free: 9.172 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4781, allocations: 0 / 386.1 MB, free: 9.172 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003496/0.4785, allocations: 42.22 kB / 386.2 MB, free: 9.172 MB / 318.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.0001504/0.4786, allocations: 122 kB / 386.3 MB, free: 9.074 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000637/0.4793, allocations: 435.3 kB / 386.7 MB, free: 8.73 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.075e-06/0.4793, allocations: 3.938 kB / 386.7 MB, free: 8.727 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003419/0.4796, allocations: 382.6 kB / 387.1 MB, free: 8.391 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008371/0.4805, allocations: 125 kB / 387.2 MB, free: 8.355 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001313/0.4818, allocations: 0.6651 MB / 387.9 MB, free: 7.965 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004258/0.4823, allocations: 0.7988 MB / 388.7 MB, free: 7.23 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.356e-05/0.4824, allocations: 10.3 kB / 388.7 MB, free: 7.223 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.757e-05/0.4824, allocations: 11.84 kB / 388.7 MB, free: 7.215 MB / 318.1 MB Notification: Performance of SimCode: time 4.91e-07/0.4824, allocations: 1.094 kB / 388.7 MB, free: 7.215 MB / 318.1 MB Notification: Performance of Templates: time 0.01179/0.4942, allocations: 4.376 MB / 393.1 MB, free: 6.809 MB / 318.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches