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.001281/0.001281, allocations: 111.1 kB / 17.06 MB, free: 5.992 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.001264/0.001264, allocations: 200 kB / 18.01 MB, free: 5.066 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.38/1.38, allocations: 222.9 MB / 241.7 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1776/0.1776, allocations: 38.03 MB / 329.9 MB, free: 8.695 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001959/0.001959, allocations: 63.91 kB / 457.6 MB, free: 7.355 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3387/0.3407, allocations: 58.06 MB / 0.5036 GB, free: 7.426 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.00672/0.3475, allocations: 5.719 MB / 0.5092 GB, free: 3.453 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005957/0.3535, allocations: 4.439 MB / 0.5135 GB, free: 380 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000524/0.354, allocations: 21.41 kB / 0.5136 GB, free: 372 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01154/0.3656, allocations: 4.901 MB / 0.5183 GB, free: 14.92 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001483/0.3671, allocations: 433 kB / 0.5188 GB, free: 14.69 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000855/0.368, allocations: 277.6 kB / 0.519 GB, free: 14.54 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002896/0.3709, allocations: 1.719 MB / 0.5207 GB, free: 13.92 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001136/0.372, allocations: 0.7279 MB / 0.5214 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008299/0.3729, allocations: 470.1 kB / 0.5219 GB, free: 13.4 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000786/0.3737, allocations: 0.4978 MB / 0.5223 GB, free: 13.2 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001154/0.3738, allocations: 71.97 kB / 0.5224 GB, free: 13.2 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003441/0.3741, allocations: 139.8 kB / 0.5225 GB, free: 13.18 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004093/0.3746, allocations: 329.5 kB / 0.5229 GB, free: 13.05 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004632/0.375, allocations: 401.3 kB / 0.5232 GB, free: 12.8 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001614/0.3766, allocations: 1.036 MB / 0.5243 GB, free: 12.41 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.055e-06/0.3767, allocations: 1.5 kB / 0.5243 GB, free: 12.41 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.3767, allocations: 0 / 0.5243 GB, free: 12.41 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.35e-05/0.3767, allocations: 0 / 0.5243 GB, free: 12.41 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.002282/0.379, allocations: 1.055 MB / 0.5253 GB, free: 11.64 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.533e-05/0.379, allocations: 14.59 kB / 0.5253 GB, free: 11.63 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001378/0.3792, allocations: 103.6 kB / 0.5254 GB, free: 11.56 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004199/0.3796, allocations: 99.19 kB / 0.5255 GB, free: 11.52 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001212/0.3808, allocations: 0.6297 MB / 0.5261 GB, free: 11.11 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001107/0.3809, allocations: 77.23 kB / 0.5262 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001147/0.3811, allocations: 60.41 kB / 0.5262 GB, free: 11.04 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00145/0.3825, allocations: 0.8181 MB / 0.527 GB, free: 10.64 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.128e-05/0.3826, allocations: 5.297 kB / 0.527 GB, free: 10.63 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.534e-05/0.3826, allocations: 26.94 kB / 0.5271 GB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001494/0.3828, allocations: 53 kB / 0.5271 GB, free: 10.59 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009765/0.3838, allocations: 0.5882 MB / 0.5277 GB, free: 10.3 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004161/0.388, allocations: 2.925 MB / 0.5305 GB, free: 7.984 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008556/0.3888, allocations: 426.9 kB / 0.531 GB, free: 7.746 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003471/0.3892, allocations: 228.4 kB / 0.5312 GB, free: 7.621 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.788e-05/0.3892, allocations: 8.047 kB / 0.5312 GB, free: 7.617 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005112/0.3897, allocations: 346.2 kB / 0.5315 GB, free: 7.367 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 2.174e-06/0.3898, allocations: 0 / 0.5315 GB, free: 7.367 MB / 398.1 MB Notification: Performance of matching and sorting (n=45): time 0.003499/0.3933, allocations: 2.049 MB / 0.5335 GB, free: 5.836 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001045/0.3934, allocations: 142.7 kB / 0.5336 GB, free: 5.672 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005508/0.3939, allocations: 452.2 kB / 0.5341 GB, free: 5.398 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.377e-05/0.394, allocations: 35.8 kB / 0.5341 GB, free: 5.359 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002916/0.3943, allocations: 342.4 kB / 0.5344 GB, free: 5.055 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001614/0.3945, allocations: 165.4 kB / 0.5346 GB, free: 4.914 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001908/0.3947, allocations: 116.6 kB / 0.5347 GB, free: 4.84 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001928/0.3949, allocations: 359.9 kB / 0.5351 GB, free: 4.492 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003697/0.3952, allocations: 231.7 kB / 0.5353 GB, free: 4.379 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005115/0.3957, allocations: 397.3 kB / 0.5357 GB, free: 4.055 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002847/0.3986, allocations: 1.32 MB / 0.5369 GB, free: 3.168 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.885e-06/0.3986, allocations: 6.562 kB / 0.5369 GB, free: 3.164 MB / 398.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001807/0.4004, allocations: 0.9681 MB / 0.5379 GB, free: 2.609 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.225e-05/0.4005, allocations: 33.55 kB / 0.5379 GB, free: 2.578 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.257e-05/0.4005, allocations: 5.75 kB / 0.5379 GB, free: 2.578 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009218/0.4014, allocations: 308.8 kB / 0.5382 GB, free: 2.426 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009935/0.4025, allocations: 176.4 kB / 0.5384 GB, free: 2.375 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007266/0.4097, allocations: 5.297 MB / 0.5436 GB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005079/0.4103, allocations: 31.16 kB / 0.5436 GB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.568e-05/0.4103, allocations: 27.75 kB / 0.5436 GB, free: 13.94 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.0005273/0.4109, allocations: 300.2 kB / 0.5439 GB, free: 13.7 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.579e-05/0.411, allocations: 53.11 kB / 0.544 GB, free: 13.67 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001263/0.4122, allocations: 0.8149 MB / 0.5448 GB, free: 13.06 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.4122, allocations: 4.594 kB / 0.5448 GB, free: 13.06 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.4123, allocations: 4.922 kB / 0.5448 GB, free: 13.06 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.4123, allocations: 1.312 kB / 0.5448 GB, free: 13.06 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.002541/0.4148, allocations: 1.671 MB / 0.5464 GB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.4148, allocations: 0 / 0.5464 GB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001294/0.4161, allocations: 195.9 kB / 0.5466 GB, free: 11.51 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002424/0.4164, allocations: 86.41 kB / 0.5467 GB, free: 11.41 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.037e-05/0.4164, allocations: 15.98 kB / 0.5467 GB, free: 11.4 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003449/0.4199, allocations: 4.261 MB / 0.5508 GB, free: 6.715 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.532e-06/0.4199, allocations: 0 / 0.5508 GB, free: 6.715 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00161/0.4215, allocations: 1.124 MB / 0.5519 GB, free: 5.508 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002827/0.4218, allocations: 184.6 kB / 0.5521 GB, free: 5.309 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.185e-05/0.4219, allocations: 12 kB / 0.5521 GB, free: 5.297 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002573/0.4222, allocations: 15.98 kB / 0.5521 GB, free: 5.281 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.532e-05/0.4223, allocations: 31.95 kB / 0.5522 GB, free: 5.25 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.585e-05/0.4223, allocations: 12 kB / 0.5522 GB, free: 5.238 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000406/0.4227, allocations: 319.1 kB / 0.5525 GB, free: 4.926 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4227, allocations: 4 kB / 0.5525 GB, free: 4.922 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007869/0.4235, allocations: 160 kB / 0.5526 GB, free: 4.766 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.001948/0.4255, allocations: 1.676 MB / 0.5543 GB, free: 2.992 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001919/0.4274, allocations: 0.9872 MB / 0.5552 GB, free: 1.965 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.4274, allocations: 0 / 0.5552 GB, free: 1.965 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008501/0.4283, allocations: 0.6447 MB / 0.5559 GB, free: 1.27 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007409/0.429, allocations: 132.5 kB / 0.556 GB, free: 1.145 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009112/0.4381, allocations: 6.179 MB / 0.562 GB, free: 10.72 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007013/0.4389, allocations: 0.9839 MB / 0.563 GB, free: 9.707 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003531/0.4393, allocations: 116.6 kB / 0.5631 GB, free: 9.594 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003191/0.4396, allocations: 215.4 kB / 0.5633 GB, free: 9.383 MB / 430.1 MB Notification: Performance of SimCode: time 8.02e-07/0.4396, allocations: 0 / 0.5633 GB, free: 9.383 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05126/0.4909, allocations: 14.19 MB / 0.5772 GB, free: 11.35 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.52/13.01, allocations: 7.062 kB / 0.5772 GB, free: 11.35 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe 2>&1)