Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001449/0.001449, allocations: 84.25 kB / 22.21 MB, free: 2.285 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001144/0.001144, allocations: 165.3 kB / 25.61 MB, free: 8.586 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1/1, allocations: 177 MB / 205.9 MB, free: 4.422 MB / 186.7 MB " [Timeout remaining time 179] 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.Analog.Examples.DemoPowerSupplyWithBuffer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|dcPowerSupply.v|dcPowerSupply.i|bufferCapacitor.v|bufferCapacitor.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer") translateModel(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|dcPowerSupply.v|dcPowerSupply.i|bufferCapacitor.v|bufferCapacitor.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.502e-06/1.502e-06, allocations: 0 / 274.1 MB, free: 4.254 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.386e-05/2.536e-05, allocations: 2.312 kB / 274.1 MB, free: 4.25 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer): time 0.008769/0.008794, allocations: 2.619 MB / 276.7 MB, free: 1.625 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004303/0.0131, allocations: 0.6636 MB / 277.4 MB, free: 0.9609 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002009/0.0133, allocations: 4 kB / 277.4 MB, free: 0.957 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001601/0.01346, allocations: 35.59 kB / 277.5 MB, free: 0.9219 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000197/0.01366, allocations: 80.14 kB / 277.5 MB, free: 0.8438 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003284/0.01398, allocations: 98.11 kB / 277.6 MB, free: 0.75 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004179/0.0144, allocations: 374.6 kB / 278 MB, free: 392 kB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001569/0.01456, allocations: 61.06 kB / 278.1 MB, free: 324 kB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002691/0.01483, allocations: 211.5 kB / 278.3 MB, free: 112 kB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001861/0.01501, allocations: 112.4 kB / 278.4 MB, free: 0 / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.44e-05/0.01509, allocations: 32.05 kB / 278.4 MB, free: 15.96 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.468e-05/0.01513, allocations: 32 kB / 278.4 MB, free: 15.93 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.046e-05/0.01519, allocations: 59.7 kB / 278.5 MB, free: 15.88 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001176/0.01531, allocations: 115.7 kB / 278.6 MB, free: 15.77 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003185/0.01563, allocations: 235.3 kB / 278.8 MB, free: 15.54 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00302/0.01865, allocations: 7.922 kB / 278.8 MB, free: 15.53 MB / 266.7 MB Notification: Performance of FrontEnd: time 3.637e-06/0.01865, allocations: 4 kB / 278.8 MB, free: 15.52 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.439e-05/0.01867, allocations: 0 / 278.8 MB, free: 15.52 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.00104/0.01971, allocations: 0.6593 MB / 279.5 MB, free: 14.82 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.541e-05/0.01975, allocations: 12.03 kB / 279.5 MB, free: 14.8 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00012/0.01987, allocations: 52.75 kB / 279.6 MB, free: 14.75 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003129/0.02019, allocations: 196.1 kB / 279.8 MB, free: 14.54 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001189/0.0203, allocations: 157.6 kB / 279.9 MB, free: 14.35 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.223e-05/0.02036, allocations: 24.38 kB / 279.9 MB, free: 14.33 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004118/0.02077, allocations: 278.8 kB / 280.2 MB, free: 14.02 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.266e-05/0.02078, allocations: 192 / 280.2 MB, free: 14.02 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.703e-05/0.02081, allocations: 16.12 kB / 280.2 MB, free: 14.01 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.607e-06/0.02082, allocations: 4 kB / 280.2 MB, free: 14 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002022/0.02102, allocations: 85.36 kB / 280.3 MB, free: 13.92 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00425/0.02527, allocations: 0.7688 MB / 281.1 MB, free: 13.11 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002524/0.02552, allocations: 139 kB / 281.2 MB, free: 12.96 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001427/0.02566, allocations: 63.64 kB / 281.3 MB, free: 12.89 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.696e-05/0.02568, allocations: 4.344 kB / 281.3 MB, free: 12.89 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002535/0.02593, allocations: 228.4 kB / 281.5 MB, free: 12.62 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.823e-06/0.02594, allocations: 0 / 281.5 MB, free: 12.62 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0008721/0.02681, allocations: 283 kB / 281.8 MB, free: 12.34 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.813e-05/0.02687, allocations: 114.7 kB / 281.9 MB, free: 12.2 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001803/0.02705, allocations: 250.6 kB / 282.1 MB, free: 11.93 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.46e-05/0.02708, allocations: 33.73 kB / 282.2 MB, free: 11.89 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000116/0.0272, allocations: 207 kB / 282.4 MB, free: 11.69 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.801e-05/0.02726, allocations: 67.47 kB / 282.4 MB, free: 11.62 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001061/0.02736, allocations: 55.58 kB / 282.5 MB, free: 11.56 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.001801/0.02916, allocations: 0.504 MB / 283 MB, free: 11.04 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001567/0.02932, allocations: 91.61 kB / 283.1 MB, free: 10.94 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001856/0.0295, allocations: 164.3 kB / 283.2 MB, free: 10.75 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002514/0.02976, allocations: 160.7 kB / 283.4 MB, free: 10.57 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.02976, allocations: 0 / 283.4 MB, free: 10.57 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000622/0.03038, allocations: 373.9 kB / 283.8 MB, free: 10.17 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.234e-05/0.03046, allocations: 71.33 kB / 283.8 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.137e-06/0.03047, allocations: 0 / 283.8 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003081/0.03078, allocations: 87.62 kB / 283.9 MB, free: 9.996 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001597/0.03094, allocations: 31.98 kB / 284 MB, free: 9.965 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00218/0.03312, allocations: 2.294 MB / 286.2 MB, free: 7.566 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003303/0.03345, allocations: 55.83 kB / 286.3 MB, free: 7.512 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.044e-05/0.03348, allocations: 12 kB / 286.3 MB, free: 7.5 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 9 (dcPowerSupply.cp,pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,diode.off,dcPowerSupply.cc,dcPowerSupply.cv,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0001727/0.03365, allocations: 176.5 kB / 286.5 MB, free: 7.316 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.288e-05/0.03371, allocations: 23.86 kB / 286.5 MB, free: 7.293 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.542e-05/0.03375, allocations: 25.81 kB / 286.5 MB, free: 7.262 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.123e-06/0.03376, allocations: 4 kB / 286.5 MB, free: 7.258 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.03376, allocations: 4 kB / 286.5 MB, free: 7.254 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.294e-06/0.03377, allocations: 7.922 kB / 286.6 MB, free: 7.246 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004375/0.03421, allocations: 361.6 kB / 286.9 MB, free: 6.855 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.03421, allocations: 3.984 kB / 286.9 MB, free: 6.852 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001146/0.03433, allocations: 19.98 kB / 286.9 MB, free: 6.832 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002455/0.03457, allocations: 95.58 kB / 287 MB, free: 6.734 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.72e-05/0.03459, allocations: 0 / 287 MB, free: 6.734 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00195/0.03654, allocations: 2.291 MB / 289.3 MB, free: 4.336 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.03654, allocations: 0 / 289.3 MB, free: 4.336 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004245/0.03697, allocations: 259.4 kB / 289.6 MB, free: 4.051 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.068e-05/0.03705, allocations: 43.77 kB / 289.6 MB, free: 4.008 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.282e-05/0.03708, allocations: 4 kB / 289.6 MB, free: 4.004 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001524/0.03723, allocations: 19.97 kB / 289.6 MB, free: 3.984 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.189e-05/0.03732, allocations: 27.95 kB / 289.7 MB, free: 3.957 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.689e-05/0.03734, allocations: 4 kB / 289.7 MB, free: 3.953 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001099/0.03745, allocations: 181.3 kB / 289.8 MB, free: 3.777 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.03745, allocations: 0 / 289.8 MB, free: 3.777 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000519/0.03797, allocations: 87.89 kB / 289.9 MB, free: 3.691 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (bufferCapacitor.v) * Number of discrete variables: 6 ($whenCondition1,dcPowerSupply.cv,dcPowerSupply.cc,diode.off,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002093/0.03818, allocations: 115.2 kB / 290 MB, free: 3.566 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007312/0.03891, allocations: 497.8 kB / 290.5 MB, free: 3.027 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.454e-05/0.03892, allocations: 0 / 290.5 MB, free: 3.027 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003892/0.03931, allocations: 261.3 kB / 290.8 MB, free: 2.75 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002804/0.03959, allocations: 56.08 kB / 290.8 MB, free: 2.695 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009738/0.04057, allocations: 493.3 kB / 291.3 MB, free: 2.184 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.104e-05/0.04063, allocations: 88.31 kB / 291.4 MB, free: 2.078 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.373e-05/0.04069, allocations: 13.64 kB / 291.4 MB, free: 2.062 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001627/0.04086, allocations: 126.2 kB / 291.5 MB, free: 1.938 MB / 266.7 MB Notification: Performance of SimCode: time 1.543e-06/0.04086, allocations: 4 kB / 291.5 MB, free: 1.934 MB / 266.7 MB Notification: Performance of Templates: time 0.007764/0.04862, allocations: 5.295 MB / 296.8 MB, free: 12.73 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/DemoPowerSupplyWithBuffer/DemoPowerSupplyWithBuffer.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.589188741054386]