Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001831/0.001831, allocations: 70.58 kB / 21.24 MB, free: 0.5469 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001745/0.001745, allocations: 159.3 kB / 24.5 MB, free: 3.719 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.411/1.411, allocations: 177.2 MB / 204.9 MB, free: 9.02 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=99999,variableFilter="time|dcPowerSupply.v|dcPowerSupply.i|bufferCapacitor.v|bufferCapacitor.i",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer") translateModel(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=99999,variableFilter="time|dcPowerSupply.v|dcPowerSupply.i|bufferCapacitor.v|bufferCapacitor.i",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001546/0.001546, allocations: 55.66 kB / 325.6 MB, free: 252 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09151/0.09306, allocations: 53.35 MB / 378.9 MB, free: 15.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer): time 0.003991/0.09705, allocations: 2.482 MB / 381.4 MB, free: 13.13 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001236/0.09829, allocations: 0.6467 MB / 382.1 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001243/0.09841, allocations: 4 kB / 382.1 MB, free: 12.47 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000149/0.09856, allocations: 35.64 kB / 382.1 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001672/0.09873, allocations: 79.28 kB / 382.2 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002868/0.09902, allocations: 99.86 kB / 382.3 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004357/0.09945, allocations: 362.7 kB / 382.6 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001722/0.09962, allocations: 61.06 kB / 382.7 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001817/0.09981, allocations: 147.5 kB / 382.8 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002126/0.1, allocations: 131.4 kB / 383 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.778e-05/0.1001, allocations: 32 kB / 383 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.886e-05/0.1001, allocations: 32 kB / 383 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.189e-05/0.1002, allocations: 59.77 kB / 383.1 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001465/0.1004, allocations: 119.5 kB / 383.2 MB, free: 11.33 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003771/0.1007, allocations: 334.7 kB / 383.5 MB, free: 11 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.1007, allocations: 4 kB / 383.5 MB, free: 11 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1007, allocations: 0 / 383.5 MB, free: 11 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.292e-06/0.1007, allocations: 0 / 383.5 MB, free: 11 MB / 350.1 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.001111/0.1019, allocations: 0.5711 MB / 384.1 MB, free: 10.38 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.287e-05/0.1019, allocations: 8.031 kB / 384.1 MB, free: 10.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.038e-05/0.102, allocations: 40.75 kB / 384.1 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003303/0.1023, allocations: 199.3 kB / 384.3 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001333/0.1024, allocations: 149.6 kB / 384.5 MB, free: 9.938 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.017e-05/0.1025, allocations: 24.38 kB / 384.5 MB, free: 9.914 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005607/0.103, allocations: 332 kB / 384.8 MB, free: 9.559 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.196e-05/0.1031, allocations: 0 / 384.8 MB, free: 9.559 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.612e-05/0.1031, allocations: 8 kB / 384.8 MB, free: 9.551 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.736e-06/0.1031, allocations: 8 kB / 384.9 MB, free: 9.543 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005187/0.1036, allocations: 205.8 kB / 385.1 MB, free: 9.344 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001196/0.1048, allocations: 0.7155 MB / 385.8 MB, free: 8.582 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004923/0.1053, allocations: 186.7 kB / 385.9 MB, free: 8.391 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003057/0.1056, allocations: 113.1 kB / 386.1 MB, free: 8.277 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.729e-05/0.1056, allocations: 4 kB / 386.1 MB, free: 8.273 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004307/0.1061, allocations: 262.8 kB / 386.3 MB, free: 7.977 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.804e-06/0.1061, allocations: 4 kB / 386.3 MB, free: 7.973 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001429/0.1075, allocations: 412.8 kB / 386.7 MB, free: 7.562 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.468e-05/0.1076, allocations: 110.8 kB / 386.8 MB, free: 7.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002004/0.1078, allocations: 195.8 kB / 387 MB, free: 7.227 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.694e-05/0.1078, allocations: 37.69 kB / 387.1 MB, free: 7.184 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001143/0.1079, allocations: 156.3 kB / 387.2 MB, free: 7.027 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.023e-05/0.108, allocations: 71.38 kB / 387.3 MB, free: 6.957 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001073/0.1081, allocations: 57.92 kB / 387.3 MB, free: 6.895 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001434/0.1082, allocations: 330.9 kB / 387.7 MB, free: 6.562 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003095/0.1085, allocations: 159.5 kB / 387.8 MB, free: 6.395 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003403/0.1089, allocations: 221.9 kB / 388 MB, free: 6.148 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005017/0.1094, allocations: 247.1 kB / 388.3 MB, free: 5.887 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.1094, allocations: 4.031 kB / 388.3 MB, free: 5.883 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008651/0.1102, allocations: 462.8 kB / 388.7 MB, free: 5.398 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.747e-05/0.1103, allocations: 70.2 kB / 388.8 MB, free: 5.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.1103, allocations: 0 / 388.8 MB, free: 5.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003323/0.1106, allocations: 104.8 kB / 388.9 MB, free: 5.215 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001871/0.1108, allocations: 31.97 kB / 388.9 MB, free: 5.184 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00245/0.1133, allocations: 1.935 MB / 390.9 MB, free: 3.145 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004801/0.1138, allocations: 63.83 kB / 390.9 MB, free: 3.082 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.692e-05/0.1138, allocations: 8 kB / 390.9 MB, free: 3.074 MB / 350.1 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.0001479/0.1139, allocations: 146.5 kB / 391.1 MB, free: 2.922 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.099e-05/0.114, allocations: 23.84 kB / 391.1 MB, free: 2.898 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.445e-05/0.114, allocations: 25.81 kB / 391.1 MB, free: 2.871 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.684e-06/0.114, allocations: 7.938 kB / 391.1 MB, free: 2.863 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.653e-06/0.114, allocations: 0 / 391.1 MB, free: 2.863 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.114, allocations: 3.984 kB / 391.1 MB, free: 2.859 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004151/0.1145, allocations: 343.2 kB / 391.5 MB, free: 2.484 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.1145, allocations: 4 kB / 391.5 MB, free: 2.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001672/0.1146, allocations: 39.94 kB / 391.5 MB, free: 2.441 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002608/0.1149, allocations: 108.7 kB / 391.6 MB, free: 2.332 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.852e-05/0.1149, allocations: 8 kB / 391.6 MB, free: 2.324 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00218/0.1171, allocations: 1.923 MB / 393.6 MB, free: 308 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1171, allocations: 0 / 393.6 MB, free: 308 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000906/0.118, allocations: 398.6 kB / 393.9 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.585e-05/0.1181, allocations: 47.92 kB / 394 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.064e-05/0.1181, allocations: 3.938 kB / 394 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002158/0.1183, allocations: 23.97 kB / 394 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.171e-05/0.1184, allocations: 27.95 kB / 394.1 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.662e-05/0.1184, allocations: 8 kB / 394.1 MB, free: 15.77 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000124/0.1186, allocations: 141.5 kB / 394.2 MB, free: 15.64 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1186, allocations: 0 / 394.2 MB, free: 15.64 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004077/0.119, allocations: 91.89 kB / 394.3 MB, free: 15.55 MB / 366.1 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.000126/0.1191, allocations: 115.2 kB / 394.4 MB, free: 15.43 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009561/0.1201, allocations: 0.5152 MB / 394.9 MB, free: 14.86 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.1201, allocations: 4 kB / 394.9 MB, free: 14.86 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004604/0.1205, allocations: 238.7 kB / 395.2 MB, free: 14.61 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003476/0.1209, allocations: 59.75 kB / 395.2 MB, free: 14.55 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001218/0.1221, allocations: 0.5276 MB / 395.7 MB, free: 14 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001721/0.1223, allocations: 142.2 kB / 395.9 MB, free: 13.84 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.684e-05/0.1223, allocations: 13.64 kB / 395.9 MB, free: 13.83 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.41e-05/0.1224, allocations: 16.5 kB / 395.9 MB, free: 13.81 MB / 366.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1224, allocations: 4 kB / 395.9 MB, free: 13.81 MB / 366.1 MB Notification: Performance of Templates: time 0.009727/0.1321, allocations: 4.805 MB / 400.7 MB, free: 9.062 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/DemoPowerSupplyWithBuffer/DemoPowerSupplyWithBuffer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.354619126068428]