Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Source.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/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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.Elementary.Source,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Source",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Source,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Source",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.001257/0.001257, allocations: 107.9 kB / 17.06 MB, free: 6.016 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.001189/0.001189, allocations: 189.4 kB / 18 MB, free: 5.102 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.381/1.381, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.178/0.178, allocations: 38.04 MB / 329.9 MB, free: 8.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002026/0.002026, allocations: 63.91 kB / 457.6 MB, free: 7.332 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3308/0.3328, allocations: 58.06 MB / 0.5036 GB, free: 7.453 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Source): time 0.004896/0.3377, allocations: 4.406 MB / 0.5079 GB, free: 4.387 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002019/0.3398, allocations: 1.513 MB / 0.5094 GB, free: 3.332 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001785/0.34, allocations: 16.56 kB / 0.5094 GB, free: 3.324 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007996/0.3408, allocations: 281.4 kB / 0.5097 GB, free: 3.156 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005302/0.3413, allocations: 291.1 kB / 0.51 GB, free: 2.992 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006132/0.342, allocations: 244.8 kB / 0.5102 GB, free: 2.887 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006811/0.3427, allocations: 0.6075 MB / 0.5108 GB, free: 2.629 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003953/0.3431, allocations: 228.6 kB / 0.511 GB, free: 2.543 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003787/0.3434, allocations: 264.1 kB / 0.5113 GB, free: 2.43 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005841/0.344, allocations: 369 kB / 0.5116 GB, free: 2.305 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.014e-05/0.3441, allocations: 38.91 kB / 0.5116 GB, free: 2.305 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005108/0.3447, allocations: 227.9 kB / 0.5119 GB, free: 2.242 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002721/0.3449, allocations: 226.4 kB / 0.5121 GB, free: 2.168 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002657/0.3452, allocations: 256.3 kB / 0.5123 GB, free: 2.02 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009317/0.3462, allocations: 0.6738 MB / 0.513 GB, free: 1.773 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.3462, allocations: 4 kB / 0.513 GB, free: 1.77 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3462, allocations: 0 / 0.513 GB, free: 1.77 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.268e-06/0.3462, allocations: 0.9375 kB / 0.513 GB, free: 1.77 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 119 * Number of variables: 119 Notification: Performance of Generate backend data structure: time 0.001455/0.3477, allocations: 0.7813 MB / 0.5137 GB, free: 1.176 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.178e-05/0.3477, allocations: 13.2 kB / 0.5138 GB, free: 1.172 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.309e-05/0.3478, allocations: 83.31 kB / 0.5138 GB, free: 1.109 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006145/0.3484, allocations: 98.47 kB / 0.5139 GB, free: 1.074 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005938/0.349, allocations: 431.8 kB / 0.5143 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.733e-05/0.3491, allocations: 23.81 kB / 0.5144 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001493/0.3492, allocations: 51.92 kB / 0.5144 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001146/0.3504, allocations: 0.6911 MB / 0.5151 GB, free: 432 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.385e-05/0.3504, allocations: 5.891 kB / 0.5151 GB, free: 428 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.2e-05/0.3505, allocations: 20.11 kB / 0.5151 GB, free: 412 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002392/0.3507, allocations: 65.78 kB / 0.5152 GB, free: 408 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001378/0.3521, allocations: 0.672 MB / 0.5158 GB, free: 192 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004182/0.3563, allocations: 2.647 MB / 0.5184 GB, free: 14.41 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006157/0.3569, allocations: 315 kB / 0.5187 GB, free: 14.27 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003612/0.3573, allocations: 208.2 kB / 0.5189 GB, free: 14.18 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.153e-05/0.3574, allocations: 10.12 kB / 0.5189 GB, free: 14.18 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.329e-05/0.3574, allocations: 35.62 kB / 0.519 GB, free: 14.13 MB / 398.1 MB Notification: Performance of pre-optimization done (n=39): time 3.236e-06/0.3574, allocations: 2.203 kB / 0.519 GB, free: 14.13 MB / 398.1 MB Notification: Performance of matching and sorting (n=40): time 0.002549/0.36, allocations: 1.31 MB / 0.5202 GB, free: 13.43 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.559e-05/0.3601, allocations: 80.98 kB / 0.5203 GB, free: 13.34 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000353/0.3604, allocations: 290.1 kB / 0.5206 GB, free: 13.18 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.758e-05/0.3605, allocations: 31.67 kB / 0.5206 GB, free: 13.14 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000211/0.3607, allocations: 262.2 kB / 0.5209 GB, free: 12.93 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000139/0.3608, allocations: 148.4 kB / 0.521 GB, free: 12.81 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001553/0.361, allocations: 83.53 kB / 0.5211 GB, free: 12.77 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002099/0.3612, allocations: 350.5 kB / 0.5214 GB, free: 12.43 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003084/0.3615, allocations: 187 kB / 0.5216 GB, free: 12.38 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005076/0.362, allocations: 327.8 kB / 0.5219 GB, free: 12.16 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007617/0.3628, allocations: 0.5618 MB / 0.5225 GB, free: 11.82 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.3628, allocations: 5.375 kB / 0.5225 GB, free: 11.82 MB / 398.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.00126/0.3641, allocations: 0.6824 MB / 0.5231 GB, free: 11.54 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.939e-05/0.3641, allocations: 6.438 kB / 0.5232 GB, free: 11.54 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0008465/0.365, allocations: 494.1 kB / 0.5236 GB, free: 11.37 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004627/0.3654, allocations: 116.5 kB / 0.5237 GB, free: 11.33 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003156/0.3658, allocations: 82.5 kB / 0.5238 GB, free: 11.32 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003467/0.3693, allocations: 3.268 MB / 0.527 GB, free: 8.316 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003076/0.3696, allocations: 24.84 kB / 0.527 GB, free: 8.309 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.867e-05/0.3696, allocations: 20.23 kB / 0.527 GB, free: 8.305 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (45): * Single equations (assignments): 41 * Array equations: 2 * 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): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003356/0.37, allocations: 200.2 kB / 0.5272 GB, free: 8.156 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001038/0.3701, allocations: 39.78 kB / 0.5273 GB, free: 8.133 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008334/0.3709, allocations: 467.9 kB / 0.5277 GB, free: 7.945 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-05/0.371, allocations: 17.92 kB / 0.5277 GB, free: 7.938 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.371, allocations: 6 kB / 0.5277 GB, free: 7.934 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.354e-06/0.371, allocations: 1.266 kB / 0.5277 GB, free: 7.934 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001682/0.3727, allocations: 1.014 MB / 0.5287 GB, free: 7.383 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.868e-06/0.3727, allocations: 1.438 kB / 0.5287 GB, free: 7.383 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003386/0.373, allocations: 66.08 kB / 0.5288 GB, free: 7.379 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.414e-06/0.3731, allocations: 6.344 kB / 0.5288 GB, free: 7.375 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.915e-05/0.3731, allocations: 13 kB / 0.5288 GB, free: 7.367 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.211e-06/0.3731, allocations: 5.984 kB / 0.5288 GB, free: 7.363 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.3731, allocations: 6 kB / 0.5288 GB, free: 7.359 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00103/0.3741, allocations: 0.7468 MB / 0.5296 GB, free: 6.988 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001516/0.3743, allocations: 148.6 kB / 0.5297 GB, free: 6.859 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.706e-05/0.3744, allocations: 8.109 kB / 0.5297 GB, free: 6.855 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001882/0.3746, allocations: 15.23 kB / 0.5297 GB, free: 6.852 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.568e-05/0.3746, allocations: 15.92 kB / 0.5297 GB, free: 6.852 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.59e-05/0.3747, allocations: 16.39 kB / 0.5298 GB, free: 6.844 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002168/0.3749, allocations: 204 kB / 0.53 GB, free: 6.734 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3749, allocations: 0 / 0.53 GB, free: 6.734 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005324/0.3754, allocations: 118.4 kB / 0.5301 GB, free: 6.715 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind.i[1],ind.i[2],ind.i[3]) * 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 (30): * Single equations (assignments): 27 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001378/0.3768, allocations: 1.322 MB / 0.5314 GB, free: 5.809 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001125/0.3779, allocations: 0.7118 MB / 0.532 GB, free: 5.426 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.378, allocations: 0 / 0.532 GB, free: 5.426 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002953/0.3783, allocations: 205.1 kB / 0.5322 GB, free: 5.363 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005187/0.3788, allocations: 73.7 kB / 0.5323 GB, free: 5.332 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005915/0.3847, allocations: 4.412 MB / 0.5366 GB, free: 2.559 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006571/0.3854, allocations: 0.8764 MB / 0.5375 GB, free: 1.773 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000315/0.3857, allocations: 100 kB / 0.5376 GB, free: 1.734 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002405/0.386, allocations: 148.3 kB / 0.5377 GB, free: 1.609 MB / 398.1 MB Notification: Performance of SimCode: time 7.81e-07/0.386, allocations: 0 / 0.5377 GB, free: 1.609 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03741/0.4234, allocations: 8.179 MB / 0.5457 GB, free: 12.44 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.02/10.44, allocations: 3.75 kB / 0.5457 GB, free: 12.43 MB / 414.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Source.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Source.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Source.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Source_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Source.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Source.pipe 2>&1)