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.001287/0.001287, allocations: 111.4 kB / 16.51 MB, free: 6.707 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.001422/0.001422, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.248/1.248, allocations: 222.9 MB / 241.1 MB, free: 13.8 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1885/0.1885, allocations: 38.04 MB / 329.3 MB, free: 8.875 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001062/0.001062, allocations: 61.56 kB / 398.2 MB, free: 34.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08956/0.09063, allocations: 58.06 MB / 456.3 MB, free: 8.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine): time 0.009502/0.1002, allocations: 9.063 MB / 465.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009003/0.1092, allocations: 5.999 MB / 471.3 MB, free: 9.285 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000837/0.1101, allocations: 51.69 kB / 471.4 MB, free: 9.234 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008876/0.119, allocations: 5.079 MB / 476.4 MB, free: 4.148 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001599/0.1206, allocations: 0.5954 MB / 477 MB, free: 3.551 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001036/0.1217, allocations: 406.6 kB / 477.4 MB, free: 3.156 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003369/0.1251, allocations: 2.939 MB / 480.4 MB, free: 212 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001292/0.1264, allocations: 0.9527 MB / 481.3 MB, free: 15.23 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008897/0.1273, allocations: 0.5329 MB / 481.9 MB, free: 14.69 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009064/0.1282, allocations: 0.763 MB / 482.6 MB, free: 13.93 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001243/0.1283, allocations: 64 kB / 482.7 MB, free: 13.86 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006944/0.129, allocations: 355.5 kB / 483 MB, free: 13.52 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000437/0.1295, allocations: 446.8 kB / 483.5 MB, free: 13.08 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005726/0.1301, allocations: 0.5441 MB / 484 MB, free: 12.53 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001478/0.1315, allocations: 1.671 MB / 485.7 MB, free: 10.86 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.1316, allocations: 0 / 485.7 MB, free: 10.86 MB / 366.1 MB Notification: Performance of FrontEnd: time 8.12e-07/0.1316, allocations: 4 kB / 485.7 MB, free: 10.85 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.467e-05/0.1316, allocations: 0 / 485.7 MB, free: 10.85 MB / 366.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.002534/0.1341, allocations: 1.421 MB / 487.1 MB, free: 9.375 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.228e-05/0.1342, allocations: 8.031 kB / 487.1 MB, free: 9.367 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001587/0.1344, allocations: 131.3 kB / 487.2 MB, free: 9.23 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007148/0.1351, allocations: 151.5 kB / 487.4 MB, free: 9.082 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001522/0.1366, allocations: 0.9443 MB / 488.3 MB, free: 8.098 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.329e-05/0.1367, allocations: 58 kB / 488.4 MB, free: 8.039 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001806/0.1369, allocations: 99.89 kB / 488.5 MB, free: 7.941 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001591/0.1385, allocations: 1.063 MB / 489.6 MB, free: 6.84 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.72e-05/0.1385, allocations: 11.91 kB / 489.6 MB, free: 6.828 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.532e-05/0.1386, allocations: 35.98 kB / 489.6 MB, free: 6.793 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002164/0.1388, allocations: 69.95 kB / 489.7 MB, free: 6.723 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001332/0.1402, allocations: 0.8392 MB / 490.5 MB, free: 5.887 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005313/0.1455, allocations: 4.004 MB / 494.5 MB, free: 1.695 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009532/0.1465, allocations: 0.6181 MB / 495.1 MB, free: 1.039 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004097/0.1469, allocations: 315.3 kB / 495.4 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.795e-05/0.1469, allocations: 12.55 kB / 495.5 MB, free: 0.7148 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.801e-05/0.147, allocations: 43.39 kB / 495.5 MB, free: 0.6641 MB / 366.1 MB Notification: Performance of pre-optimization done (n=57): time 2.234e-06/0.147, allocations: 0 / 495.5 MB, free: 0.6641 MB / 366.1 MB Notification: Performance of matching and sorting (n=65): time 0.004478/0.1515, allocations: 2.579 MB / 498.1 MB, free: 13.98 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.391e-05/0.1516, allocations: 111.4 kB / 498.2 MB, free: 13.85 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008112/0.1524, allocations: 0.6956 MB / 498.9 MB, free: 13.15 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.608e-05/0.1524, allocations: 41.7 kB / 498.9 MB, free: 13.1 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003091/0.1527, allocations: 487.2 kB / 499.4 MB, free: 12.62 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001762/0.1529, allocations: 232.6 kB / 499.6 MB, free: 12.39 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002136/0.1532, allocations: 150.6 kB / 499.8 MB, free: 12.23 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001729/0.1533, allocations: 390.7 kB / 0.4884 GB, free: 11.84 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004578/0.1538, allocations: 313.8 kB / 0.4887 GB, free: 11.54 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00057/0.1544, allocations: 0.515 MB / 0.4892 GB, free: 10.93 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003623/0.158, allocations: 1.679 MB / 0.4909 GB, free: 9.148 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/0.158, allocations: 0 / 0.4909 GB, free: 9.148 MB / 382.1 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.002158/0.1602, allocations: 1.274 MB / 0.4921 GB, free: 7.859 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.914e-05/0.1602, allocations: 8 kB / 0.4921 GB, free: 7.852 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.938e-06/0.1602, allocations: 4 kB / 0.4921 GB, free: 7.848 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001024/0.1613, allocations: 417.4 kB / 0.4925 GB, free: 7.434 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004942/0.1618, allocations: 143.8 kB / 0.4927 GB, free: 7.293 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00667/0.1684, allocations: 5.73 MB / 0.4983 GB, free: 1.281 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005659/0.169, allocations: 35.89 kB / 0.4983 GB, free: 1.246 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.718e-05/0.1691, allocations: 28 kB / 0.4983 GB, free: 1.219 MB / 382.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.0005702/0.1697, allocations: 365.4 kB / 0.4987 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001306/0.1698, allocations: 83.05 kB / 0.4987 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1774/0.3472, allocations: 0.8866 MB / 0.4996 GB, free: 56.04 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.52e-05/0.3472, allocations: 8.484 kB / 0.4996 GB, free: 56.04 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.759e-06/0.3473, allocations: 2.688 kB / 0.4996 GB, free: 56.04 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.409e-05/0.3473, allocations: 3.672 kB / 0.4996 GB, free: 56.04 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003874/0.3512, allocations: 2.004 MB / 0.5016 GB, free: 55.55 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.308e-05/0.3512, allocations: 4.5 kB / 0.5016 GB, free: 55.55 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006334/0.3518, allocations: 122.4 kB / 0.5017 GB, free: 55.55 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005507/0.3524, allocations: 186 kB / 0.5019 GB, free: 55.53 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.371e-05/0.3525, allocations: 28.33 kB / 0.5019 GB, free: 55.53 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003632/0.3561, allocations: 4.997 MB / 0.5068 GB, free: 51.25 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/0.3561, allocations: 8.203 kB / 0.5068 GB, free: 51.24 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002012/0.3581, allocations: 1.265 MB / 0.508 GB, free: 50.66 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003349/0.3585, allocations: 201.7 kB / 0.5082 GB, free: 50.54 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001047/0.3586, allocations: 22.36 kB / 0.5082 GB, free: 50.53 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003376/0.3589, allocations: 19.34 kB / 0.5083 GB, free: 50.52 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001216/0.3591, allocations: 51.39 kB / 0.5083 GB, free: 50.51 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.668e-05/0.3591, allocations: 20.11 kB / 0.5083 GB, free: 50.51 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000707/0.3598, allocations: 0.4904 MB / 0.5088 GB, free: 50.29 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3599, allocations: 1.531 kB / 0.5088 GB, free: 50.29 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001044/0.3609, allocations: 250.5 kB / 0.509 GB, free: 50.27 MB / 382.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.002856/0.3638, allocations: 2.118 MB / 0.5111 GB, free: 49.11 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001928/0.3657, allocations: 1.128 MB / 0.5122 GB, free: 48.56 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/0.3657, allocations: 0 / 0.5122 GB, free: 48.56 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008796/0.3666, allocations: 0.7175 MB / 0.5129 GB, free: 48.09 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009534/0.3676, allocations: 174.5 kB / 0.5131 GB, free: 48.03 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0142/0.3818, allocations: 9.181 MB / 0.522 GB, free: 42.77 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009698/0.3828, allocations: 1.146 MB / 0.5232 GB, free: 42 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007481/0.3836, allocations: 163.9 kB / 0.5233 GB, free: 41.96 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004909/0.3841, allocations: 352.7 kB / 0.5237 GB, free: 41.69 MB / 382.1 MB Notification: Performance of SimCode: time 8.51e-07/0.3841, allocations: 0 / 0.5237 GB, free: 41.69 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03736/0.4214, allocations: 20.36 MB / 0.5435 GB, free: 26.63 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002244/0.4217, allocations: 297.2 kB / 0.5438 GB, free: 26.25 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.142/2.564, allocations: 0 / 0.5438 GB, free: 26.25 MB / 382.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_WindGeneratorLine_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-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.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches