Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.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.ASMav,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASMav",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASMav,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASMav",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.001267/0.001266, allocations: 111.7 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.00119/0.00119, 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.383/1.383, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1836/0.1836, allocations: 38.04 MB / 329.9 MB, free: 8.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001861/0.001861, allocations: 67.89 kB / 457.7 MB, free: 7.316 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3262/0.328, allocations: 58.05 MB / 0.5036 GB, free: 7.477 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav): time 0.007265/0.3354, allocations: 7.116 MB / 0.5106 GB, free: 2.523 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007181/0.3426, allocations: 5.09 MB / 0.5155 GB, free: 15 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007578/0.3434, allocations: 28.19 kB / 0.5156 GB, free: 14.99 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01177/0.3551, allocations: 5.709 MB / 0.5211 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001676/0.3568, allocations: 0.5079 MB / 0.5216 GB, free: 13.07 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001625/0.3585, allocations: 0.5047 MB / 0.5221 GB, free: 12.82 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003406/0.3619, allocations: 2.244 MB / 0.5243 GB, free: 12.01 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001511/0.3634, allocations: 0.928 MB / 0.5252 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001197/0.3646, allocations: 0.6055 MB / 0.5258 GB, free: 11.31 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001357/0.366, allocations: 0.7232 MB / 0.5265 GB, free: 11.02 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003398/0.3664, allocations: 100.1 kB / 0.5266 GB, free: 11.02 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008864/0.3672, allocations: 253 kB / 0.5269 GB, free: 10.97 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007758/0.368, allocations: 497.7 kB / 0.5273 GB, free: 10.69 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001186/0.3692, allocations: 0.5856 MB / 0.5279 GB, free: 10.28 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002366/0.3716, allocations: 1.548 MB / 0.5294 GB, free: 9.207 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.3716, allocations: 0 / 0.5294 GB, free: 9.207 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3716, allocations: 0 / 0.5294 GB, free: 9.207 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.194e-05/0.3717, allocations: 0 / 0.5294 GB, free: 9.207 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: 220 * Number of variables: 220 Notification: Performance of Generate backend data structure: time 0.00323/0.3749, allocations: 1.493 MB / 0.5309 GB, free: 8.082 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.848e-05/0.375, allocations: 10.56 kB / 0.5309 GB, free: 8.082 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001819/0.3751, allocations: 135.9 kB / 0.531 GB, free: 7.973 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006359/0.3758, allocations: 151.1 kB / 0.5312 GB, free: 7.898 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001791/0.3776, allocations: 0.9254 MB / 0.5321 GB, free: 7.191 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.726e-05/0.3777, allocations: 59.22 kB / 0.5321 GB, free: 7.164 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001679/0.3778, allocations: 82.89 kB / 0.5322 GB, free: 7.137 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002212/0.3801, allocations: 1.233 MB / 0.5334 GB, free: 6.336 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.46e-05/0.3801, allocations: 14.08 kB / 0.5334 GB, free: 6.324 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001379/0.3803, allocations: 32.75 kB / 0.5335 GB, free: 6.301 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000279/0.3806, allocations: 92.12 kB / 0.5335 GB, free: 6.27 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001762/0.3823, allocations: 1.003 MB / 0.5345 GB, free: 5.789 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007561/0.3899, allocations: 4.903 MB / 0.5393 GB, free: 1.781 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001024/0.391, allocations: 0.6477 MB / 0.5399 GB, free: 1.371 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006109/0.3916, allocations: 360.5 kB / 0.5403 GB, free: 1.184 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.727e-05/0.3917, allocations: 11.88 kB / 0.5403 GB, free: 1.18 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007395/0.3924, allocations: 448.6 kB / 0.5407 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of pre-optimization done (n=62): time 2.434e-06/0.3924, allocations: 0 / 0.5407 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of matching and sorting (n=65): time 0.00519/0.3976, allocations: 2.744 MB / 0.5434 GB, free: 15.04 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.874e-05/0.3977, allocations: 109.6 kB / 0.5435 GB, free: 14.91 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009943/0.3987, allocations: 0.7577 MB / 0.5442 GB, free: 14.42 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.209e-05/0.3988, allocations: 41.7 kB / 0.5443 GB, free: 14.38 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003982/0.3992, allocations: 0.5039 MB / 0.5448 GB, free: 13.86 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002297/0.3994, allocations: 249.9 kB / 0.545 GB, free: 13.62 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003299/0.3998, allocations: 182.5 kB / 0.5452 GB, free: 13.43 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002276/0.4, allocations: 398.7 kB / 0.5456 GB, free: 13.04 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006188/0.4006, allocations: 377.8 kB / 0.5459 GB, free: 12.67 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008804/0.4015, allocations: 0.6578 MB / 0.5466 GB, free: 11.88 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001499/0.403, allocations: 1.045 MB / 0.5476 GB, free: 10.71 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.001e-06/0.4031, allocations: 4 kB / 0.5476 GB, free: 10.71 MB / 414.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.003172/0.4062, allocations: 1.639 MB / 0.5492 GB, free: 9.035 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.844e-05/0.4063, allocations: 15.94 kB / 0.5492 GB, free: 9.02 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.914e-05/0.4063, allocations: 8 kB / 0.5492 GB, free: 9.012 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001535/0.4078, allocations: 485.7 kB / 0.5497 GB, free: 8.531 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006358/0.4085, allocations: 175.7 kB / 0.5499 GB, free: 8.359 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0102/0.4187, allocations: 7.077 MB / 0.5568 GB, free: 1 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008171/0.4195, allocations: 44.16 kB / 0.5568 GB, free: 0.957 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.32e-05/0.4196, allocations: 55.92 kB / 0.5569 GB, free: 0.9023 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 87 * Array equations: 0 * 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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,23)} Notification: Performance of prepare postOptimizeDAE: time 0.0005781/0.4202, allocations: 349.5 kB / 0.5572 GB, free: 0.5508 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001433/0.4204, allocations: 91.39 kB / 0.5573 GB, free: 472 kB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001964/0.4223, allocations: 1.114 MB / 0.5584 GB, free: 15.29 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.263e-06/0.4224, allocations: 4 kB / 0.5584 GB, free: 15.29 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.4224, allocations: 4 kB / 0.5584 GB, free: 15.28 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.284e-05/0.4224, allocations: 3.984 kB / 0.5584 GB, free: 15.28 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003735/0.4261, allocations: 2.119 MB / 0.5605 GB, free: 13.04 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.51e-06/0.4262, allocations: 0 / 0.5605 GB, free: 13.04 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007364/0.4269, allocations: 123.8 kB / 0.5606 GB, free: 12.92 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005451/0.4275, allocations: 162.5 kB / 0.5607 GB, free: 12.75 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.309e-05/0.4276, allocations: 23.98 kB / 0.5607 GB, free: 12.73 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004701/0.4323, allocations: 4.805 MB / 0.5654 GB, free: 7.5 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.448e-06/0.4323, allocations: 7.969 kB / 0.5654 GB, free: 7.492 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002486/0.4348, allocations: 1.531 MB / 0.5669 GB, free: 5.891 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004034/0.4352, allocations: 216.7 kB / 0.5671 GB, free: 5.66 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001125/0.4353, allocations: 20 kB / 0.5672 GB, free: 5.641 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004299/0.4358, allocations: 35.95 kB / 0.5672 GB, free: 5.605 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001523/0.4359, allocations: 52.42 kB / 0.5673 GB, free: 5.555 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.71e-05/0.436, allocations: 23.98 kB / 0.5673 GB, free: 5.531 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0007371/0.4367, allocations: 0.5146 MB / 0.5678 GB, free: 5.023 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4367, allocations: 0 / 0.5678 GB, free: 5.023 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001044/0.4378, allocations: 263.9 kB / 0.568 GB, free: 4.766 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 13 (power.pav[1],power.pav[2],power.pav[3],asm.rotor.phi,asm.rotor.w,asm.motor.i[3],asm.motor.psi_s[1],asm.motor.psi_s[2],asm.motor.psi_rd[1],asm.motor.psi_rd[2],asm.motor.psi_rq[1],asm.motor.psi_rq[2],tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * 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,3,100.0%), (2,1,100.0%), (2,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.003912/0.4417, allocations: 2.397 MB / 0.5704 GB, free: 2.434 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002544/0.4443, allocations: 1.335 MB / 0.5717 GB, free: 1.07 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.4443, allocations: 4.125 kB / 0.5717 GB, free: 1.066 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001271/0.4456, allocations: 0.7844 MB / 0.5724 GB, free: 248 kB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001097/0.4467, allocations: 213.1 kB / 0.5726 GB, free: 36 kB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01543/0.4621, allocations: 9.866 MB / 0.5823 GB, free: 5.73 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009155/0.4631, allocations: 1.143 MB / 0.5834 GB, free: 4.559 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0006904/0.4638, allocations: 239.3 kB / 0.5836 GB, free: 4.32 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005257/0.4643, allocations: 359.3 kB / 0.584 GB, free: 3.969 MB / 446.1 MB Notification: Performance of SimCode: time 6.01e-07/0.4643, allocations: 0 / 0.584 GB, free: 3.969 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06604/0.5304, allocations: 23.81 MB / 0.6072 GB, free: 12.32 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.18/16.71, allocations: 7.875 kB / 0.6072 GB, free: 12.31 MB / 478.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASMav_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASMav.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe 2>&1)