Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.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.001981/0.001981, allocations: 107.1 kB / 20.44 MB, free: 1.324 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.001779/0.001779, allocations: 196.5 kB / 23.72 MB, free: 4.492 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.57/1.57, allocations: 230.6 MB / 257.5 MB, free: 7.777 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.2164/0.2164, allocations: 38.55 MB / 352.5 MB, free: 12.39 MB / 286.1 MB " [Timeout remaining time 179] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) 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(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|meterAC.i|meterAC.p|meterAC.v|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|meterAC.i|meterAC.p|meterAC.v|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter") [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002375/0.002375, allocations: 67.89 kB / 493 MB, free: 4.176 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3679/0.3703, allocations: 62.47 MB / 0.5424 GB, free: 396 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.01165/0.382, allocations: 6.198 MB / 0.5485 GB, free: 11.68 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003439/0.3854, allocations: 1.281 MB / 0.5497 GB, free: 10.67 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004722/0.3859, allocations: 39.53 kB / 0.5498 GB, free: 10.64 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004815/0.3863, allocations: 133.5 kB / 0.5499 GB, free: 10.53 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001375/0.3877, allocations: 430.5 kB / 0.5503 GB, free: 10.18 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006379/0.3884, allocations: 234.4 kB / 0.5505 GB, free: 9.996 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001388/0.3897, allocations: 1.128 MB / 0.5516 GB, free: 9.359 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004335/0.3902, allocations: 247.7 kB / 0.5519 GB, free: 9.215 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008837/0.3911, allocations: 0.5228 MB / 0.5524 GB, free: 8.914 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000833/0.3919, allocations: 0.537 MB / 0.5529 GB, free: 8.605 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001205/0.392, allocations: 68.97 kB / 0.553 GB, free: 8.602 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000162/0.3922, allocations: 65.41 kB / 0.553 GB, free: 8.602 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003929/0.3926, allocations: 339 kB / 0.5534 GB, free: 8.387 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004027/0.393, allocations: 336.4 kB / 0.5537 GB, free: 8.188 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001145/0.3941, allocations: 0.9296 MB / 0.5546 GB, free: 7.551 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.3941, allocations: 1.031 kB / 0.5546 GB, free: 7.551 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.3941, allocations: 0 / 0.5546 GB, free: 7.551 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.384e-05/0.3941, allocations: 0 / 0.5546 GB, free: 7.551 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.002276/0.3964, allocations: 1.098 MB / 0.5557 GB, free: 6.547 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/0.3965, allocations: 11.98 kB / 0.5557 GB, free: 6.535 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002009/0.3967, allocations: 88.42 kB / 0.5558 GB, free: 6.449 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00126/0.3979, allocations: 0.5439 MB / 0.5563 GB, free: 5.879 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002251/0.3981, allocations: 223.6 kB / 0.5565 GB, free: 5.621 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001366/0.3983, allocations: 67.98 kB / 0.5566 GB, free: 5.555 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00172/0.4, allocations: 0.8653 MB / 0.5574 GB, free: 4.648 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.145e-05/0.4, allocations: 0 / 0.5574 GB, free: 4.648 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.47e-05/0.4001, allocations: 24 kB / 0.5574 GB, free: 4.625 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001401/0.4002, allocations: 41.28 kB / 0.5575 GB, free: 4.586 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001299/0.4015, allocations: 0.6178 MB / 0.5581 GB, free: 3.965 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00403/0.4056, allocations: 2.435 MB / 0.5605 GB, free: 1.449 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001651/0.4072, allocations: 0.5624 MB / 0.561 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007702/0.408, allocations: 304.3 kB / 0.5613 GB, free: 0.5703 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.694e-05/0.408, allocations: 8.266 kB / 0.5613 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007728/0.4088, allocations: 346.8 kB / 0.5616 GB, free: 208 kB / 398.1 MB Notification: Performance of pre-optimization done (n=41): time 2.134e-06/0.4088, allocations: 0 / 0.5616 GB, free: 208 kB / 398.1 MB Notification: Performance of matching and sorting (n=42): time 0.004406/0.4132, allocations: 1.684 MB / 0.5633 GB, free: 14.48 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001159/0.4133, allocations: 122.8 kB / 0.5634 GB, free: 14.33 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005594/0.4139, allocations: 457.8 kB / 0.5638 GB, free: 13.88 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.953e-05/0.4139, allocations: 37.7 kB / 0.5639 GB, free: 13.84 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003282/0.4143, allocations: 372.4 kB / 0.5642 GB, free: 13.46 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001459/0.4144, allocations: 150.8 kB / 0.5644 GB, free: 13.32 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001864/0.4146, allocations: 118.3 kB / 0.5645 GB, free: 13.2 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001917/0.4148, allocations: 366.8 kB / 0.5648 GB, free: 12.83 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000388/0.4152, allocations: 254.9 kB / 0.5651 GB, free: 12.57 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005139/0.4157, allocations: 424.2 kB / 0.5655 GB, free: 12.08 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008851/0.4166, allocations: 0.6172 MB / 0.5661 GB, free: 11.39 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.4166, allocations: 3.938 kB / 0.5661 GB, free: 11.38 MB / 414.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001407/0.418, allocations: 0.8405 MB / 0.5669 GB, free: 10.52 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.646e-05/0.4181, allocations: 56.5 kB / 0.567 GB, free: 10.46 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.068e-05/0.4181, allocations: 4 kB / 0.567 GB, free: 10.45 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003303/0.4184, allocations: 89.59 kB / 0.5671 GB, free: 10.36 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004188/0.4188, allocations: 107.8 kB / 0.5672 GB, free: 10.25 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003197/0.422, allocations: 2.995 MB / 0.5701 GB, free: 7.055 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005713/0.4226, allocations: 36.19 kB / 0.5701 GB, free: 7.02 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.372e-05/0.4227, allocations: 47.84 kB / 0.5702 GB, free: 6.973 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,dc_ac.modulator.t0,$PRE.dc_ac.modulator.t0,dc_ac.modulator.sigdel_t,$PRE.dc_ac.modulator.sigdel_t,dc_ac.modulator.gates[4],$PRE.dc_ac.modulator.gates[4],dc_ac.modulator.gates[3],$PRE.dc_ac.modulator.gates[3],dc_ac.modulator.gates[2],$PRE.dc_ac.modulator.gates[2],dc_ac.modulator.gates[1],$PRE.dc_ac.modulator.gates[1],$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006486/0.4233, allocations: 270.2 kB / 0.5704 GB, free: 6.699 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000114/0.4235, allocations: 51.67 kB / 0.5705 GB, free: 6.648 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001609/0.4251, allocations: 0.6244 MB / 0.5711 GB, free: 6.008 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.987e-06/0.4251, allocations: 8 kB / 0.5711 GB, free: 6 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.4251, allocations: 4 kB / 0.5711 GB, free: 5.996 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.808e-06/0.4251, allocations: 3.984 kB / 0.5711 GB, free: 5.992 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002621/0.4277, allocations: 1.289 MB / 0.5724 GB, free: 4.652 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.4277, allocations: 0 / 0.5724 GB, free: 4.652 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003382/0.428, allocations: 59.91 kB / 0.5724 GB, free: 4.594 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003143/0.4284, allocations: 97.58 kB / 0.5725 GB, free: 4.492 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.552e-05/0.4284, allocations: 20.05 kB / 0.5725 GB, free: 4.473 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002907/0.4313, allocations: 2.991 MB / 0.5754 GB, free: 1.281 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.4313, allocations: 0 / 0.5754 GB, free: 1.281 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002163/0.4335, allocations: 0.9969 MB / 0.5764 GB, free: 260 kB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002827/0.4338, allocations: 91.66 kB / 0.5765 GB, free: 168 kB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001137/0.4339, allocations: 31.92 kB / 0.5765 GB, free: 136 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003887/0.4343, allocations: 39.95 kB / 0.5766 GB, free: 96 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.856e-05/0.4344, allocations: 31.94 kB / 0.5766 GB, free: 64 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.544e-05/0.4344, allocations: 15.98 kB / 0.5766 GB, free: 48 kB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004026/0.4348, allocations: 303.1 kB / 0.5769 GB, free: 15.75 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4348, allocations: 0 / 0.5769 GB, free: 15.75 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0007818/0.4356, allocations: 151.9 kB / 0.5771 GB, free: 15.6 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (ind.i[1],ind.i[2],meterAC.pav,meterDC.pav) * Number of discrete variables: 8 ($whenCondition1,dc_ac.modulator.gates[1],dc_ac.modulator.gates[2],dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.sigdel_t,dc_ac.modulator.t0,system.initime) * Number of discrete states: 6 (dc_ac.modulator.t0,dc_ac.modulator.sigdel_t,dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.gates[1],dc_ac.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002039/0.4358, allocations: 135.3 kB / 0.5772 GB, free: 15.46 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001584/0.4374, allocations: 0.8841 MB / 0.578 GB, free: 14.54 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.756e-06/0.4374, allocations: 0 / 0.578 GB, free: 14.54 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001061/0.4384, allocations: 485.1 kB / 0.5785 GB, free: 14.04 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007603/0.4392, allocations: 125.5 kB / 0.5786 GB, free: 13.91 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00299/0.4422, allocations: 1.509 MB / 0.5801 GB, free: 12.36 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004851/0.4427, allocations: 378.1 kB / 0.5805 GB, free: 11.96 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003089/0.443, allocations: 92.64 kB / 0.5806 GB, free: 11.88 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001183/0.4431, allocations: 43.44 kB / 0.5806 GB, free: 11.83 MB / 430.1 MB Notification: Performance of SimCode: time 1.022e-06/0.4431, allocations: 4 kB / 0.5806 GB, free: 11.83 MB / 430.1 MB Notification: Performance of Templates: time 0.01718/0.4603, allocations: 7.658 MB / 0.5881 GB, free: 4.281 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.makefile [Timeout 660] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe 2>&1) [Timeout 480] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.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.753319265320897]