Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) 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.AC3ph.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Inverters_InverterToLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Inverters_InverterToLoad",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001584/0.00159, allocations: 112.6 kB / 17.06 MB, free: 5.965 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001695/0.001695, allocations: 200 kB / 18.01 MB, free: 5.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.367/1.367, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1728/0.1728, allocations: 38.04 MB / 329.9 MB, free: 8.738 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.001249, allocations: 64.08 kB / 457.7 MB, free: 7.348 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4125/0.4138, allocations: 58.06 MB / 0.5036 GB, free: 7.449 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad): time 0.00673/0.4206, allocations: 6.474 MB / 0.51 GB, free: 2.953 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003542/0.4241, allocations: 2.447 MB / 0.5123 GB, free: 1.262 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003812/0.4245, allocations: 28.44 kB / 0.5124 GB, free: 1.25 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001111/0.4257, allocations: 437.6 kB / 0.5128 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001272/0.427, allocations: 0.5913 MB / 0.5134 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001085/0.4281, allocations: 497.6 kB / 0.5138 GB, free: 468 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002101/0.4302, allocations: 1.963 MB / 0.5158 GB, free: 15.61 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001451/0.4316, allocations: 0.8576 MB / 0.5166 GB, free: 15.22 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001806/0.4335, allocations: 0.7933 MB / 0.5174 GB, free: 14.9 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001896/0.4354, allocations: 0.9668 MB / 0.5183 GB, free: 14.57 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002906/0.4357, allocations: 160.2 kB / 0.5185 GB, free: 14.57 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001456/0.4371, allocations: 0.6486 MB / 0.5191 GB, free: 14.43 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008732/0.438, allocations: 0.643 MB / 0.5197 GB, free: 14.18 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001053/0.4391, allocations: 0.6732 MB / 0.5204 GB, free: 13.78 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002863/0.442, allocations: 2.047 MB / 0.5224 GB, free: 13.07 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.442, allocations: 0 / 0.5224 GB, free: 13.07 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.442, allocations: 0 / 0.5224 GB, free: 13.07 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.996e-05/0.442, allocations: 4 kB / 0.5224 GB, free: 13.07 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: 251 * Number of variables: 251 Notification: Performance of Generate backend data structure: time 0.005389/0.4474, allocations: 1.933 MB / 0.5243 GB, free: 12 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.357e-05/0.4475, allocations: 14.59 kB / 0.5243 GB, free: 11.99 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003013/0.4478, allocations: 166.7 kB / 0.5244 GB, free: 11.89 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009386/0.4487, allocations: 165.3 kB / 0.5246 GB, free: 11.83 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002537/0.4513, allocations: 0.9745 MB / 0.5256 GB, free: 11.33 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006986/0.452, allocations: 0.5032 MB / 0.526 GB, free: 10.89 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003203/0.4523, allocations: 98.91 kB / 0.5261 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004353/0.4567, allocations: 2.015 MB / 0.5281 GB, free: 9.676 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.624e-05/0.4567, allocations: 1.094 kB / 0.5281 GB, free: 9.676 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001573/0.4569, allocations: 39.58 kB / 0.5281 GB, free: 9.645 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00023/0.4571, allocations: 88.17 kB / 0.5282 GB, free: 9.621 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005153/0.4623, allocations: 2.245 MB / 0.5304 GB, free: 8.543 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01064/0.473, allocations: 5.663 MB / 0.536 GB, free: 4.609 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004873/0.4779, allocations: 1.798 MB / 0.5377 GB, free: 3.652 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002657/0.4806, allocations: 1.153 MB / 0.5388 GB, free: 3.059 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001031/0.4807, allocations: 15.77 kB / 0.5389 GB, free: 3.055 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00303/0.4837, allocations: 1.394 MB / 0.5402 GB, free: 2.254 MB / 398.1 MB Notification: Performance of pre-optimization done (n=123): time 3.346e-06/0.4838, allocations: 0 / 0.5402 GB, free: 2.254 MB / 398.1 MB Notification: Performance of matching and sorting (n=124): time 0.01367/0.4974, allocations: 5.652 MB / 0.5457 GB, free: 13.09 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.253e-05/0.4975, allocations: 102 kB / 0.5458 GB, free: 12.97 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006062/0.4981, allocations: 0.4901 MB / 0.5463 GB, free: 12.47 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001443/0.4983, allocations: 57.7 kB / 0.5464 GB, free: 12.41 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000344/0.4986, allocations: 377.5 kB / 0.5467 GB, free: 12.04 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004146/0.4991, allocations: 432.3 kB / 0.5471 GB, free: 11.61 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004399/0.4995, allocations: 222.9 kB / 0.5473 GB, free: 11.38 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001744/0.4997, allocations: 398.7 kB / 0.5477 GB, free: 10.98 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001991/0.5017, allocations: 1.025 MB / 0.5487 GB, free: 9.961 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002112/0.5038, allocations: 1.184 MB / 0.5499 GB, free: 8.738 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003821/0.5077, allocations: 2.036 MB / 0.5519 GB, free: 6.656 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.5077, allocations: 4 kB / 0.5519 GB, free: 6.652 MB / 414.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.01071/0.5184, allocations: 3.9 MB / 0.5557 GB, free: 2.734 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.573e-05/0.5185, allocations: 61.67 kB / 0.5557 GB, free: 2.668 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.287e-05/0.5185, allocations: 7.938 kB / 0.5558 GB, free: 2.66 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005722/0.5242, allocations: 2.067 MB / 0.5578 GB, free: 0.5898 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009178/0.5252, allocations: 191.8 kB / 0.558 GB, free: 412 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02665/0.5518, allocations: 11.31 MB / 0.569 GB, free: 4.945 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002082/0.554, allocations: 159.8 kB / 0.5692 GB, free: 4.789 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005128/0.5545, allocations: 75.94 kB / 0.5692 GB, free: 4.715 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 28 (inverter.modulator.t0[3],$PRE.inverter.modulator.t0[3],inverter.modulator.t0[2],$PRE.inverter.modulator.t0[2],inverter.modulator.t0[1],$PRE.inverter.modulator.t0[1],inverter.modulator.sigdel_t[3],$PRE.inverter.modulator.sigdel_t[3],inverter.modulator.sigdel_t[2],$PRE.inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[1],$PRE.inverter.modulator.sigdel_t[1],inverter.modulator.gates[6],$PRE.inverter.modulator.gates[6],inverter.modulator.gates[5],$PRE.inverter.modulator.gates[5],inverter.modulator.gates[4],$PRE.inverter.modulator.gates[4],inverter.modulator.gates[3],$PRE.inverter.modulator.gates[3],inverter.modulator.gates[2],$PRE.inverter.modulator.gates[2],inverter.modulator.gates[1],$PRE.inverter.modulator.gates[1],system.initime,$whenCondition1,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (106): * Single equations (assignments): 101 * Array equations: 3 * Algorithm blocks: 1 * 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 {(6,21)} Notification: Performance of prepare postOptimizeDAE: time 0.001359/0.5559, allocations: 381.4 kB / 0.5696 GB, free: 4.332 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005032/0.5564, allocations: 83.47 kB / 0.5697 GB, free: 4.25 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006184/0.5626, allocations: 2.365 MB / 0.572 GB, free: 1.875 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.479e-05/0.5627, allocations: 27.98 kB / 0.572 GB, free: 1.848 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.5627, allocations: 0 / 0.572 GB, free: 1.848 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.45e-05/0.5627, allocations: 7.984 kB / 0.572 GB, free: 1.84 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008865/0.5716, allocations: 4.097 MB / 0.576 GB, free: 13.66 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.888e-06/0.5716, allocations: 4 kB / 0.576 GB, free: 13.65 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01088/0.5825, allocations: 2.025 MB / 0.578 GB, free: 11.62 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.509e-05/0.5826, allocations: 7.938 kB / 0.578 GB, free: 11.62 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003134/0.5829, allocations: 35.97 kB / 0.578 GB, free: 11.58 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.686e-05/0.5829, allocations: 8.125 kB / 0.578 GB, free: 11.57 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.337e-06/0.5829, allocations: 11.98 kB / 0.5781 GB, free: 11.56 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009134/0.5921, allocations: 3.863 MB / 0.5818 GB, free: 7.652 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009986/0.5931, allocations: 344.4 kB / 0.5822 GB, free: 7.297 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000431/0.5936, allocations: 91.97 kB / 0.5822 GB, free: 7.207 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001535/0.5951, allocations: 187.7 kB / 0.5824 GB, free: 7.023 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004232/0.5955, allocations: 184.7 kB / 0.5826 GB, free: 6.844 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001447/0.5957, allocations: 43.97 kB / 0.5826 GB, free: 6.801 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0005228/0.5962, allocations: 342.8 kB / 0.583 GB, free: 6.465 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.5962, allocations: 4 kB / 0.583 GB, free: 6.461 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001573/0.5978, allocations: 359.9 kB / 0.5833 GB, free: 6.109 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 9 (meterDC.pav,meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],pqLoad.psi[1],pqLoad.psi[2],pqLoad.psi[3],pqLoad.Z[1],pqLoad.Z[2]) * Number of discrete variables: 16 ($whenCondition3,$whenCondition2,$whenCondition1,system.initime,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.sigdel_t[1],inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[3],inverter.modulator.t0[1],inverter.modulator.t0[2],inverter.modulator.t0[3]) * Number of discrete states: 12 (inverter.modulator.t0[3],inverter.modulator.sigdel_t[3],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.t0[2],inverter.modulator.sigdel_t[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.t0[1],inverter.modulator.sigdel_t[1],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 96 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00908/0.6069, allocations: 4.54 MB / 0.5877 GB, free: 1.508 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006949/0.6139, allocations: 3.002 MB / 0.5907 GB, free: 14.48 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.163e-06/0.6139, allocations: 0 / 0.5907 GB, free: 14.48 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006262/0.6202, allocations: 1.93 MB / 0.5926 GB, free: 12.55 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001378/0.6216, allocations: 187.3 kB / 0.5927 GB, free: 12.38 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03626/0.6579, allocations: 15.67 MB / 0.608 GB, free: 12.43 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001084/0.659, allocations: 1.148 MB / 0.6092 GB, free: 11.25 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001111/0.6601, allocations: 310.8 kB / 0.6095 GB, free: 10.95 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007275/0.6609, allocations: 343.3 kB / 0.6098 GB, free: 10.61 MB / 478.1 MB Notification: Performance of SimCode: time 8.22e-07/0.6609, allocations: 0 / 0.6098 GB, free: 10.61 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06283/0.7237, allocations: 32.71 MB / 0.6417 GB, free: 10.14 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.89/13.62, allocations: 7.938 kB / 0.6417 GB, free: 10.13 MB / 0.4981 GB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.0002 PowerSystems_latest_PowerSystems_Examples_AC3ph_Inverters_InverterToLoad.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches