Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.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.Generation.WindGeneratorLine,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_WindGeneratorLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_WindGeneratorLine",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.001813/0.001813, allocations: 109.8 kB / 17.06 MB, free: 6.016 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.001825/0.001825, allocations: 191 kB / 18 MB, free: 5.102 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.476/1.476, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1903/0.1903, allocations: 38.04 MB / 329.9 MB, free: 8.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 59.91 kB / 457.7 MB, free: 7.344 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3448/0.346, allocations: 58.06 MB / 0.5036 GB, free: 7.41 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine): time 0.008527/0.3546, allocations: 7.614 MB / 0.5111 GB, free: 2.117 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.008488/0.3631, allocations: 5.37 MB / 0.5163 GB, free: 14.38 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008156/0.364, allocations: 34.41 kB / 0.5163 GB, free: 14.37 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01263/0.3766, allocations: 5.18 MB / 0.5214 GB, free: 12.78 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002508/0.3792, allocations: 0.6493 MB / 0.522 GB, free: 12.41 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001842/0.381, allocations: 455.1 kB / 0.5225 GB, free: 12.17 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004767/0.3858, allocations: 2.217 MB / 0.5246 GB, free: 11.3 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002074/0.3879, allocations: 1.129 MB / 0.5257 GB, free: 10.76 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001729/0.3897, allocations: 0.6421 MB / 0.5264 GB, free: 10.46 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001684/0.3914, allocations: 0.7334 MB / 0.5271 GB, free: 10.16 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004095/0.3918, allocations: 120.1 kB / 0.5272 GB, free: 10.16 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00122/0.393, allocations: 392.6 kB / 0.5276 GB, free: 10.07 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008641/0.3939, allocations: 0.4911 MB / 0.5281 GB, free: 9.871 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001326/0.3952, allocations: 0.5992 MB / 0.5286 GB, free: 9.488 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002678/0.3979, allocations: 1.716 MB / 0.5303 GB, free: 8.297 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.398, allocations: 0 / 0.5303 GB, free: 8.297 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.398, allocations: 0 / 0.5303 GB, free: 8.297 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.415e-05/0.398, allocations: 1.25 kB / 0.5303 GB, free: 8.297 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: 208 * Number of variables: 208 Notification: Performance of Generate backend data structure: time 0.003627/0.4017, allocations: 1.454 MB / 0.5317 GB, free: 7.184 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.117e-05/0.4017, allocations: 17.73 kB / 0.5318 GB, free: 7.176 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002281/0.4019, allocations: 129.3 kB / 0.5319 GB, free: 7.07 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008183/0.4028, allocations: 156.7 kB / 0.532 GB, free: 6.992 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002214/0.405, allocations: 0.9869 MB / 0.533 GB, free: 6.227 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.781e-05/0.4051, allocations: 57 kB / 0.533 GB, free: 6.203 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002451/0.4053, allocations: 89.77 kB / 0.5331 GB, free: 6.172 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002022/0.4074, allocations: 1.062 MB / 0.5342 GB, free: 5.508 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.57e-05/0.4074, allocations: 6.047 kB / 0.5342 GB, free: 5.504 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.459e-05/0.4075, allocations: 36.05 kB / 0.5342 GB, free: 5.477 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002553/0.4078, allocations: 76.7 kB / 0.5343 GB, free: 5.453 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001645/0.4094, allocations: 0.8409 MB / 0.5351 GB, free: 5.035 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006548/0.416, allocations: 3.971 MB / 0.539 GB, free: 1.855 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001133/0.4172, allocations: 0.6299 MB / 0.5396 GB, free: 1.457 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004814/0.4177, allocations: 314.6 kB / 0.5399 GB, free: 1.293 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.663e-05/0.4177, allocations: 11.48 kB / 0.5399 GB, free: 1.285 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.469e-05/0.4178, allocations: 45.88 kB / 0.5399 GB, free: 1.234 MB / 398.1 MB Notification: Performance of pre-optimization done (n=57): time 2.495e-06/0.4178, allocations: 3.938 kB / 0.5399 GB, free: 1.23 MB / 398.1 MB Notification: Performance of matching and sorting (n=65): time 0.005454/0.4232, allocations: 2.597 MB / 0.5425 GB, free: 15.56 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.627e-05/0.4233, allocations: 110.8 kB / 0.5426 GB, free: 15.43 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001159/0.4245, allocations: 0.6958 MB / 0.5433 GB, free: 15.03 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.451e-05/0.4246, allocations: 40.42 kB / 0.5433 GB, free: 14.98 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003933/0.425, allocations: 494.5 kB / 0.5438 GB, free: 14.55 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002473/0.4253, allocations: 246.8 kB / 0.544 GB, free: 14.34 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002506/0.4255, allocations: 154.7 kB / 0.5442 GB, free: 14.24 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002056/0.4257, allocations: 396.2 kB / 0.5445 GB, free: 13.86 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005598/0.4263, allocations: 301.4 kB / 0.5448 GB, free: 13.72 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006587/0.427, allocations: 0.5142 MB / 0.5453 GB, free: 13.29 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004056/0.431, allocations: 1.685 MB / 0.547 GB, free: 11.52 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.289e-05/0.4311, allocations: 0 / 0.547 GB, free: 11.52 MB / 414.1 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.002798/0.4339, allocations: 1.282 MB / 0.5482 GB, free: 10.23 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.143e-05/0.434, allocations: 8.344 kB / 0.5482 GB, free: 10.22 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.861e-05/0.434, allocations: 8 kB / 0.5482 GB, free: 10.21 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00114/0.4351, allocations: 401.3 kB / 0.5486 GB, free: 9.812 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000563/0.4357, allocations: 151.8 kB / 0.5488 GB, free: 9.664 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008495/0.4442, allocations: 6.237 MB / 0.5549 GB, free: 3.129 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000765/0.445, allocations: 27.95 kB / 0.5549 GB, free: 3.102 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001259/0.4452, allocations: 39.98 kB / 0.5549 GB, free: 3.062 MB / 414.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.windGen.WT.turbine.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * 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 (75): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 0 * 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): 1 system {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,21)} Notification: Performance of prepare postOptimizeDAE: time 0.0006909/0.4459, allocations: 352.9 kB / 0.5553 GB, free: 2.711 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002408/0.4461, allocations: 87.48 kB / 0.5553 GB, free: 2.625 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001779/0.4479, allocations: 0.8994 MB / 0.5562 GB, free: 1.703 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.098e-05/0.4479, allocations: 12.08 kB / 0.5562 GB, free: 1.691 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.117e-06/0.4479, allocations: 4 kB / 0.5562 GB, free: 1.688 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.638e-06/0.448, allocations: 3.984 kB / 0.5562 GB, free: 1.684 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003905/0.4519, allocations: 2.014 MB / 0.5582 GB, free: 15.57 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.46e-06/0.4519, allocations: 0 / 0.5582 GB, free: 15.57 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006209/0.4525, allocations: 120 kB / 0.5583 GB, free: 15.45 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005778/0.4531, allocations: 186.4 kB / 0.5585 GB, free: 15.26 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.036e-05/0.4532, allocations: 23.98 kB / 0.5585 GB, free: 15.23 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004592/0.4578, allocations: 5.484 MB / 0.5639 GB, free: 9.328 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.844e-06/0.4579, allocations: 7.969 kB / 0.5639 GB, free: 9.32 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002074/0.46, allocations: 1.271 MB / 0.5651 GB, free: 8.004 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004941/0.4605, allocations: 208.5 kB / 0.5653 GB, free: 7.781 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001773/0.4607, allocations: 23.98 kB / 0.5654 GB, free: 7.758 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004218/0.4611, allocations: 15.98 kB / 0.5654 GB, free: 7.742 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001163/0.4612, allocations: 56.44 kB / 0.5654 GB, free: 7.688 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.761e-05/0.4613, allocations: 16 kB / 0.5654 GB, free: 7.672 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0007624/0.4621, allocations: 499 kB / 0.5659 GB, free: 7.188 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.4621, allocations: 0 / 0.5659 GB, free: 7.188 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001202/0.4633, allocations: 251.9 kB / 0.5662 GB, free: 6.941 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 11 (windGen.generator.i[3],windGen.generator.psi_rd[1],windGen.generator.psi_rq[1],windGen.WT.genRotor.phi,windGen.WT.genRotor.w,windGen.WT.turbine.phi,windGen.WT.turbine.w,windGen.WT.gear.phi,windGen.WT.gear.w,line.i[1],line.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 (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,5,100.0%), (1,5,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.003366/0.4666, allocations: 2.137 MB / 0.5682 GB, free: 4.898 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002437/0.4691, allocations: 1.138 MB / 0.5694 GB, free: 3.727 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.005e-05/0.4691, allocations: 8 kB / 0.5694 GB, free: 3.719 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001117/0.4703, allocations: 0.7177 MB / 0.5701 GB, free: 2.965 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001284/0.4716, allocations: 177.6 kB / 0.5702 GB, free: 2.797 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01425/0.4858, allocations: 8.617 MB / 0.5786 GB, free: 9.848 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008915/0.4868, allocations: 1.146 MB / 0.5798 GB, free: 8.676 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0005146/0.4873, allocations: 158.6 kB / 0.5799 GB, free: 8.516 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000461/0.4878, allocations: 355.2 kB / 0.5803 GB, free: 8.168 MB / 446.1 MB Notification: Performance of SimCode: time 6.41e-07/0.4878, allocations: 0 / 0.5803 GB, free: 8.168 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05223/0.54, allocations: 21.33 MB / 0.6011 GB, free: 3.02 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.53/15.07, allocations: 15.81 kB / 0.6011 GB, free: 3.004 MB / 462.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_WindGeneratorLine.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches