Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.Generic.Network.NetworkControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled") translateModel(PowerSystems.Examples.Generic.Network.NetworkControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001001/0.001001, allocations: 182.6 kB / 16.71 MB, free: 4.969 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.277/1.277, allocations: 225.7 MB / 243.2 MB, free: 10.18 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007357/0.0007357, allocations: 86.98 kB / 294.4 MB, free: 9.723 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.3111/0.3111, allocations: 38.12 MB / 383.6 MB, free: 40.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002968/0.0002969, allocations: 8 kB / 453.5 MB, free: 8.84 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3058/0.3061, allocations: 59.12 MB / 0.5006 GB, free: 38.97 MB / 378.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkControlled): time 0.008301/0.3145, allocations: 8.969 MB / 0.5094 GB, free: 35.46 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.00838/0.3229, allocations: 10.76 MB / 0.5199 GB, free: 25.04 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001534/0.3245, allocations: 34.53 kB / 0.5199 GB, free: 25.02 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005705/0.3251, allocations: 187 kB / 0.5201 GB, free: 24.92 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003275/0.3283, allocations: 1.281 MB / 0.5213 GB, free: 24.26 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001916/0.3303, allocations: 0.5412 MB / 0.5218 GB, free: 23.97 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.003412/0.3337, allocations: 3.194 MB / 0.525 GB, free: 22.97 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002555/0.3363, allocations: 2.376 MB / 0.5273 GB, free: 21.09 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001358/0.3377, allocations: 0.6722 MB / 0.5279 GB, free: 20.8 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009496/0.3386, allocations: 0.8696 MB / 0.5288 GB, free: 20.47 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001194/0.3387, allocations: 49.09 kB / 0.5288 GB, free: 20.47 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002557/0.3413, allocations: 1.763 MB / 0.5306 GB, free: 19.82 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004315/0.3418, allocations: 0.5015 MB / 0.5311 GB, free: 19.68 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005275/0.3423, allocations: 0.6014 MB / 0.5316 GB, free: 19.31 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002259/0.3446, allocations: 2.061 MB / 0.5337 GB, free: 18.67 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.531e-06/0.3446, allocations: 2.812 kB / 0.5337 GB, free: 18.67 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3446, allocations: 0 / 0.5337 GB, free: 18.67 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.037e-05/0.3446, allocations: 0 / 0.5337 GB, free: 18.67 MB / 378.7 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.002043/0.3467, allocations: 1.443 MB / 0.5351 GB, free: 17.71 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.417e-05/0.3467, allocations: 9.469 kB / 0.5351 GB, free: 17.71 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00331/0.35, allocations: 482.5 kB / 0.5355 GB, free: 17.62 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001005/0.351, allocations: 0.6712 MB / 0.5362 GB, free: 17.17 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.487e-05/0.3511, allocations: 82.19 kB / 0.5363 GB, free: 17.13 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000162/0.3513, allocations: 114 kB / 0.5364 GB, free: 17.09 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002247/0.3535, allocations: 1.601 MB / 0.5379 GB, free: 16.45 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.424e-05/0.3536, allocations: 15.19 kB / 0.538 GB, free: 16.44 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.982e-05/0.3537, allocations: 45.2 kB / 0.538 GB, free: 16.41 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.245e-05/0.3538, allocations: 89.44 kB / 0.5381 GB, free: 16.39 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002286/0.3561, allocations: 1.653 MB / 0.5397 GB, free: 15.9 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006397/0.3625, allocations: 4.99 MB / 0.5446 GB, free: 13.32 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001874/0.3644, allocations: 1.353 MB / 0.5459 GB, free: 12.79 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001117/0.3655, allocations: 0.8027 MB / 0.5467 GB, free: 12.5 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.899e-05/0.3656, allocations: 23.05 kB / 0.5467 GB, free: 12.49 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001271/0.3669, allocations: 0.8522 MB / 0.5475 GB, free: 12.17 MB / 378.7 MB Notification: Performance of pre-optimization done (n=126): time 3.246e-06/0.3669, allocations: 0 / 0.5475 GB, free: 12.17 MB / 378.7 MB Notification: Performance of matching and sorting (n=137): time 0.01362/0.3805, allocations: 6.428 MB / 0.5538 GB, free: 9.453 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.059e-05/0.3807, allocations: 119.5 kB / 0.5539 GB, free: 9.328 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008869/0.3816, allocations: 0.5625 MB / 0.5545 GB, free: 9.074 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001048/0.3817, allocations: 52.73 kB / 0.5545 GB, free: 9.023 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000375/0.3821, allocations: 476.1 kB / 0.555 GB, free: 8.656 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004086/0.3825, allocations: 466.4 kB / 0.5554 GB, free: 8.289 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.534e-05/0.3825, allocations: 26.12 kB / 0.5554 GB, free: 8.27 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001734/0.3827, allocations: 403.8 kB / 0.5558 GB, free: 7.918 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00125/0.384, allocations: 0.6273 MB / 0.5564 GB, free: 7.711 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001238/0.3852, allocations: 0.7909 MB / 0.5572 GB, free: 7.359 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002596/0.3878, allocations: 1.52 MB / 0.5587 GB, free: 6.668 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.172e-06/0.3879, allocations: 5.469 kB / 0.5587 GB, free: 6.664 MB / 378.7 MB Notification: Performance of matching and sorting (n=162) (initialization): time 0.004272/0.3921, allocations: 2.11 MB / 0.5608 GB, free: 5.891 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001049/0.3923, allocations: 211 kB / 0.561 GB, free: 5.648 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.13e-05/0.3923, allocations: 3.922 kB / 0.561 GB, free: 5.648 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001277/0.3936, allocations: 454.9 kB / 0.5614 GB, free: 5.465 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001112/0.3947, allocations: 267.2 kB / 0.5617 GB, free: 5.391 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007154/0.4019, allocations: 6.265 MB / 0.5678 GB, free: 496 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009968/0.4029, allocations: 91.86 kB / 0.5679 GB, free: 404 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.371e-05/0.403, allocations: 51.97 kB / 0.5679 GB, free: 352 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.793e-06/0.403, allocations: 4 kB / 0.5679 GB, free: 348 kB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003436/0.4065, allocations: 1.919 MB / 0.5698 GB, free: 14.4 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.676e-06/0.4065, allocations: 4 kB / 0.5698 GB, free: 14.4 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001147/0.4076, allocations: 434.1 kB / 0.5702 GB, free: 13.97 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001055/0.4087, allocations: 263.6 kB / 0.5705 GB, free: 13.71 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007248/0.416, allocations: 6.037 MB / 0.5764 GB, free: 7.383 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009921/0.417, allocations: 91.91 kB / 0.5764 GB, free: 7.293 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001026/0.4171, allocations: 43.98 kB / 0.5765 GB, free: 7.25 MB / 394.7 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,$whenCondition2,$whenCondition1,$PRE.disturbance.T_start,disturbance.T_start,$PRE.disturbance.count,disturbance.count,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.0007526/0.4179, allocations: 434.3 kB / 0.5769 GB, free: 6.816 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001569/0.418, allocations: 98.78 kB / 0.577 GB, free: 6.719 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004303/0.4223, allocations: 2.185 MB / 0.5791 GB, free: 4.516 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.382e-05/0.4224, allocations: 15.94 kB / 0.5791 GB, free: 4.5 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/0.4224, allocations: 4 kB / 0.5791 GB, free: 4.496 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-05/0.4224, allocations: 11.97 kB / 0.5792 GB, free: 4.484 MB / 394.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007166/0.4296, allocations: 3.966 MB / 0.583 GB, free: 408 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.055e-05/0.4297, allocations: 0 / 0.583 GB, free: 408 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009726/0.4306, allocations: 220 kB / 0.5832 GB, free: 188 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001648/0.4323, allocations: 0.5052 MB / 0.5837 GB, free: 15.67 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001108/0.4324, allocations: 31.98 kB / 0.5838 GB, free: 15.64 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008586/0.441, allocations: 6.542 MB / 0.5902 GB, free: 8.797 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.512e-06/0.4411, allocations: 4.234 kB / 0.5902 GB, free: 8.793 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005609/0.4467, allocations: 3.117 MB / 0.5932 GB, free: 5.617 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006126/0.4473, allocations: 287.8 kB / 0.5935 GB, free: 5.316 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000137/0.4475, allocations: 28 kB / 0.5935 GB, free: 5.289 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007045/0.4482, allocations: 75.92 kB / 0.5936 GB, free: 5.215 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003027/0.4485, allocations: 133 kB / 0.5937 GB, free: 5.086 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.385e-05/0.4486, allocations: 47.97 kB / 0.5937 GB, free: 5.039 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004679/0.4491, allocations: 391.1 kB / 0.5941 GB, free: 4.664 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4491, allocations: 192 / 0.5941 GB, free: 4.664 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001985/0.4511, allocations: 0.6602 MB / 0.5948 GB, free: 4.004 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 4 (inertia1.phi,inertia1.w,frequencyPowerControl.I.y,system.theta) * Number of discrete variables: 5 (system.initime,$whenCondition2,$whenCondition1,disturbance.T_start,disturbance.count) * Number of discrete states: 1 (disturbance.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (103): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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 {(3,40), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002174/0.4513, allocations: 154.9 kB / 0.5949 GB, free: 3.844 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005311/0.4566, allocations: 3.347 MB / 0.5982 GB, free: 436 kB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.421e-06/0.4567, allocations: 4.188 kB / 0.5982 GB, free: 432 kB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002246/0.4589, allocations: 1.323 MB / 0.5995 GB, free: 15.07 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001247/0.4602, allocations: 185.2 kB / 0.5997 GB, free: 14.89 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004794/0.465, allocations: 3.293 MB / 0.6029 GB, free: 11.54 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009415/0.4659, allocations: 1.256 MB / 0.6041 GB, free: 10.26 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0009513/0.4669, allocations: 295 kB / 0.6044 GB, free: 9.965 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002697/0.4672, allocations: 83.41 kB / 0.6045 GB, free: 9.883 MB / 426.7 MB Notification: Performance of SimCode: time 6.42e-07/0.4672, allocations: 0 / 0.6045 GB, free: 9.883 MB / 426.7 MB Notification: Performance of Templates: time 0.03397/0.5012, allocations: 20.75 MB / 0.6247 GB, free: 5.16 MB / 442.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled.makefile (rm -f PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled.sim & ./PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe 2>&1)