Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.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.Drives.ASM_Y_D,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D",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.001243/0.001243, allocations: 113.4 kB / 17.06 MB, free: 6.012 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.001266/0.001266, allocations: 189.4 kB / 18 MB, free: 5.098 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.413/1.413, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1849/0.1849, allocations: 38.04 MB / 329.9 MB, free: 8.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001826/0.001826, allocations: 67.89 kB / 457.6 MB, free: 7.336 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3237/0.3256, allocations: 58.06 MB / 0.5036 GB, free: 7.43 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.006446/0.332, allocations: 5.719 MB / 0.5092 GB, free: 3.457 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00581/0.3379, allocations: 4.432 MB / 0.5135 GB, free: 396 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005041/0.3384, allocations: 20.84 kB / 0.5135 GB, free: 388 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01006/0.3485, allocations: 4.899 MB / 0.5183 GB, free: 14.94 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001307/0.3498, allocations: 446.4 kB / 0.5188 GB, free: 14.69 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007514/0.3506, allocations: 272.9 kB / 0.519 GB, free: 14.55 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002461/0.3531, allocations: 1.721 MB / 0.5207 GB, free: 13.93 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009746/0.3541, allocations: 0.73 MB / 0.5214 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007033/0.3548, allocations: 474.2 kB / 0.5219 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006997/0.3555, allocations: 0.4973 MB / 0.5223 GB, free: 13.19 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001154/0.3556, allocations: 72.88 kB / 0.5224 GB, free: 13.19 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003635/0.356, allocations: 139.9 kB / 0.5225 GB, free: 13.17 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003702/0.3564, allocations: 327.4 kB / 0.5229 GB, free: 13.04 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004385/0.3568, allocations: 402 kB / 0.5232 GB, free: 12.79 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001286/0.3581, allocations: 1.037 MB / 0.5243 GB, free: 12.4 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.3581, allocations: 0 / 0.5243 GB, free: 12.4 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.3581, allocations: 0 / 0.5243 GB, free: 12.4 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.548e-05/0.3582, allocations: 0 / 0.5243 GB, free: 12.4 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: 150 * Number of variables: 150 Notification: Performance of Generate backend data structure: time 0.001964/0.3601, allocations: 1.053 MB / 0.5253 GB, free: 11.63 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/0.3602, allocations: 13.3 kB / 0.5253 GB, free: 11.62 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001405/0.3603, allocations: 103.6 kB / 0.5254 GB, free: 11.55 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004004/0.3607, allocations: 99.58 kB / 0.5255 GB, free: 11.51 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001167/0.3619, allocations: 0.6224 MB / 0.5261 GB, free: 11.11 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.887e-05/0.362, allocations: 80.23 kB / 0.5262 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001128/0.3621, allocations: 61.33 kB / 0.5262 GB, free: 11.03 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001323/0.3635, allocations: 0.8175 MB / 0.527 GB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.769e-05/0.3635, allocations: 6.328 kB / 0.527 GB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.582e-05/0.3636, allocations: 21.69 kB / 0.5271 GB, free: 10.59 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001308/0.3637, allocations: 53.56 kB / 0.5271 GB, free: 10.57 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009609/0.3647, allocations: 0.5874 MB / 0.5277 GB, free: 10.28 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004074/0.3688, allocations: 2.926 MB / 0.5305 GB, free: 7.961 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008119/0.3696, allocations: 435 kB / 0.531 GB, free: 7.715 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003438/0.37, allocations: 228.1 kB / 0.5312 GB, free: 7.59 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.452e-05/0.37, allocations: 4 kB / 0.5312 GB, free: 7.59 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004996/0.3705, allocations: 342 kB / 0.5315 GB, free: 7.344 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 2.064e-06/0.3705, allocations: 0 / 0.5315 GB, free: 7.344 MB / 398.1 MB Notification: Performance of matching and sorting (n=45): time 0.003359/0.3739, allocations: 2.058 MB / 0.5335 GB, free: 5.805 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001013/0.374, allocations: 142.8 kB / 0.5337 GB, free: 5.641 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005293/0.3745, allocations: 446.8 kB / 0.5341 GB, free: 5.371 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.872e-05/0.3746, allocations: 36.92 kB / 0.5341 GB, free: 5.332 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002878/0.3749, allocations: 342.2 kB / 0.5344 GB, free: 5.027 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000162/0.3751, allocations: 164 kB / 0.5346 GB, free: 4.887 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001948/0.3753, allocations: 116.5 kB / 0.5347 GB, free: 4.812 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001831/0.3755, allocations: 365.2 kB / 0.5351 GB, free: 4.461 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003934/0.3759, allocations: 234.5 kB / 0.5353 GB, free: 4.344 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004906/0.3764, allocations: 391.3 kB / 0.5357 GB, free: 4.027 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002867/0.3792, allocations: 1.328 MB / 0.5369 GB, free: 3.133 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.069e-06/0.3793, allocations: 0.8438 kB / 0.5369 GB, free: 3.133 MB / 398.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.00193/0.3812, allocations: 0.9657 MB / 0.5379 GB, free: 2.582 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.459e-05/0.3813, allocations: 36.89 kB / 0.5379 GB, free: 2.547 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.282e-05/0.3813, allocations: 9.578 kB / 0.5379 GB, free: 2.543 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009352/0.3822, allocations: 303.5 kB / 0.5382 GB, free: 2.398 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000988/0.3832, allocations: 176.9 kB / 0.5384 GB, free: 2.348 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007152/0.3904, allocations: 5.293 MB / 0.5436 GB, free: 13.94 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004628/0.3909, allocations: 26.41 kB / 0.5436 GB, free: 13.93 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.56e-05/0.3909, allocations: 28.44 kB / 0.5436 GB, free: 13.92 MB / 414.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.asm_Y_D.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 6 (system.initime,relay1.cnt,$PRE.relay1.cnt,$whenCondition1,relay1.y,$PRE.relay1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 49 * 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): 1 system {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,15)} Notification: Performance of prepare postOptimizeDAE: time 0.0005249/0.3915, allocations: 307.7 kB / 0.5439 GB, free: 13.66 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.231e-05/0.3916, allocations: 53.42 kB / 0.544 GB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001315/0.3929, allocations: 0.8064 MB / 0.5447 GB, free: 13.04 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.474e-06/0.3929, allocations: 4.438 kB / 0.5448 GB, free: 13.04 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.3929, allocations: 6.406 kB / 0.5448 GB, free: 13.04 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.278e-06/0.3929, allocations: 3.984 kB / 0.5448 GB, free: 13.03 MB / 414.1 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.002603/0.3955, allocations: 1.679 MB / 0.5464 GB, free: 11.67 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.3956, allocations: 0 / 0.5464 GB, free: 11.67 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001371/0.3969, allocations: 195.9 kB / 0.5466 GB, free: 11.48 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002421/0.3972, allocations: 74.47 kB / 0.5467 GB, free: 11.4 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.694e-05/0.3973, allocations: 15.98 kB / 0.5467 GB, free: 11.38 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003422/0.4007, allocations: 4.261 MB / 0.5508 GB, free: 6.699 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/0.4007, allocations: 4.031 kB / 0.5508 GB, free: 6.695 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001702/0.4024, allocations: 1.124 MB / 0.5519 GB, free: 5.488 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003265/0.4028, allocations: 176.6 kB / 0.5521 GB, free: 5.297 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.624e-05/0.4029, allocations: 16 kB / 0.5521 GB, free: 5.281 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002883/0.4032, allocations: 15.98 kB / 0.5521 GB, free: 5.266 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001017/0.4033, allocations: 43.89 kB / 0.5522 GB, free: 5.223 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.605e-05/0.4033, allocations: 12 kB / 0.5522 GB, free: 5.211 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004264/0.4038, allocations: 315.1 kB / 0.5525 GB, free: 4.902 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.4038, allocations: 0 / 0.5525 GB, free: 4.902 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008367/0.4046, allocations: 164 kB / 0.5526 GB, free: 4.742 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (asm_Y_D.motor.i[3],asm_Y_D.motor.psi_s[1],asm_Y_D.motor.psi_s[2],asm_Y_D.motor.psi_rd[1],asm_Y_D.motor.psi_rq[1],loadInertia.w,frictTorq.phi) * Number of discrete variables: 4 ($whenCondition1,relay1.y,relay1.cnt,system.initime) * Number of discrete states: 3 (relay1.y,relay1.cnt,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 1 * 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,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001923/0.4065, allocations: 1.676 MB / 0.5543 GB, free: 2.969 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001942/0.4085, allocations: 0.9872 MB / 0.5552 GB, free: 1.941 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.4085, allocations: 0.8125 kB / 0.5552 GB, free: 1.941 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008458/0.4094, allocations: 0.6439 MB / 0.5559 GB, free: 1.246 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007475/0.4101, allocations: 132.5 kB / 0.556 GB, free: 1.121 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00915/0.4193, allocations: 6.175 MB / 0.562 GB, free: 10.7 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007151/0.42, allocations: 0.9838 MB / 0.563 GB, free: 9.688 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003982/0.4204, allocations: 116.7 kB / 0.5631 GB, free: 9.574 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003232/0.4208, allocations: 223.4 kB / 0.5633 GB, free: 9.355 MB / 430.1 MB Notification: Performance of SimCode: time 5.72e-07/0.4208, allocations: 0 / 0.5633 GB, free: 9.355 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04857/0.4694, allocations: 14.19 MB / 0.5772 GB, free: 11.32 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.02/13.49, allocations: 7.875 kB / 0.5772 GB, free: 11.32 MB / 446.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe 2>&1)