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.001039/0.001039, allocations: 92.19 kB / 16.65 MB, free: 6.59 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.001013/0.001013, allocations: 185.3 kB / 17.57 MB, free: 6.199 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.274/1.274, allocations: 223.2 MB / 241.6 MB, free: 140 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1708/0.1708, allocations: 38.09 MB / 330.8 MB, free: 8.848 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003212/0.0003212, allocations: 9.688 kB / 400.8 MB, free: 34.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1225/0.1229, allocations: 59.17 MB / 460 MB, free: 7 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine): time 0.008868/0.1318, allocations: 8.579 MB / 468.6 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009398/0.1412, allocations: 5.895 MB / 474.5 MB, free: 8.465 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001236/0.1425, allocations: 55.62 kB / 474.5 MB, free: 8.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008382/0.1509, allocations: 4.73 MB / 479.2 MB, free: 3.676 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002497/0.1534, allocations: 0.5914 MB / 479.8 MB, free: 3.082 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001328/0.1548, allocations: 407.5 kB / 480.2 MB, free: 2.684 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003412/0.1582, allocations: 2.939 MB / 483.2 MB, free: 15.73 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001793/0.16, allocations: 1.257 MB / 484.4 MB, free: 14.42 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000773/0.1608, allocations: 0.4978 MB / 484.9 MB, free: 13.92 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008791/0.1617, allocations: 0.7123 MB / 485.6 MB, free: 13.2 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.849e-05/0.1618, allocations: 52 kB / 485.7 MB, free: 13.15 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006826/0.1625, allocations: 339.5 kB / 486 MB, free: 12.82 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003851/0.1629, allocations: 434.8 kB / 486.4 MB, free: 12.39 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004817/0.1633, allocations: 0.5419 MB / 487 MB, free: 11.84 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001407/0.1648, allocations: 1.616 MB / 488.6 MB, free: 10.22 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.1648, allocations: 0 / 488.6 MB, free: 10.22 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.1648, allocations: 0 / 488.6 MB, free: 10.22 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.655e-05/0.1648, allocations: 0 / 488.6 MB, free: 10.22 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.002309/0.1671, allocations: 1.222 MB / 489.8 MB, free: 8.945 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.924e-05/0.1672, allocations: 8.031 kB / 489.8 MB, free: 8.938 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001657/0.1673, allocations: 135.3 kB / 490 MB, free: 8.797 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006491/0.168, allocations: 151.6 kB / 490.1 MB, free: 8.648 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001608/0.1696, allocations: 0.9402 MB / 491.1 MB, free: 7.668 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.195e-05/0.1697, allocations: 61.98 kB / 491.1 MB, free: 7.605 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001908/0.1699, allocations: 83.91 kB / 491.2 MB, free: 7.523 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00163/0.1715, allocations: 1.071 MB / 492.3 MB, free: 6.414 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.46e-05/0.1716, allocations: 8 kB / 492.3 MB, free: 6.406 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.111e-05/0.1716, allocations: 31.98 kB / 492.3 MB, free: 6.375 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002219/0.1719, allocations: 77.95 kB / 492.4 MB, free: 6.297 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001323/0.1732, allocations: 0.8353 MB / 493.2 MB, free: 5.465 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005215/0.1784, allocations: 4.012 MB / 497.2 MB, free: 1.266 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009365/0.1794, allocations: 0.6224 MB / 497.9 MB, free: 0.6055 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004226/0.1798, allocations: 321.5 kB / 498.2 MB, free: 296 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.387e-05/0.1799, allocations: 8.562 kB / 498.2 MB, free: 288 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.172e-05/0.1799, allocations: 43.06 kB / 498.2 MB, free: 236 kB / 366.1 MB Notification: Performance of pre-optimization done (n=57): time 1.914e-06/0.1799, allocations: 0 / 498.2 MB, free: 236 kB / 366.1 MB Notification: Performance of matching and sorting (n=65): time 0.004411/0.1843, allocations: 2.59 MB / 0.4891 GB, free: 13.54 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.366e-05/0.1844, allocations: 123.5 kB / 0.4892 GB, free: 13.39 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008253/0.1853, allocations: 0.6957 MB / 0.4899 GB, free: 12.69 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.993e-05/0.1853, allocations: 37.7 kB / 0.4899 GB, free: 12.65 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003727/0.1857, allocations: 483.1 kB / 0.4904 GB, free: 12.17 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001715/0.1859, allocations: 240.6 kB / 0.4906 GB, free: 11.93 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.333e-05/0.186, allocations: 77.67 kB / 0.4907 GB, free: 11.85 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001531/0.1861, allocations: 386.8 kB / 0.491 GB, free: 11.46 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004628/0.1866, allocations: 309.8 kB / 0.4913 GB, free: 11.16 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000576/0.1872, allocations: 0.5228 MB / 0.4918 GB, free: 10.55 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003618/0.1908, allocations: 1.668 MB / 0.4935 GB, free: 8.777 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.04e-06/0.1908, allocations: 4 kB / 0.4935 GB, free: 8.773 MB / 382.1 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.00215/0.193, allocations: 1.278 MB / 0.4947 GB, free: 7.48 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2e-05/0.193, allocations: 4 kB / 0.4947 GB, free: 7.477 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.045e-05/0.1931, allocations: 8 kB / 0.4947 GB, free: 7.469 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001063/0.1941, allocations: 413.5 kB / 0.4951 GB, free: 7.059 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005099/0.1946, allocations: 151.8 kB / 0.4953 GB, free: 6.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006906/0.2016, allocations: 5.726 MB / 0.5009 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005677/0.2022, allocations: 31.98 kB / 0.5009 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.065e-05/0.2022, allocations: 32 kB / 0.5009 GB, free: 0.8359 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 sytem: $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.0006231/0.2029, allocations: 369.3 kB / 0.5013 GB, free: 476 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001163/0.203, allocations: 78.97 kB / 0.5014 GB, free: 396 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2136/0.4166, allocations: 0.8807 MB / 0.5022 GB, free: 55.79 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.535e-05/0.4167, allocations: 7.531 kB / 0.5022 GB, free: 55.79 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.4167, allocations: 4.219 kB / 0.5022 GB, free: 55.79 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.768e-05/0.4167, allocations: 4.094 kB / 0.5022 GB, free: 55.79 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003651/0.4204, allocations: 2.016 MB / 0.5042 GB, free: 55.29 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.11e-06/0.4204, allocations: 1.375 kB / 0.5042 GB, free: 55.29 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005936/0.421, allocations: 121.2 kB / 0.5043 GB, free: 55.29 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005609/0.4216, allocations: 188.6 kB / 0.5045 GB, free: 55.27 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.445e-05/0.4216, allocations: 24.38 kB / 0.5045 GB, free: 55.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003388/0.425, allocations: 5 MB / 0.5094 GB, free: 51.22 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.4251, allocations: 2.219 kB / 0.5094 GB, free: 51.22 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001881/0.4269, allocations: 1.268 MB / 0.5106 GB, free: 50.64 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002946/0.4272, allocations: 210 kB / 0.5108 GB, free: 50.51 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.882e-05/0.4274, allocations: 26.14 kB / 0.5109 GB, free: 50.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003304/0.4277, allocations: 19.55 kB / 0.5109 GB, free: 50.49 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001048/0.4278, allocations: 46.83 kB / 0.5109 GB, free: 50.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.23e-05/0.4279, allocations: 19.55 kB / 0.5109 GB, free: 50.48 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006351/0.4285, allocations: 0.4918 MB / 0.5114 GB, free: 50.27 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4285, allocations: 0 / 0.5114 GB, free: 50.27 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009928/0.4295, allocations: 247.6 kB / 0.5117 GB, free: 50.24 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.002715/0.4322, allocations: 2.124 MB / 0.5137 GB, free: 49.08 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001826/0.4341, allocations: 1.131 MB / 0.5148 GB, free: 48.53 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.4341, allocations: 1.031 kB / 0.5148 GB, free: 48.53 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008537/0.4349, allocations: 0.7107 MB / 0.5155 GB, free: 48.05 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009908/0.4359, allocations: 184.8 kB / 0.5157 GB, free: 47.99 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.013/0.449, allocations: 9.389 MB / 0.5249 GB, free: 42.58 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000608/0.4496, allocations: 1.139 MB / 0.526 GB, free: 41.82 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005342/0.4501, allocations: 166.5 kB / 0.5262 GB, free: 41.78 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003645/0.4505, allocations: 353.7 kB / 0.5265 GB, free: 41.51 MB / 382.1 MB Notification: Performance of SimCode: time 8.62e-07/0.4505, allocations: 0 / 0.5265 GB, free: 41.51 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03282/0.4833, allocations: 19.93 MB / 0.546 GB, free: 25.29 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001572/0.4835, allocations: 291.4 kB / 0.5462 GB, free: 24.92 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.208/2.692, allocations: 4.484 kB / 0.5462 GB, free: 24.91 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