Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMav.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Drives.ASMav,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2400,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMav") translateModel(PowerSystems.Examples.AC3ph.Drives.ASMav,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2400,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMav") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009791/0.0009792, allocations: 174.1 kB / 16.07 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.251/1.251, allocations: 205.4 MB / 222.2 MB, free: 9.004 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007749/0.0007749, allocations: 89.06 kB / 270.6 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.168/0.168, allocations: 38.07 MB / 356.9 MB, free: 1.727 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003268/0.0003268, allocations: 12 kB / 423.3 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2129/0.2133, allocations: 56.33 MB / 479.6 MB, free: 9.227 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav): time 0.006878/0.2202, allocations: 7.493 MB / 487.1 MB, free: 4.16 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.007027/0.2273, allocations: 5.069 MB / 492.2 MB, free: 0.6289 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001003/0.2283, allocations: 53.69 kB / 492.2 MB, free: 0.6055 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01106/0.2394, allocations: 5.518 MB / 497.8 MB, free: 15.31 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001906/0.2413, allocations: 0.5462 MB / 498.3 MB, free: 15.01 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001576/0.2429, allocations: 459.6 kB / 498.8 MB, free: 14.69 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.003604/0.2465, allocations: 2.55 MB / 0.4896 GB, free: 13.31 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001789/0.2483, allocations: 1.021 MB / 0.4906 GB, free: 12.58 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00105/0.2494, allocations: 0.5023 MB / 0.4911 GB, free: 12.32 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001188/0.2506, allocations: 0.7013 MB / 0.4917 GB, free: 11.94 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002391/0.2509, allocations: 46.66 kB / 0.4918 GB, free: 11.94 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000718/0.2516, allocations: 204.1 kB / 0.492 GB, free: 11.86 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000566/0.2522, allocations: 445.6 kB / 0.4924 GB, free: 11.6 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008297/0.253, allocations: 0.5109 MB / 0.4929 GB, free: 11.25 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001335/0.2543, allocations: 1.184 MB / 0.4941 GB, free: 10.44 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.2544, allocations: 0 / 0.4941 GB, free: 10.44 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2544, allocations: 0 / 0.4941 GB, free: 10.44 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.63e-05/0.2544, allocations: 1.125 kB / 0.4941 GB, free: 10.44 MB / 330.7 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.00288/0.2573, allocations: 1.251 MB / 0.4953 GB, free: 9.488 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.598e-05/0.2574, allocations: 13.56 kB / 0.4953 GB, free: 9.484 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007071/0.2581, allocations: 151.1 kB / 0.4954 GB, free: 9.41 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001799/0.2599, allocations: 0.8767 MB / 0.4963 GB, free: 8.738 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.493e-05/0.26, allocations: 58.56 kB / 0.4963 GB, free: 8.711 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002041/0.2602, allocations: 91.48 kB / 0.4964 GB, free: 8.676 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001973/0.2622, allocations: 1.231 MB / 0.4976 GB, free: 7.871 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.405e-05/0.2622, allocations: 5.25 kB / 0.4976 GB, free: 7.867 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.588e-05/0.2623, allocations: 33.17 kB / 0.4977 GB, free: 7.844 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002514/0.2626, allocations: 91.28 kB / 0.4978 GB, free: 7.812 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00171/0.2643, allocations: 1.004 MB / 0.4987 GB, free: 7.109 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006731/0.271, allocations: 4.932 MB / 0.5036 GB, free: 1.961 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009499/0.272, allocations: 0.6564 MB / 0.5042 GB, free: 1.266 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005502/0.2726, allocations: 355.3 kB / 0.5045 GB, free: 0.9141 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.441e-05/0.2727, allocations: 8.562 kB / 0.5045 GB, free: 0.9023 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006313/0.2733, allocations: 449.8 kB / 0.505 GB, free: 456 kB / 330.7 MB Notification: Performance of pre-optimization done (n=62): time 2.675e-06/0.2733, allocations: 0 / 0.505 GB, free: 456 kB / 330.7 MB Notification: Performance of matching and sorting (n=65): time 0.00467/0.278, allocations: 2.715 MB / 0.5076 GB, free: 13.59 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.407e-05/0.2781, allocations: 115.4 kB / 0.5077 GB, free: 13.46 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009321/0.279, allocations: 0.7351 MB / 0.5085 GB, free: 12.71 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.325e-05/0.2791, allocations: 41.7 kB / 0.5085 GB, free: 12.66 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003219/0.2794, allocations: 0.4947 MB / 0.509 GB, free: 12.16 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002025/0.2796, allocations: 240.6 kB / 0.5092 GB, free: 11.92 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.391e-05/0.2797, allocations: 23.94 kB / 0.5092 GB, free: 11.9 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000172/0.2799, allocations: 398.7 kB / 0.5096 GB, free: 11.5 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005857/0.2805, allocations: 373.8 kB / 0.51 GB, free: 11.13 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007436/0.2812, allocations: 0.6536 MB / 0.5106 GB, free: 10.35 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001354/0.2826, allocations: 1.049 MB / 0.5116 GB, free: 9.18 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.182e-06/0.2826, allocations: 4 kB / 0.5116 GB, free: 9.176 MB / 346.7 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002908/0.2855, allocations: 1.619 MB / 0.5132 GB, free: 7.523 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.269e-05/0.2856, allocations: 10.34 kB / 0.5132 GB, free: 7.516 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.545e-05/0.2856, allocations: 8 kB / 0.5132 GB, free: 7.508 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001481/0.2871, allocations: 494.6 kB / 0.5137 GB, free: 7.02 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006137/0.2877, allocations: 163.7 kB / 0.5139 GB, free: 6.859 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008775/0.2965, allocations: 6.504 MB / 0.5202 GB, free: 76 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007202/0.2972, allocations: 47.95 kB / 0.5203 GB, free: 28 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000121/0.2974, allocations: 48.03 kB / 0.5203 GB, free: 15.98 MB / 362.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 1 {6 23} Notification: Performance of prepare postOptimizeDAE: time 0.0005733/0.298, allocations: 353.4 kB / 0.5206 GB, free: 15.62 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001354/0.2981, allocations: 82.97 kB / 0.5207 GB, free: 15.54 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001866/0.3, allocations: 1.114 MB / 0.5218 GB, free: 14.37 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.205e-06/0.3, allocations: 8 kB / 0.5218 GB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.3, allocations: 0 / 0.5218 GB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.008e-05/0.3, allocations: 3.984 kB / 0.5218 GB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003464/0.3035, allocations: 2.115 MB / 0.5239 GB, free: 12.13 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.14e-06/0.3035, allocations: 3.938 kB / 0.5239 GB, free: 12.12 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000716/0.3042, allocations: 127.8 kB / 0.524 GB, free: 12 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005047/0.3048, allocations: 162.5 kB / 0.5242 GB, free: 11.83 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.763e-05/0.3049, allocations: 23.98 kB / 0.5242 GB, free: 11.81 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00363/0.3085, allocations: 4.454 MB / 0.5285 GB, free: 6.957 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.3085, allocations: 7.938 kB / 0.5285 GB, free: 6.949 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002219/0.3107, allocations: 1.525 MB / 0.53 GB, free: 5.352 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000383/0.3111, allocations: 223.8 kB / 0.5302 GB, free: 5.113 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001389/0.3113, allocations: 16 kB / 0.5303 GB, free: 5.098 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004468/0.3117, allocations: 31.97 kB / 0.5303 GB, free: 5.066 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001314/0.3119, allocations: 56.42 kB / 0.5303 GB, free: 5.012 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.725e-05/0.312, allocations: 23.98 kB / 0.5304 GB, free: 4.988 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006963/0.3127, allocations: 0.5068 MB / 0.5309 GB, free: 4.488 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3127, allocations: 4 kB / 0.5309 GB, free: 4.484 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001079/0.3138, allocations: 260 kB / 0.5311 GB, free: 4.23 MB / 362.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 3,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000867/0.3146, allocations: 419.6 kB / 0.5315 GB, free: 3.863 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002456/0.3171, allocations: 1.333 MB / 0.5328 GB, free: 2.508 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.686e-06/0.3171, allocations: 0 / 0.5328 GB, free: 2.508 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001186/0.3183, allocations: 0.7779 MB / 0.5336 GB, free: 1.688 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001218/0.3195, allocations: 199.6 kB / 0.5338 GB, free: 1.492 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004527/0.3241, allocations: 3.324 MB / 0.537 GB, free: 14.12 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007823/0.3249, allocations: 1.147 MB / 0.5381 GB, free: 12.95 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002889/0.3252, allocations: 79.36 kB / 0.5382 GB, free: 12.87 MB / 378.7 MB Notification: Performance of SimCode: time 6.61e-07/0.3252, allocations: 0 / 0.5382 GB, free: 12.87 MB / 378.7 MB Notification: Performance of Templates: time 0.02701/0.3522, allocations: 22.7 MB / 0.5604 GB, free: 6.129 MB / 394.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMav.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMav.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMav --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe 2>&1)