Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.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.InverterAvToGrid,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid",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.001333/0.001333, allocations: 109.5 kB / 17.06 MB, free: 5.992 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.001336/0.001336, allocations: 196 kB / 18.01 MB, free: 5.074 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.392/1.392, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.184/0.184, allocations: 38.05 MB / 329.9 MB, free: 8.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001366/0.001366, allocations: 64.09 kB / 457.7 MB, free: 7.355 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2991/0.3005, allocations: 58.06 MB / 0.5036 GB, free: 7.391 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.00645/0.3069, allocations: 6.483 MB / 0.51 GB, free: 2.887 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002888/0.3099, allocations: 1.881 MB / 0.5118 GB, free: 1.57 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003602/0.3102, allocations: 30 kB / 0.5118 GB, free: 1.559 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0012/0.3115, allocations: 441.1 kB / 0.5122 GB, free: 1.301 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000929/0.3124, allocations: 428.3 kB / 0.5126 GB, free: 1.051 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009262/0.3133, allocations: 345.8 kB / 0.513 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001189/0.3145, allocations: 1.031 MB / 0.514 GB, free: 468 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007542/0.3153, allocations: 0.4946 MB / 0.5145 GB, free: 260 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008958/0.3162, allocations: 462.9 kB / 0.5149 GB, free: 56 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001055/0.3173, allocations: 0.5814 MB / 0.5155 GB, free: 15.83 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001384/0.3174, allocations: 66.12 kB / 0.5155 GB, free: 15.83 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007238/0.3182, allocations: 256.5 kB / 0.5158 GB, free: 15.78 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004861/0.3187, allocations: 366.6 kB / 0.5161 GB, free: 15.65 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000604/0.3193, allocations: 431.6 kB / 0.5165 GB, free: 15.4 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001697/0.321, allocations: 1.043 MB / 0.5176 GB, free: 15.01 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.321, allocations: 0 / 0.5176 GB, free: 15.01 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.945e-06/0.321, allocations: 4.703 kB / 0.5176 GB, free: 15 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.988e-05/0.321, allocations: 1.125 kB / 0.5176 GB, free: 15 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: 188 * Number of variables: 188 Notification: Performance of Generate backend data structure: time 0.00266/0.3237, allocations: 1.143 MB / 0.5187 GB, free: 14.23 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.265e-05/0.3237, allocations: 14.67 kB / 0.5187 GB, free: 14.23 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000154/0.3239, allocations: 115.5 kB / 0.5188 GB, free: 14.15 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007757/0.3247, allocations: 137.6 kB / 0.5189 GB, free: 14.09 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001192/0.3259, allocations: 0.6127 MB / 0.5195 GB, free: 13.71 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.672e-05/0.326, allocations: 51.98 kB / 0.5196 GB, free: 13.69 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001884/0.3261, allocations: 74.14 kB / 0.5197 GB, free: 13.66 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001821/0.328, allocations: 1.017 MB / 0.5207 GB, free: 13.23 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.667e-05/0.328, allocations: 1.031 kB / 0.5207 GB, free: 13.23 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.902e-05/0.3281, allocations: 23.38 kB / 0.5207 GB, free: 13.21 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002398/0.3283, allocations: 75.81 kB / 0.5207 GB, free: 13.2 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00168/0.33, allocations: 0.9769 MB / 0.5217 GB, free: 12.9 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00522/0.3353, allocations: 3.266 MB / 0.5249 GB, free: 10.96 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001182/0.3365, allocations: 0.6933 MB / 0.5256 GB, free: 10.68 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007046/0.3372, allocations: 427.9 kB / 0.526 GB, free: 10.53 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.727e-05/0.3373, allocations: 17.86 kB / 0.526 GB, free: 10.52 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.567e-05/0.3373, allocations: 41.28 kB / 0.526 GB, free: 10.47 MB / 398.1 MB Notification: Performance of pre-optimization done (n=73): time 2.946e-06/0.3373, allocations: 1.5 kB / 0.526 GB, free: 10.47 MB / 398.1 MB Notification: Performance of matching and sorting (n=75): time 0.00425/0.3416, allocations: 2.451 MB / 0.5284 GB, free: 9.168 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.588e-05/0.3416, allocations: 85.2 kB / 0.5285 GB, free: 9.074 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005489/0.3422, allocations: 439.3 kB / 0.5289 GB, free: 8.867 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.434e-05/0.3423, allocations: 40.3 kB / 0.529 GB, free: 8.824 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003227/0.3426, allocations: 360.5 kB / 0.5293 GB, free: 8.535 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002435/0.3428, allocations: 274.1 kB / 0.5296 GB, free: 8.32 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002502/0.3431, allocations: 152.4 kB / 0.5297 GB, free: 8.242 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001999/0.3433, allocations: 377.2 kB / 0.5301 GB, free: 7.902 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005411/0.3439, allocations: 340.9 kB / 0.5304 GB, free: 7.793 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001068/0.3449, allocations: 0.521 MB / 0.5309 GB, free: 7.465 MB / 398.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: ind.i[3] = ind.i_start[3] (0.0 = ind.i_start[3]) Notification: Performance of analyzeInitialSystem (initialization): time 0.007078/0.352, allocations: 2.235 MB / 0.5331 GB, free: 6.203 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.013e-05/0.3521, allocations: 1.5 kB / 0.5331 GB, free: 6.203 MB / 398.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001782/0.3538, allocations: 1.105 MB / 0.5342 GB, free: 5.594 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.149e-05/0.3539, allocations: 7.875 kB / 0.5342 GB, free: 5.594 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.448e-05/0.3539, allocations: 9 kB / 0.5342 GB, free: 5.59 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001666/0.3541, allocations: 46.61 kB / 0.5342 GB, free: 5.562 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007862/0.3549, allocations: 188.3 kB / 0.5344 GB, free: 5.516 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001288/0.3562, allocations: 1.5 MB / 0.5359 GB, free: 4.004 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005414/0.3567, allocations: 35.66 kB / 0.5359 GB, free: 3.984 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.077e-05/0.3568, allocations: 32.78 kB / 0.5359 GB, free: 3.977 MB / 398.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: ind.i[3] = ind.i_start[3]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 92 * Array equations: 2 * Algorithm blocks: 0 * 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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005246/0.3573, allocations: 286.8 kB / 0.5362 GB, free: 3.754 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001352/0.3575, allocations: 65.14 kB / 0.5363 GB, free: 3.719 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001495/0.359, allocations: 0.97 MB / 0.5372 GB, free: 3.117 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.856e-05/0.359, allocations: 17.94 kB / 0.5372 GB, free: 3.113 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.359, allocations: 9.031 kB / 0.5373 GB, free: 3.105 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.888e-06/0.359, allocations: 5.203 kB / 0.5373 GB, free: 3.102 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0033/0.3623, allocations: 1.995 MB / 0.5392 GB, free: 1.754 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.584e-06/0.3624, allocations: 4.469 kB / 0.5392 GB, free: 1.754 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000652/0.363, allocations: 146.6 kB / 0.5393 GB, free: 1.719 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001109/0.3631, allocations: 46.11 kB / 0.5394 GB, free: 1.691 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.886e-05/0.3632, allocations: 18.19 kB / 0.5394 GB, free: 1.684 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001053/0.3643, allocations: 1.498 MB / 0.5409 GB, free: 176 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.3e-06/0.3643, allocations: 4.594 kB / 0.5409 GB, free: 176 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00193/0.3662, allocations: 1.539 MB / 0.5424 GB, free: 15.16 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001892/0.3664, allocations: 138.8 kB / 0.5425 GB, free: 15.03 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.571e-05/0.3665, allocations: 33.91 kB / 0.5425 GB, free: 15.01 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003708/0.3669, allocations: 30.53 kB / 0.5426 GB, free: 14.99 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001017/0.367, allocations: 61.89 kB / 0.5426 GB, free: 14.96 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.18e-05/0.3671, allocations: 23.59 kB / 0.5427 GB, free: 14.95 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003604/0.3674, allocations: 299.8 kB / 0.5429 GB, free: 14.77 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3674, allocations: 4 kB / 0.5429 GB, free: 14.77 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008255/0.3683, allocations: 194.9 kB / 0.5431 GB, free: 14.73 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 6 (meterDC.pav,meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],ind.i[1],ind.i[2]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (75): * Single equations (assignments): 71 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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): 1 system {(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.002791/0.3711, allocations: 2.13 MB / 0.5452 GB, free: 12.8 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002187/0.3733, allocations: 0.9619 MB / 0.5461 GB, free: 11.82 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 8.586e-06/0.3733, allocations: 0 / 0.5461 GB, free: 11.82 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006756/0.374, allocations: 0.5186 MB / 0.5467 GB, free: 11.29 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009909/0.375, allocations: 152.9 kB / 0.5468 GB, free: 11.15 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009479/0.3845, allocations: 7.06 MB / 0.5537 GB, free: 3.691 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006813/0.3852, allocations: 1.013 MB / 0.5547 GB, free: 2.645 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005911/0.3858, allocations: 201.3 kB / 0.5549 GB, free: 2.445 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004493/0.3863, allocations: 279.3 kB / 0.5551 GB, free: 2.172 MB / 414.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3863, allocations: 4 kB / 0.5551 GB, free: 2.168 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05813/0.4444, allocations: 14.61 MB / 0.5694 GB, free: 3.766 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.52/10.97, allocations: 13.44 kB / 0.5694 GB, free: 3.754 MB / 430.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0002 PowerSystems_latest_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches