Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.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.LocalGeneration,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="DCpower.p|DCvoltage.v|Time",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration") translateModel(PowerSystems.Examples.AC3ph.Generation.LocalGeneration,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="DCpower.p|DCvoltage.v|Time",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001497/0.001497, allocations: 114.3 kB / 17.75 MB, free: 5.309 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.001435/0.001435, allocations: 185.3 kB / 18.67 MB, free: 4.395 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.286/1.286, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1674/0.1674, allocations: 38.03 MB / 330.6 MB, free: 8.793 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 63.91 kB / 458.8 MB, free: 6.891 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.275/0.2763, allocations: 58.05 MB / 0.5048 GB, free: 7.797 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.LocalGeneration): time 0.008954/0.2853, allocations: 9.25 MB / 0.5138 GB, free: 1.344 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004993/0.2903, allocations: 3.249 MB / 0.517 GB, free: 15.03 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008975/0.2912, allocations: 39.41 kB / 0.517 GB, free: 15.02 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001361/0.2926, allocations: 407 kB / 0.5174 GB, free: 14.78 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002049/0.2947, allocations: 0.7978 MB / 0.5182 GB, free: 14.32 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001122/0.2958, allocations: 478.3 kB / 0.5186 GB, free: 14.05 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002389/0.2982, allocations: 1.873 MB / 0.5205 GB, free: 13.17 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001419/0.2996, allocations: 1.119 MB / 0.5216 GB, free: 12.61 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001062/0.3007, allocations: 0.7602 MB / 0.5223 GB, free: 12.25 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000975/0.3017, allocations: 0.8088 MB / 0.5231 GB, free: 11.89 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001899/0.3019, allocations: 139 kB / 0.5232 GB, free: 11.89 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008093/0.3027, allocations: 385.8 kB / 0.5236 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004892/0.3032, allocations: 0.4945 MB / 0.5241 GB, free: 11.58 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006835/0.3039, allocations: 0.7043 MB / 0.5248 GB, free: 11.12 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002121/0.306, allocations: 1.994 MB / 0.5267 GB, free: 10.38 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.306, allocations: 0 / 0.5267 GB, free: 10.38 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.3061, allocations: 0 / 0.5267 GB, free: 10.38 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.541e-05/0.3061, allocations: 0 / 0.5267 GB, free: 10.38 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: 274 * Number of variables: 274 Notification: Performance of Generate backend data structure: time 0.003236/0.3093, allocations: 1.639 MB / 0.5283 GB, free: 9.348 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.865e-05/0.3094, allocations: 20.42 kB / 0.5283 GB, free: 9.336 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000704/0.3101, allocations: 185.5 kB / 0.5285 GB, free: 9.266 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001777/0.3119, allocations: 0.9459 MB / 0.5294 GB, free: 8.703 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.782e-05/0.3119, allocations: 80.91 kB / 0.5295 GB, free: 8.664 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002807/0.3122, allocations: 122.3 kB / 0.5296 GB, free: 8.625 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002103/0.3143, allocations: 1.347 MB / 0.5309 GB, free: 7.941 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.291e-05/0.3144, allocations: 6.125 kB / 0.531 GB, free: 7.938 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001114/0.3145, allocations: 46.2 kB / 0.531 GB, free: 7.902 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001095/0.3146, allocations: 66.41 kB / 0.5311 GB, free: 7.887 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001733/0.3164, allocations: 1.076 MB / 0.5321 GB, free: 7.348 MB / 398.1 MB Notification: The following initial equation is redundant and consistent due to simplifications in RemoveSimpleEquations and therefore removed from the initialization problem: 8.318498358936397e-4 * der(PMgen.generator.i_s[3]) = 0.0 -> 0.0 = 0.0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006473/0.3229, allocations: 5.088 MB / 0.5371 GB, free: 3.188 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00113/0.324, allocations: 0.7662 MB / 0.5378 GB, free: 2.695 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005121/0.3245, allocations: 346.5 kB / 0.5382 GB, free: 2.512 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.583e-05/0.3246, allocations: 8.344 kB / 0.5382 GB, free: 2.512 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.11e-05/0.3246, allocations: 41.59 kB / 0.5382 GB, free: 2.465 MB / 398.1 MB Notification: Performance of pre-optimization done (n=64): time 2.445e-06/0.3246, allocations: 1.125 kB / 0.5382 GB, free: 2.465 MB / 398.1 MB Notification: Performance of matching and sorting (n=71): time 0.005391/0.33, allocations: 2.673 MB / 0.5408 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.943e-05/0.3301, allocations: 140.6 kB / 0.541 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009021/0.331, allocations: 0.7536 MB / 0.5417 GB, free: 136 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.198e-05/0.3311, allocations: 37.2 kB / 0.5417 GB, free: 96 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000381/0.3315, allocations: 0.5586 MB / 0.5423 GB, free: 15.59 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001979/0.3317, allocations: 255.6 kB / 0.5425 GB, free: 15.37 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000242/0.3319, allocations: 165.2 kB / 0.5427 GB, free: 15.27 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001097/0.332, allocations: 335.3 kB / 0.543 GB, free: 14.94 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004996/0.3326, allocations: 302.6 kB / 0.5433 GB, free: 14.79 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006307/0.3332, allocations: 0.549 MB / 0.5438 GB, free: 14.3 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001234/0.3344, allocations: 0.9007 MB / 0.5447 GB, free: 13.62 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.991e-06/0.3344, allocations: 10.64 kB / 0.5447 GB, free: 13.61 MB / 414.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002752/0.3372, allocations: 1.332 MB / 0.546 GB, free: 12.91 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.932e-05/0.3372, allocations: 7.812 kB / 0.546 GB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.268e-05/0.3373, allocations: 13.19 kB / 0.546 GB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001413/0.3387, allocations: 424.8 kB / 0.5464 GB, free: 12.72 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006494/0.3393, allocations: 167.2 kB / 0.5466 GB, free: 12.68 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007917/0.3473, allocations: 5.279 MB / 0.5517 GB, free: 7.52 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007304/0.348, allocations: 39.98 kB / 0.5518 GB, free: 7.48 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.035e-05/0.3481, allocations: 36 kB / 0.5518 GB, free: 7.445 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008795/0.349, allocations: 0.5643 MB / 0.5524 GB, free: 6.879 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005957/0.3496, allocations: 0.5334 MB / 0.5529 GB, free: 6.234 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001104/0.3507, allocations: 0.8741 MB / 0.5537 GB, free: 5.254 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.229e-06/0.3507, allocations: 4 kB / 0.5537 GB, free: 5.25 MB / 414.1 MB Notification: Performance of matching and sorting (n=112) (initialization_lambda0): time 0.002455/0.3532, allocations: 1.266 MB / 0.555 GB, free: 3.973 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.435e-05/0.3532, allocations: 12.25 kB / 0.555 GB, free: 3.961 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-06/0.3532, allocations: 12 kB / 0.555 GB, free: 3.949 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00128/0.3545, allocations: 405 kB / 0.5554 GB, free: 3.551 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006392/0.3551, allocations: 175.7 kB / 0.5556 GB, free: 3.379 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006952/0.3621, allocations: 5.05 MB / 0.5605 GB, free: 14.18 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006468/0.3628, allocations: 31.98 kB / 0.5605 GB, free: 14.15 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.699e-05/0.3628, allocations: 36 kB / 0.5606 GB, free: 14.12 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,PI_vDC.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (81): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(7,25)} Notification: Performance of prepare postOptimizeDAE: time 0.0002303/0.3631, allocations: 239 kB / 0.5608 GB, free: 13.88 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001723/0.3633, allocations: 94.81 kB / 0.5609 GB, free: 13.79 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001418/0.3647, allocations: 0.8713 MB / 0.5617 GB, free: 12.88 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.016e-05/0.3647, allocations: 7.922 kB / 0.5617 GB, free: 12.88 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.3647, allocations: 4 kB / 0.5617 GB, free: 12.87 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00035/0.3651, allocations: 223.9 kB / 0.562 GB, free: 12.63 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000113/0.3652, allocations: 16 kB / 0.562 GB, free: 12.62 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000474/0.3657, allocations: 31.98 kB / 0.562 GB, free: 12.59 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.136e-05/0.3658, allocations: 44.53 kB / 0.562 GB, free: 12.54 MB / 430.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001848/0.3676, allocations: 1.043 MB / 0.5631 GB, free: 11.48 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001761/0.3694, allocations: 1.438 MB / 0.5645 GB, free: 10.03 MB / 430.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004632/0.3699, allocations: 345 kB / 0.5648 GB, free: 9.695 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0006197/0.3705, allocations: 0.5107 MB / 0.5653 GB, free: 9.191 MB / 430.1 MB Notification: Performance of Backend: time 2.6e-07/0.3705, allocations: 0 / 0.5653 GB, free: 9.191 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003697/0.3742, allocations: 1.794 MB / 0.567 GB, free: 7.363 MB / 430.1 MB Notification: Performance of SimCode: time 0.003843/0.3781, allocations: 2.882 MB / 0.5699 GB, free: 4.43 MB / 430.1 MB Notification: Performance of Templates: time 0.0315/0.4096, allocations: 21.15 MB / 0.5905 GB, free: 15.43 MB / 462.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Generation.LocalGeneration.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches