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.001246/0.001246, allocations: 112 kB / 17.06 MB, free: 5.988 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.001272/0.001272, allocations: 195.9 kB / 18 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.414/1.414, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1869/0.1869, allocations: 38.04 MB / 329.9 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002667/0.002667, allocations: 67.89 kB / 457.7 MB, free: 7.355 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3733/0.376, allocations: 58.06 MB / 0.5036 GB, free: 7.516 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine): time 0.007996/0.3841, allocations: 7.625 MB / 0.5111 GB, free: 2.207 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.009057/0.3932, allocations: 5.369 MB / 0.5163 GB, free: 14.47 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009056/0.3941, allocations: 26.34 kB / 0.5163 GB, free: 14.46 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01354/0.4077, allocations: 5.184 MB / 0.5214 GB, free: 12.88 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002657/0.4103, allocations: 0.6347 MB / 0.522 GB, free: 12.52 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001794/0.4121, allocations: 461.2 kB / 0.5225 GB, free: 12.27 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004057/0.4162, allocations: 2.207 MB / 0.5246 GB, free: 11.41 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00167/0.4179, allocations: 1.123 MB / 0.5257 GB, free: 10.88 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001443/0.4194, allocations: 0.638 MB / 0.5263 GB, free: 10.57 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001141/0.4205, allocations: 0.7396 MB / 0.5271 GB, free: 10.27 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001766/0.4207, allocations: 116.7 kB / 0.5272 GB, free: 10.27 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008865/0.4216, allocations: 394.5 kB / 0.5275 GB, free: 10.18 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005667/0.4222, allocations: 0.4967 MB / 0.528 GB, free: 9.969 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000695/0.4229, allocations: 0.5985 MB / 0.5286 GB, free: 9.547 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002004/0.4249, allocations: 1.716 MB / 0.5303 GB, free: 8.332 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.4249, allocations: 1.438 kB / 0.5303 GB, free: 8.332 MB / 398.1 MB Notification: Performance of FrontEnd: time 4.007e-06/0.4249, allocations: 0 / 0.5303 GB, free: 8.332 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.625e-05/0.425, allocations: 3.938 kB / 0.5303 GB, free: 8.328 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.002851/0.4278, allocations: 1.447 MB / 0.5317 GB, free: 7.223 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.643e-05/0.4279, allocations: 13.86 kB / 0.5317 GB, free: 7.219 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001771/0.428, allocations: 136.7 kB / 0.5319 GB, free: 7.105 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007072/0.4288, allocations: 160.9 kB / 0.532 GB, free: 7.023 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00182/0.4306, allocations: 0.9784 MB / 0.533 GB, free: 6.266 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.492e-05/0.4307, allocations: 61.8 kB / 0.533 GB, free: 6.238 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001863/0.4309, allocations: 88.77 kB / 0.5331 GB, free: 6.207 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001685/0.4326, allocations: 1.063 MB / 0.5341 GB, free: 5.543 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.447e-05/0.4326, allocations: 6.484 kB / 0.5342 GB, free: 5.539 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.33e-05/0.4327, allocations: 34.48 kB / 0.5342 GB, free: 5.512 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002316/0.4329, allocations: 77.45 kB / 0.5343 GB, free: 5.488 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001506/0.4344, allocations: 0.8368 MB / 0.5351 GB, free: 5.074 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006063/0.4405, allocations: 3.972 MB / 0.539 GB, free: 1.895 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001091/0.4416, allocations: 0.6299 MB / 0.5396 GB, free: 1.496 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004562/0.4421, allocations: 313.9 kB / 0.5399 GB, free: 1.332 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.202e-05/0.4422, allocations: 10.56 kB / 0.5399 GB, free: 1.324 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.451e-05/0.4422, allocations: 38.81 kB / 0.5399 GB, free: 1.281 MB / 398.1 MB Notification: Performance of pre-optimization done (n=57): time 2.364e-06/0.4422, allocations: 0 / 0.5399 GB, free: 1.281 MB / 398.1 MB Notification: Performance of matching and sorting (n=65): time 0.004926/0.4472, allocations: 2.605 MB / 0.5425 GB, free: 15.6 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.412e-05/0.4473, allocations: 118.2 kB / 0.5426 GB, free: 15.46 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00092/0.4482, allocations: 0.6918 MB / 0.5432 GB, free: 15.07 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.705e-05/0.4483, allocations: 40.27 kB / 0.5433 GB, free: 15.02 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003954/0.4487, allocations: 499 kB / 0.5438 GB, free: 14.59 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000228/0.4489, allocations: 242.4 kB / 0.544 GB, free: 14.38 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002472/0.4491, allocations: 154.7 kB / 0.5441 GB, free: 14.28 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002194/0.4494, allocations: 400 kB / 0.5445 GB, free: 13.9 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000485/0.4499, allocations: 305.8 kB / 0.5448 GB, free: 13.75 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006662/0.4505, allocations: 0.5077 MB / 0.5453 GB, free: 13.33 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003944/0.4545, allocations: 1.675 MB / 0.5469 GB, free: 11.55 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.4545, allocations: 0 / 0.5469 GB, free: 11.55 MB / 414.1 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.002477/0.457, allocations: 1.279 MB / 0.5482 GB, free: 10.26 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.072e-05/0.457, allocations: 8 kB / 0.5482 GB, free: 10.25 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.409e-05/0.457, allocations: 8 kB / 0.5482 GB, free: 10.24 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001111/0.4582, allocations: 409.6 kB / 0.5486 GB, free: 9.836 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005314/0.4587, allocations: 151.7 kB / 0.5487 GB, free: 9.688 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008041/0.4668, allocations: 6.233 MB / 0.5548 GB, free: 3.156 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005731/0.4674, allocations: 31.95 kB / 0.5549 GB, free: 3.125 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.972e-05/0.4674, allocations: 35.98 kB / 0.5549 GB, free: 3.09 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.0005834/0.468, allocations: 349.5 kB / 0.5552 GB, free: 2.738 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001516/0.4682, allocations: 83.48 kB / 0.5553 GB, free: 2.656 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001706/0.4699, allocations: 0.9072 MB / 0.5562 GB, free: 1.727 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.035e-06/0.4699, allocations: 8 kB / 0.5562 GB, free: 1.719 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.012e-06/0.4699, allocations: 4 kB / 0.5562 GB, free: 1.715 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.768e-06/0.4699, allocations: 3.984 kB / 0.5562 GB, free: 1.711 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003372/0.4733, allocations: 2.01 MB / 0.5582 GB, free: 15.59 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.181e-06/0.4733, allocations: 3.984 kB / 0.5582 GB, free: 15.59 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006108/0.4739, allocations: 119.9 kB / 0.5583 GB, free: 15.47 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005452/0.4745, allocations: 186.5 kB / 0.5585 GB, free: 15.28 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.451e-05/0.4746, allocations: 27.98 kB / 0.5585 GB, free: 15.25 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005102/0.4797, allocations: 5.492 MB / 0.5639 GB, free: 9.344 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.369e-06/0.4797, allocations: 7.969 kB / 0.5639 GB, free: 9.336 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002068/0.4818, allocations: 1.271 MB / 0.5651 GB, free: 8.02 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003308/0.4821, allocations: 208.5 kB / 0.5653 GB, free: 7.797 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001106/0.4823, allocations: 23.98 kB / 0.5653 GB, free: 7.773 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003607/0.4826, allocations: 19.98 kB / 0.5654 GB, free: 7.754 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001076/0.4827, allocations: 48.44 kB / 0.5654 GB, free: 7.707 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.831e-05/0.4828, allocations: 23.98 kB / 0.5654 GB, free: 7.684 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0006766/0.4835, allocations: 495 kB / 0.5659 GB, free: 7.203 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4835, allocations: 0 / 0.5659 GB, free: 7.203 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001067/0.4846, allocations: 255.9 kB / 0.5661 GB, free: 6.953 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.003758/0.4883, allocations: 2.127 MB / 0.5682 GB, free: 4.922 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002131/0.4905, allocations: 1.145 MB / 0.5693 GB, free: 3.742 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.4905, allocations: 5.188 kB / 0.5693 GB, free: 3.738 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001061/0.4916, allocations: 0.718 MB / 0.57 GB, free: 2.984 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00102/0.4926, allocations: 187.3 kB / 0.5702 GB, free: 2.812 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01381/0.5064, allocations: 8.604 MB / 0.5786 GB, free: 9.871 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009619/0.5074, allocations: 1.146 MB / 0.5797 GB, free: 8.699 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0005576/0.508, allocations: 166.6 kB / 0.5799 GB, free: 8.531 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005207/0.5085, allocations: 351.3 kB / 0.5802 GB, free: 8.188 MB / 446.1 MB Notification: Performance of SimCode: time 6.61e-07/0.5085, allocations: 0 / 0.5802 GB, free: 8.188 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05972/0.5683, allocations: 21.32 MB / 0.6011 GB, free: 3.043 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.82/15.39, allocations: 15.75 kB / 0.6011 GB, free: 3.027 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