Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkControlled.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.Generic.Network.NetworkControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|impedance3.i.1.|impedance3.i.2.|impedance3.p.1.|impedance3.p.2.|impedance3.v.1.|impedance3.v.2.|turbine1.tau|turbine2.tau",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkControlled") translateModel(PowerSystems.Examples.Generic.Network.NetworkControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|impedance3.i.1.|impedance3.i.2.|impedance3.p.1.|impedance3.p.2.|impedance3.v.1.|impedance3.v.2.|turbine1.tau|turbine2.tau",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001297/0.001297, allocations: 110.5 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.001375/0.001375, allocations: 183 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.326/1.326, allocations: 222.9 MB / 242.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1692/0.1692, allocations: 38.03 MB / 330.6 MB, free: 8.73 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001246, allocations: 63.91 kB / 458.8 MB, free: 6.828 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2858/0.2871, allocations: 58.06 MB / 0.5048 GB, free: 8.059 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkControlled): time 0.008858/0.296, allocations: 9.507 MB / 0.5141 GB, free: 1.371 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.008869/0.3049, allocations: 5.402 MB / 0.5193 GB, free: 13.57 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001054/0.306, allocations: 35.22 kB / 0.5194 GB, free: 13.55 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003053/0.309, allocations: 1.114 MB / 0.5205 GB, free: 12.87 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004082/0.3131, allocations: 1.366 MB / 0.5218 GB, free: 12.13 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001817/0.3149, allocations: 0.6104 MB / 0.5224 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002627/0.3176, allocations: 2.017 MB / 0.5244 GB, free: 10.94 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001374/0.319, allocations: 1.044 MB / 0.5254 GB, free: 10.43 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001183/0.3202, allocations: 0.8548 MB / 0.5262 GB, free: 10.03 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001104/0.3213, allocations: 0.9084 MB / 0.5271 GB, free: 9.633 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001632/0.3214, allocations: 110.2 kB / 0.5272 GB, free: 9.633 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00277/0.3242, allocations: 1.561 MB / 0.5287 GB, free: 9.008 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006214/0.3249, allocations: 0.5747 MB / 0.5293 GB, free: 8.801 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007045/0.3256, allocations: 0.6671 MB / 0.5299 GB, free: 8.391 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002998/0.3286, allocations: 2.053 MB / 0.5319 GB, free: 7.41 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.3286, allocations: 0 / 0.5319 GB, free: 7.41 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3286, allocations: 3.938 kB / 0.532 GB, free: 7.406 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.603e-05/0.3286, allocations: 0 / 0.532 GB, free: 7.406 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: 299 * Number of variables: 299 Notification: Performance of Generate backend data structure: time 0.002766/0.3314, allocations: 1.65 MB / 0.5336 GB, free: 6.164 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.876e-05/0.3314, allocations: 15.84 kB / 0.5336 GB, free: 6.156 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003552/0.335, allocations: 477 kB / 0.534 GB, free: 5.934 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001173/0.3362, allocations: 0.6948 MB / 0.5347 GB, free: 5.383 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.931e-05/0.3363, allocations: 86.12 kB / 0.5348 GB, free: 5.34 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001898/0.3365, allocations: 117.5 kB / 0.5349 GB, free: 5.297 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002537/0.339, allocations: 1.603 MB / 0.5365 GB, free: 4.332 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.128e-05/0.3391, allocations: 10.22 kB / 0.5365 GB, free: 4.324 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001213/0.3392, allocations: 46.14 kB / 0.5365 GB, free: 4.289 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001142/0.3393, allocations: 84.59 kB / 0.5366 GB, free: 4.27 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002757/0.3421, allocations: 1.631 MB / 0.5382 GB, free: 3.496 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007504/0.3496, allocations: 4.905 MB / 0.543 GB, free: 64 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002182/0.3518, allocations: 1.327 MB / 0.5443 GB, free: 15.34 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001181/0.353, allocations: 0.7897 MB / 0.5451 GB, free: 14.95 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.592e-05/0.3531, allocations: 21.95 kB / 0.5451 GB, free: 14.94 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001293/0.3544, allocations: 0.8403 MB / 0.5459 GB, free: 14.26 MB / 414.1 MB Notification: Performance of pre-optimization done (n=126): time 2.975e-06/0.3544, allocations: 0 / 0.5459 GB, free: 14.26 MB / 414.1 MB Notification: Performance of matching and sorting (n=137): time 0.01348/0.3679, allocations: 6.326 MB / 0.5521 GB, free: 7.812 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.744e-05/0.368, allocations: 128.1 kB / 0.5522 GB, free: 7.664 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007237/0.3687, allocations: 0.5665 MB / 0.5528 GB, free: 7.086 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.147e-05/0.3688, allocations: 49.7 kB / 0.5528 GB, free: 7.031 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003594/0.3691, allocations: 480.2 kB / 0.5533 GB, free: 6.555 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004517/0.3696, allocations: 465.3 kB / 0.5537 GB, free: 6.094 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000353/0.37, allocations: 222.8 kB / 0.5539 GB, free: 5.871 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001682/0.3701, allocations: 406.8 kB / 0.5543 GB, free: 5.465 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001061/0.3712, allocations: 0.6266 MB / 0.5549 GB, free: 4.832 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001229/0.3724, allocations: 0.7715 MB / 0.5557 GB, free: 4.02 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00252/0.375, allocations: 1.495 MB / 0.5571 GB, free: 2.477 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.29e-06/0.375, allocations: 7.938 kB / 0.5571 GB, free: 2.469 MB / 414.1 MB Notification: Performance of matching and sorting (n=162) (initialization): time 0.004118/0.3791, allocations: 2.072 MB / 0.5592 GB, free: 384 kB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.913e-05/0.3792, allocations: 41.62 kB / 0.5592 GB, free: 336 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.316e-05/0.3792, allocations: 4 kB / 0.5592 GB, free: 332 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001388/0.3806, allocations: 449.5 kB / 0.5596 GB, free: 15.88 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001126/0.3818, allocations: 263.6 kB / 0.5599 GB, free: 15.62 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008414/0.3902, allocations: 6.749 MB / 0.5665 GB, free: 8.574 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00103/0.3912, allocations: 79.91 kB / 0.5665 GB, free: 8.496 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.994e-05/0.3913, allocations: 47.98 kB / 0.5666 GB, free: 8.449 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001498/0.3928, allocations: 0.8772 MB / 0.5674 GB, free: 7.57 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001125/0.394, allocations: 0.7598 MB / 0.5682 GB, free: 6.77 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002289/0.3963, allocations: 1.467 MB / 0.5696 GB, free: 5.258 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.427e-06/0.3963, allocations: 0 / 0.5696 GB, free: 5.258 MB / 430.1 MB Notification: Performance of matching and sorting (n=162) (initialization_lambda0): time 0.003596/0.3999, allocations: 2.002 MB / 0.5716 GB, free: 3.234 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.013e-05/0.3999, allocations: 37.98 kB / 0.5716 GB, free: 3.191 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.194e-06/0.4, allocations: 4 kB / 0.5716 GB, free: 3.188 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001122/0.4011, allocations: 438.1 kB / 0.572 GB, free: 2.754 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00106/0.4022, allocations: 259.6 kB / 0.5723 GB, free: 2.5 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00769/0.4099, allocations: 6.596 MB / 0.5787 GB, free: 11.62 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009161/0.4108, allocations: 75.83 kB / 0.5788 GB, free: 11.54 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.929e-05/0.4109, allocations: 51.98 kB / 0.5788 GB, free: 11.49 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 8 (system.initime,disturbance.count,$PRE.disturbance.count,disturbance.T_start,$PRE.disturbance.T_start,$whenCondition1,$whenCondition2,frequencyPowerControl.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 119 * Array equations: 0 * Algorithm blocks: 1 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,9), (2,29)} Notification: Performance of prepare postOptimizeDAE: time 0.0003243/0.4112, allocations: 240.1 kB / 0.5791 GB, free: 11.25 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001658/0.4114, allocations: 106.7 kB / 0.5792 GB, free: 11.14 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004188/0.4156, allocations: 2.157 MB / 0.5813 GB, free: 8.969 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.856e-05/0.4156, allocations: 11.97 kB / 0.5813 GB, free: 8.957 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.4156, allocations: 0 / 0.5813 GB, free: 8.957 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000554/0.4162, allocations: 287.8 kB / 0.5816 GB, free: 8.656 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001388/0.4163, allocations: 31.98 kB / 0.5816 GB, free: 8.625 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006661/0.417, allocations: 71.92 kB / 0.5817 GB, free: 8.555 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002441/0.4173, allocations: 145 kB / 0.5818 GB, free: 8.414 MB / 446.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004692/0.422, allocations: 2.313 MB / 0.5841 GB, free: 6.086 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003707/0.4257, allocations: 2.517 MB / 0.5865 GB, free: 3.555 MB / 446.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001091/0.4268, allocations: 0.6933 MB / 0.5872 GB, free: 2.863 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004888/0.4273, allocations: 399 kB / 0.5876 GB, free: 2.473 MB / 446.1 MB Notification: Performance of Backend: time 5.01e-07/0.4273, allocations: 0 / 0.5876 GB, free: 2.473 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006545/0.4339, allocations: 3.454 MB / 0.591 GB, free: 14.93 MB / 462.1 MB Notification: Performance of SimCode: time 0.00455/0.4384, allocations: 3.049 MB / 0.5939 GB, free: 11.84 MB / 462.1 MB Notification: Performance of Templates: time 0.04826/0.4867, allocations: 31.8 MB / 0.625 GB, free: 12.08 MB / 494.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkControlled.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkControlled.sim & ./PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkControlled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkControlled_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Network.NetworkControlled.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkControlled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches