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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001563/0.001563, allocations: 124.8 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001933/0.001933, allocations: 186.9 kB / 20.73 MB, free: 2.332 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.436/1.436, allocations: 225.6 MB / 249.1 MB, free: 3.617 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1946/0.1946, allocations: 38.51 MB / 342.5 MB, free: 8.094 MB / 270.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> 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: Performance of FrontEnd - loaded program: time 0.00197/0.00197, allocations: 67.67 kB / 478.6 MB, free: 33.7 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1105, allocations: 61.24 MB / 0.5272 GB, free: 1.391 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.008905/0.1194, allocations: 6.563 MB / 0.5336 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002707/0.1221, allocations: 1.313 MB / 0.5349 GB, free: 9.48 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003506/0.1225, allocations: 23.88 kB / 0.5349 GB, free: 9.457 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003666/0.1228, allocations: 126.8 kB / 0.5351 GB, free: 9.332 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001026/0.1239, allocations: 441.8 kB / 0.5355 GB, free: 8.898 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005482/0.1244, allocations: 231.6 kB / 0.5357 GB, free: 8.672 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001448/0.1259, allocations: 1.118 MB / 0.5368 GB, free: 7.551 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005092/0.1264, allocations: 317.8 kB / 0.5371 GB, free: 7.234 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007942/0.1272, allocations: 0.4942 MB / 0.5376 GB, free: 6.738 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000835/0.128, allocations: 0.5684 MB / 0.5381 GB, free: 6.168 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001108/0.1281, allocations: 64 kB / 0.5382 GB, free: 6.105 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001299/0.1282, allocations: 64 kB / 0.5383 GB, free: 6.043 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003761/0.1286, allocations: 343.1 kB / 0.5386 GB, free: 5.707 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004322/0.129, allocations: 406.1 kB / 0.539 GB, free: 5.309 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001087/0.1301, allocations: 0.9143 MB / 0.5399 GB, free: 4.391 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.865e-06/0.1301, allocations: 4 kB / 0.5399 GB, free: 4.387 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1301, allocations: 0 / 0.5399 GB, free: 4.387 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.235e-05/0.1301, allocations: 0 / 0.5399 GB, free: 4.387 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.002379/0.1325, allocations: 1.167 MB / 0.541 GB, free: 3.152 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.629e-05/0.1326, allocations: 19.89 kB / 0.541 GB, free: 3.133 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001571/0.1327, allocations: 114.7 kB / 0.5411 GB, free: 3.012 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001932/0.1329, allocations: 88.42 kB / 0.5412 GB, free: 2.926 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001225/0.1342, allocations: 0.6083 MB / 0.5418 GB, free: 2.277 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001385/0.1343, allocations: 120.6 kB / 0.5419 GB, free: 2.148 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001165/0.1344, allocations: 64 kB / 0.542 GB, free: 2.086 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001617/0.136, allocations: 0.8652 MB / 0.5428 GB, free: 1.18 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.867e-05/0.1361, allocations: 0 / 0.5428 GB, free: 1.18 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.6e-05/0.1361, allocations: 28 kB / 0.5429 GB, free: 1.152 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000175/0.1363, allocations: 37.28 kB / 0.5429 GB, free: 1.113 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001278/0.1376, allocations: 0.6256 MB / 0.5435 GB, free: 496 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004102/0.1417, allocations: 2.747 MB / 0.5462 GB, free: 13.64 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001759/0.1434, allocations: 0.8719 MB / 0.547 GB, free: 12.68 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007207/0.1442, allocations: 298.2 kB / 0.5473 GB, free: 12.38 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.575e-05/0.1442, allocations: 4.328 kB / 0.5473 GB, free: 12.38 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007454/0.1449, allocations: 358.7 kB / 0.5477 GB, free: 12 MB / 414.1 MB Notification: Performance of pre-optimization done (n=41): time 2.194e-06/0.1449, allocations: 7.938 kB / 0.5477 GB, free: 12 MB / 414.1 MB Notification: Performance of matching and sorting (n=42): time 0.004403/0.1493, allocations: 1.997 MB / 0.5496 GB, free: 9.883 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.926e-05/0.1494, allocations: 110.8 kB / 0.5497 GB, free: 9.75 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006604/0.1501, allocations: 0.5105 MB / 0.5502 GB, free: 9.23 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.983e-05/0.1501, allocations: 37.7 kB / 0.5503 GB, free: 9.188 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003366/0.1505, allocations: 360.6 kB / 0.5506 GB, free: 8.828 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001552/0.1506, allocations: 154.8 kB / 0.5508 GB, free: 8.676 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001989/0.1508, allocations: 122.1 kB / 0.5509 GB, free: 8.551 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002151/0.151, allocations: 366.8 kB / 0.5512 GB, free: 8.184 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003828/0.1514, allocations: 225.1 kB / 0.5514 GB, free: 7.965 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005167/0.1519, allocations: 398 kB / 0.5518 GB, free: 7.508 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008343/0.1528, allocations: 0.6211 MB / 0.5524 GB, free: 6.809 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.1528, allocations: 0 / 0.5524 GB, free: 6.809 MB / 414.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001328/0.1541, allocations: 0.8945 MB / 0.5533 GB, free: 5.875 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.893e-05/0.1542, allocations: 53.69 kB / 0.5534 GB, free: 5.816 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.213e-05/0.1542, allocations: 11.92 kB / 0.5534 GB, free: 5.805 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003159/0.1545, allocations: 85.66 kB / 0.5534 GB, free: 5.715 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004341/0.1549, allocations: 107.8 kB / 0.5536 GB, free: 5.609 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002975/0.1579, allocations: 3.267 MB / 0.5567 GB, free: 2.062 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003819/0.1583, allocations: 27.98 kB / 0.5568 GB, free: 2.035 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.429e-05/0.1584, allocations: 39.97 kB / 0.5568 GB, free: 1.996 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.0003892/0.1588, allocations: 273.6 kB / 0.5571 GB, free: 1.719 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.766e-05/0.1588, allocations: 59.61 kB / 0.5571 GB, free: 1.66 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001503/0.1604, allocations: 0.7082 MB / 0.5578 GB, free: 0.9219 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.237e-06/0.1604, allocations: 11.98 kB / 0.5578 GB, free: 0.9102 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.397e-06/0.1604, allocations: 0 / 0.5578 GB, free: 0.9102 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.588e-06/0.1604, allocations: 3.984 kB / 0.5578 GB, free: 0.9062 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002647/0.163, allocations: 1.532 MB / 0.5593 GB, free: 15.29 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.163, allocations: 0 / 0.5593 GB, free: 15.29 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002916/0.1633, allocations: 59.89 kB / 0.5594 GB, free: 15.23 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002885/0.1636, allocations: 101.7 kB / 0.5595 GB, free: 15.12 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.729e-05/0.1636, allocations: 11.98 kB / 0.5595 GB, free: 15.11 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002791/0.1664, allocations: 3.251 MB / 0.5627 GB, free: 11.58 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.539e-06/0.1664, allocations: 4.031 kB / 0.5627 GB, free: 11.57 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002099/0.1685, allocations: 1.065 MB / 0.5637 GB, free: 10.46 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003041/0.1688, allocations: 172.7 kB / 0.5639 GB, free: 10.27 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001023/0.1689, allocations: 27.98 kB / 0.5639 GB, free: 10.25 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003984/0.1693, allocations: 43.94 kB / 0.5639 GB, free: 10.2 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.797e-05/0.1694, allocations: 39.83 kB / 0.564 GB, free: 10.16 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.693e-05/0.1695, allocations: 19.98 kB / 0.564 GB, free: 10.14 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004489/0.1699, allocations: 354.8 kB / 0.5643 GB, free: 9.801 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1699, allocations: 0 / 0.5643 GB, free: 9.801 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0007078/0.1706, allocations: 151.9 kB / 0.5645 GB, free: 9.652 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.002483/0.1731, allocations: 1.642 MB / 0.5661 GB, free: 7.957 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001642/0.1748, allocations: 0.855 MB / 0.5669 GB, free: 7.062 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.105e-06/0.1748, allocations: 0 / 0.5669 GB, free: 7.062 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000919/0.1757, allocations: 0.4899 MB / 0.5674 GB, free: 6.547 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008258/0.1765, allocations: 145.4 kB / 0.5675 GB, free: 6.414 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008921/0.1854, allocations: 6.103 MB / 0.5735 GB, free: 8 kB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000701/0.1861, allocations: 0.9721 MB / 0.5744 GB, free: 15.01 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0003369/0.1865, allocations: 104.9 kB / 0.5745 GB, free: 14.91 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003086/0.1868, allocations: 223.4 kB / 0.5748 GB, free: 14.69 MB / 446.1 MB Notification: Performance of SimCode: time 1.633e-06/0.1868, allocations: 4 kB / 0.5748 GB, free: 14.68 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0495/0.2363, allocations: 13.32 MB / 0.5878 GB, free: 1.551 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.79/11.03, allocations: 19.84 kB / 0.5878 GB, free: 1.531 MB / 446.1 MB " [Timeout remaining time 649] (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_2/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 14.031369606032968]