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.001429/0.001429, allocations: 111.1 kB / 20.44 MB, free: 1.051 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.00253/0.00253, allocations: 212.4 kB / 23.73 MB, free: 4.152 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.473/1.473, allocations: 230.6 MB / 257.5 MB, free: 7.805 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.1914/0.1914, allocations: 38.55 MB / 352.5 MB, free: 12.3 MB / 286.1 MB " [Timeout remaining time 180] 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: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter",fmuType="me",version="2.0",platforms={"static"}) [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.00204/0.00204, allocations: 63.91 kB / 492.5 MB, free: 4.676 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3754/0.3775, allocations: 62.46 MB / 0.5419 GB, free: 240 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.008713/0.3862, allocations: 6.206 MB / 0.548 GB, free: 11.52 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003149/0.3893, allocations: 1.285 MB / 0.5493 GB, free: 10.5 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004244/0.3898, allocations: 35.88 kB / 0.5493 GB, free: 10.48 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003735/0.3901, allocations: 130 kB / 0.5494 GB, free: 10.37 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001114/0.3913, allocations: 430.1 kB / 0.5498 GB, free: 10.02 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005974/0.3919, allocations: 239.5 kB / 0.5501 GB, free: 9.832 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001469/0.3933, allocations: 1.127 MB / 0.5512 GB, free: 9.195 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004261/0.3938, allocations: 243.7 kB / 0.5514 GB, free: 9.055 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000976/0.3947, allocations: 0.5342 MB / 0.5519 GB, free: 8.742 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007978/0.3955, allocations: 0.5308 MB / 0.5524 GB, free: 8.441 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001157/0.3956, allocations: 63.97 kB / 0.5525 GB, free: 8.441 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001522/0.3958, allocations: 65.72 kB / 0.5525 GB, free: 8.441 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003479/0.3961, allocations: 350.2 kB / 0.5529 GB, free: 8.215 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003899/0.3965, allocations: 336.8 kB / 0.5532 GB, free: 8.016 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001069/0.3976, allocations: 0.9224 MB / 0.5541 GB, free: 7.387 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.3976, allocations: 4 kB / 0.5541 GB, free: 7.383 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3976, allocations: 0 / 0.5541 GB, free: 7.383 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.323e-05/0.3976, allocations: 1.094 kB / 0.5541 GB, free: 7.383 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.002151/0.3998, allocations: 1.103 MB / 0.5552 GB, free: 6.535 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.903e-05/0.3998, allocations: 12.39 kB / 0.5552 GB, free: 6.531 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001452/0.4, allocations: 111 kB / 0.5553 GB, free: 6.438 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000173/0.4001, allocations: 91.14 kB / 0.5554 GB, free: 6.391 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001169/0.4013, allocations: 0.5362 MB / 0.5559 GB, free: 5.828 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002018/0.4015, allocations: 223.5 kB / 0.5561 GB, free: 5.57 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001298/0.4016, allocations: 64 kB / 0.5562 GB, free: 5.508 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001676/0.4033, allocations: 0.8613 MB / 0.557 GB, free: 4.605 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.246e-05/0.4033, allocations: 3.938 kB / 0.557 GB, free: 4.602 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.272e-05/0.4034, allocations: 31.98 kB / 0.5571 GB, free: 4.57 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000118/0.4035, allocations: 37.28 kB / 0.5571 GB, free: 4.535 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001285/0.4048, allocations: 0.6218 MB / 0.5577 GB, free: 3.91 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004226/0.409, allocations: 2.544 MB / 0.5602 GB, free: 1.273 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001684/0.4107, allocations: 0.5657 MB / 0.5607 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007655/0.4115, allocations: 304.2 kB / 0.561 GB, free: 400 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.596e-05/0.4115, allocations: 8.266 kB / 0.561 GB, free: 392 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007652/0.4123, allocations: 350.7 kB / 0.5614 GB, free: 20 kB / 398.1 MB Notification: Performance of pre-optimization done (n=41): time 2.565e-06/0.4123, allocations: 0 / 0.5614 GB, free: 20 kB / 398.1 MB Notification: Performance of matching and sorting (n=42): time 0.004536/0.4168, allocations: 1.692 MB / 0.563 GB, free: 14.29 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001009/0.4169, allocations: 110.8 kB / 0.5631 GB, free: 14.15 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006901/0.4176, allocations: 0.5144 MB / 0.5636 GB, free: 13.63 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.605e-05/0.4177, allocations: 41.7 kB / 0.5637 GB, free: 13.58 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003315/0.418, allocations: 364.5 kB / 0.564 GB, free: 13.22 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001394/0.4181, allocations: 154.8 kB / 0.5642 GB, free: 13.07 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001961/0.4183, allocations: 118.3 kB / 0.5643 GB, free: 12.95 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001911/0.4185, allocations: 370.8 kB / 0.5646 GB, free: 12.57 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004139/0.4189, allocations: 266.8 kB / 0.5649 GB, free: 12.3 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00052/0.4194, allocations: 416.3 kB / 0.5653 GB, free: 11.82 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008717/0.4203, allocations: 0.621 MB / 0.5659 GB, free: 11.12 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.566e-06/0.4203, allocations: 0 / 0.5659 GB, free: 11.12 MB / 414.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001436/0.4218, allocations: 0.8362 MB / 0.5667 GB, free: 10.26 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.351e-05/0.4218, allocations: 57.62 kB / 0.5668 GB, free: 10.2 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.524e-05/0.4218, allocations: 11.98 kB / 0.5668 GB, free: 10.19 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003087/0.4221, allocations: 86.09 kB / 0.5669 GB, free: 10.1 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004259/0.4226, allocations: 107.8 kB / 0.567 GB, free: 9.992 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002991/0.4256, allocations: 3.044 MB / 0.5699 GB, free: 6.719 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004675/0.426, allocations: 35.92 kB / 0.57 GB, free: 6.684 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.377e-05/0.4261, allocations: 35.98 kB / 0.57 GB, free: 6.648 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.0005274/0.4266, allocations: 278.2 kB / 0.5703 GB, free: 6.367 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001021/0.4267, allocations: 59.62 kB / 0.5703 GB, free: 6.309 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001582/0.4283, allocations: 0.625 MB / 0.5709 GB, free: 5.672 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.104e-06/0.4283, allocations: 4 kB / 0.5709 GB, free: 5.668 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.788e-06/0.4283, allocations: 0 / 0.5709 GB, free: 5.668 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.065e-05/0.4283, allocations: 8.078 kB / 0.5709 GB, free: 5.66 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002775/0.4311, allocations: 1.374 MB / 0.5723 GB, free: 4.223 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.352e-06/0.4311, allocations: 8.062 kB / 0.5723 GB, free: 4.215 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003051/0.4314, allocations: 63.83 kB / 0.5724 GB, free: 4.152 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000292/0.4317, allocations: 97.56 kB / 0.5725 GB, free: 4.051 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.286e-05/0.4318, allocations: 15.98 kB / 0.5725 GB, free: 4.035 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002798/0.4346, allocations: 3.036 MB / 0.5754 GB, free: 0.7656 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.4346, allocations: 0 / 0.5754 GB, free: 0.7656 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002264/0.4368, allocations: 0.9971 MB / 0.5764 GB, free: 15.74 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002999/0.4371, allocations: 99.61 kB / 0.5765 GB, free: 15.64 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001056/0.4372, allocations: 27.98 kB / 0.5765 GB, free: 15.61 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004095/0.4376, allocations: 35.95 kB / 0.5766 GB, free: 15.58 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.146e-05/0.4377, allocations: 39.88 kB / 0.5766 GB, free: 15.54 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.76e-05/0.4378, allocations: 15.98 kB / 0.5766 GB, free: 15.52 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004759/0.4383, allocations: 354.8 kB / 0.577 GB, free: 15.18 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4383, allocations: 4 kB / 0.577 GB, free: 15.18 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0007882/0.439, allocations: 152 kB / 0.5771 GB, free: 15.03 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.002661/0.4417, allocations: 1.563 MB / 0.5786 GB, free: 13.43 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001707/0.4434, allocations: 0.8881 MB / 0.5795 GB, free: 12.5 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.4434, allocations: 4.125 kB / 0.5795 GB, free: 12.49 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009722/0.4444, allocations: 477.4 kB / 0.58 GB, free: 12 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009576/0.4453, allocations: 156.4 kB / 0.5801 GB, free: 11.86 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009567/0.4549, allocations: 6.083 MB / 0.586 GB, free: 5.477 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004824/0.4554, allocations: 378.3 kB / 0.5864 GB, free: 5.082 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003637/0.4558, allocations: 101 kB / 0.5865 GB, free: 4.984 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003779/0.4561, allocations: 223.4 kB / 0.5867 GB, free: 4.766 MB / 430.1 MB Notification: Performance of SimCode: time 8.52e-07/0.4561, allocations: 3.938 kB / 0.5867 GB, free: 4.762 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05428/0.5104, allocations: 14.43 MB / 0.6008 GB, free: 6.578 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.04/12.55, allocations: 3.938 kB / 0.6008 GB, free: 6.574 MB / 446.1 MB " [Timeout remaining time 647] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter_fmu --startTime=0 --stopTime=0.2 --stepSize=0.0002 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.mat","/var/lib/jenkins1/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: 15.65388663019985]