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: translateModel(PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|sensor.p.1.|sensor.p.2.|sensor.p.3.|windGen.generator.slip",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine") translateModel(PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|sensor.p.1.|sensor.p.2.|sensor.p.3.|windGen.generator.slip",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001081/0.001082, allocations: 104.6 kB / 16.51 MB, free: 6.652 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.001146/0.001146, allocations: 194.4 kB / 17.42 MB, free: 6.066 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.441/1.441, allocations: 222.9 MB / 241.1 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1747/0.1747, allocations: 38.03 MB / 329.3 MB, free: 9.086 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001186/0.001186, allocations: 66.08 kB / 398.1 MB, free: 34.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1104, allocations: 58.07 MB / 456.2 MB, free: 8.535 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine): time 0.01048/0.1209, allocations: 9.048 MB / 465.2 MB, free: 15.44 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009953/0.1309, allocations: 6.011 MB / 471.2 MB, free: 9.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001406/0.1323, allocations: 55.69 kB / 471.3 MB, free: 9.355 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01099/0.1433, allocations: 5.068 MB / 476.4 MB, free: 4.277 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00218/0.1455, allocations: 0.5914 MB / 476.9 MB, free: 3.684 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001296/0.1469, allocations: 415.4 kB / 477.3 MB, free: 3.277 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004145/0.151, allocations: 2.931 MB / 480.3 MB, free: 348 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002022/0.1531, allocations: 0.9682 MB / 481.2 MB, free: 15.34 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001499/0.1546, allocations: 0.529 MB / 481.8 MB, free: 14.81 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001651/0.1563, allocations: 0.7552 MB / 482.5 MB, free: 14.05 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000334/0.1566, allocations: 64 kB / 482.6 MB, free: 13.99 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009802/0.1576, allocations: 355.5 kB / 482.9 MB, free: 13.64 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000528/0.1581, allocations: 450.8 kB / 483.4 MB, free: 13.2 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006996/0.1588, allocations: 0.5402 MB / 483.9 MB, free: 12.66 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001838/0.1607, allocations: 1.667 MB / 485.6 MB, free: 10.99 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.873e-06/0.1607, allocations: 4 kB / 485.6 MB, free: 10.98 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.1607, allocations: 0 / 485.6 MB, free: 10.98 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.385e-05/0.1607, allocations: 0 / 485.6 MB, free: 10.98 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.003023/0.1638, allocations: 1.421 MB / 487 MB, free: 9.508 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.721e-05/0.1638, allocations: 12.03 kB / 487 MB, free: 9.496 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000782/0.1646, allocations: 155.5 kB / 487.2 MB, free: 9.344 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001792/0.1664, allocations: 0.9368 MB / 488.1 MB, free: 8.367 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.044e-05/0.1665, allocations: 58 kB / 488.2 MB, free: 8.309 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001852/0.1667, allocations: 95.88 kB / 488.3 MB, free: 8.215 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001694/0.1684, allocations: 1.067 MB / 489.3 MB, free: 7.109 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.411e-05/0.1684, allocations: 7.938 kB / 489.3 MB, free: 7.102 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.101e-05/0.1685, allocations: 31.98 kB / 489.4 MB, free: 7.07 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000226/0.1688, allocations: 69.95 kB / 489.4 MB, free: 7 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001355/0.1701, allocations: 0.8392 MB / 490.3 MB, free: 6.164 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006141/0.1763, allocations: 4 MB / 494.3 MB, free: 1.977 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00116/0.1775, allocations: 0.6337 MB / 494.9 MB, free: 1.305 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004878/0.178, allocations: 317.7 kB / 495.2 MB, free: 0.9922 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.756e-05/0.1781, allocations: 12.55 kB / 495.2 MB, free: 0.9805 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.164e-05/0.1781, allocations: 39.11 kB / 495.3 MB, free: 0.9336 MB / 366.1 MB Notification: Performance of pre-optimization done (n=57): time 2.385e-06/0.1781, allocations: 4 kB / 495.3 MB, free: 0.9297 MB / 366.1 MB Notification: Performance of matching and sorting (n=65): time 0.005022/0.1832, allocations: 2.575 MB / 497.8 MB, free: 14.25 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.339e-05/0.1833, allocations: 115.3 kB / 498 MB, free: 14.12 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001062/0.1843, allocations: 0.6995 MB / 498.7 MB, free: 13.41 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.423e-05/0.1844, allocations: 37.7 kB / 498.7 MB, free: 13.37 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003372/0.1847, allocations: 479.5 kB / 499.2 MB, free: 12.89 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001863/0.1849, allocations: 232.6 kB / 499.4 MB, free: 12.66 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002323/0.1852, allocations: 150.6 kB / 499.5 MB, free: 12.51 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001954/0.1854, allocations: 402.7 kB / 499.9 MB, free: 12.11 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004742/0.1859, allocations: 309.8 kB / 0.4885 GB, free: 11.8 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006115/0.1865, allocations: 0.511 MB / 0.489 GB, free: 11.2 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004247/0.1907, allocations: 1.668 MB / 0.4906 GB, free: 9.43 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.738e-06/0.1908, allocations: 4 kB / 0.4906 GB, free: 9.426 MB / 382.1 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.00326/0.194, allocations: 1.271 MB / 0.4919 GB, free: 8.141 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.225e-05/0.1941, allocations: 11.94 kB / 0.4919 GB, free: 8.129 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.92e-05/0.1941, allocations: 12.19 kB / 0.4919 GB, free: 8.117 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001542/0.1957, allocations: 405.3 kB / 0.4923 GB, free: 7.715 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007622/0.1965, allocations: 159.7 kB / 0.4924 GB, free: 7.559 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01041/0.2069, allocations: 5.71 MB / 0.498 GB, free: 1.562 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009775/0.2079, allocations: 35.89 kB / 0.4981 GB, free: 1.527 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001884/0.2081, allocations: 36 kB / 0.4981 GB, free: 1.492 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.001063/0.2092, allocations: 357.5 kB / 0.4984 GB, free: 1.133 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003433/0.2096, allocations: 79.06 kB / 0.4985 GB, free: 1.055 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002455/0.212, allocations: 0.8994 MB / 0.4994 GB, free: 132 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.261e-05/0.2121, allocations: 11.94 kB / 0.4994 GB, free: 120 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.128e-05/0.2121, allocations: 7.938 kB / 0.4994 GB, free: 112 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.203e-05/0.2121, allocations: 3.984 kB / 0.4994 GB, free: 108 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004889/0.217, allocations: 2.005 MB / 0.5014 GB, free: 13.99 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.044e-06/0.217, allocations: 0 / 0.5014 GB, free: 13.99 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008855/0.2179, allocations: 119.9 kB / 0.5015 GB, free: 13.88 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007048/0.2187, allocations: 182.6 kB / 0.5017 GB, free: 13.69 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.252e-05/0.2188, allocations: 31.92 kB / 0.5017 GB, free: 13.66 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005465/0.2242, allocations: 5.008 MB / 0.5066 GB, free: 8.25 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.2243, allocations: 4.031 kB / 0.5066 GB, free: 8.246 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002525/0.2268, allocations: 1.262 MB / 0.5078 GB, free: 6.938 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006031/0.2274, allocations: 208.1 kB / 0.508 GB, free: 6.715 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002198/0.2276, allocations: 23.92 kB / 0.508 GB, free: 6.691 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000575/0.2282, allocations: 16 kB / 0.508 GB, free: 6.676 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000161/0.2284, allocations: 56.42 kB / 0.5081 GB, free: 6.621 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.648e-05/0.2285, allocations: 16 kB / 0.5081 GB, free: 6.605 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00109/0.2296, allocations: 499 kB / 0.5086 GB, free: 6.125 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.2296, allocations: 0 / 0.5086 GB, free: 6.125 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001621/0.2312, allocations: 252 kB / 0.5088 GB, free: 5.879 MB / 398.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.001385/0.2326, allocations: 422.5 kB / 0.5092 GB, free: 5.609 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002937/0.2356, allocations: 1.138 MB / 0.5103 GB, free: 4.445 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.669e-06/0.2356, allocations: 0 / 0.5103 GB, free: 4.445 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001346/0.2369, allocations: 0.7102 MB / 0.511 GB, free: 3.695 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001465/0.2384, allocations: 184.7 kB / 0.5112 GB, free: 3.516 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00591/0.2444, allocations: 2.874 MB / 0.514 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2153/0.4597, allocations: 1.144 MB / 0.5151 GB, free: 69.53 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007338/0.4604, allocations: 157.9 kB / 0.5153 GB, free: 69.52 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002031/0.4606, allocations: 62.41 kB / 0.5154 GB, free: 69.51 MB / 398.1 MB Notification: Performance of SimCode: time 8.32e-07/0.4607, allocations: 2.188 kB / 0.5154 GB, free: 69.51 MB / 398.1 MB Notification: Performance of Templates: time 0.02588/0.4865, allocations: 11.97 MB / 0.527 GB, free: 67.48 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.makefile (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 & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches