Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.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.ASM_ctrlAv,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv") translateModel(PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009115/0.0009114, allocations: 174 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.234/1.234, allocations: 205.4 MB / 222.2 MB, free: 9.012 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.000736/0.000736, allocations: 82.36 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.1613/0.1613, allocations: 38.07 MB / 356.9 MB, free: 1.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003397/0.0003397, allocations: 12 kB / 423.3 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2403/0.2406, allocations: 56.32 MB / 479.6 MB, free: 9.227 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv): time 0.007865/0.2486, allocations: 7.589 MB / 487.2 MB, free: 4.094 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.00753/0.2561, allocations: 4.831 MB / 492.1 MB, free: 0.707 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001448/0.2576, allocations: 56.78 kB / 492.1 MB, free: 0.6836 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01057/0.2682, allocations: 4.625 MB / 496.7 MB, free: 15.49 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002125/0.2704, allocations: 0.5147 MB / 497.2 MB, free: 15.2 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00165/0.272, allocations: 426 kB / 497.7 MB, free: 15 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.004028/0.2761, allocations: 2.582 MB / 0.4885 GB, free: 13.69 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002122/0.2782, allocations: 1.156 MB / 0.4896 GB, free: 12.88 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001158/0.2794, allocations: 0.5402 MB / 0.4902 GB, free: 12.59 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001287/0.2807, allocations: 0.7069 MB / 0.4909 GB, free: 12.18 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002543/0.281, allocations: 49.06 kB / 0.4909 GB, free: 12.18 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004463/0.2814, allocations: 62.7 kB / 0.491 GB, free: 12.18 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000531/0.282, allocations: 372.2 kB / 0.4913 GB, free: 11.94 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008361/0.2828, allocations: 0.5294 MB / 0.4918 GB, free: 11.57 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001369/0.2842, allocations: 1.239 MB / 0.4931 GB, free: 10.67 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.2842, allocations: 0 / 0.4931 GB, free: 10.67 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.943e-06/0.2842, allocations: 0.9688 kB / 0.4931 GB, free: 10.67 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.628e-05/0.2843, allocations: 0 / 0.4931 GB, free: 10.67 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: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.003173/0.2874, allocations: 1.241 MB / 0.4943 GB, free: 9.73 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.677e-05/0.2875, allocations: 9.406 kB / 0.4943 GB, free: 9.73 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005632/0.2881, allocations: 133 kB / 0.4944 GB, free: 9.664 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002059/0.2901, allocations: 0.895 MB / 0.4953 GB, free: 8.965 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.961e-05/0.2902, allocations: 64.45 kB / 0.4953 GB, free: 8.934 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002269/0.2905, allocations: 90.84 kB / 0.4954 GB, free: 8.902 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002221/0.2927, allocations: 1.222 MB / 0.4966 GB, free: 8.121 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.632e-05/0.2927, allocations: 10.59 kB / 0.4966 GB, free: 8.113 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.736e-05/0.2928, allocations: 40.23 kB / 0.4967 GB, free: 8.082 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002134/0.2931, allocations: 70.2 kB / 0.4967 GB, free: 8.062 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001903/0.295, allocations: 1.018 MB / 0.4977 GB, free: 7.555 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00654/0.3015, allocations: 4.436 MB / 0.5021 GB, free: 3.562 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001348/0.3029, allocations: 0.8996 MB / 0.5029 GB, free: 2.613 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006944/0.3036, allocations: 450.1 kB / 0.5034 GB, free: 2.168 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.049e-05/0.3037, allocations: 8.562 kB / 0.5034 GB, free: 2.16 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.968e-05/0.3037, allocations: 43.06 kB / 0.5034 GB, free: 2.109 MB / 330.7 MB Notification: Performance of pre-optimization done (n=70): time 2.325e-06/0.3037, allocations: 4 kB / 0.5034 GB, free: 2.105 MB / 330.7 MB Notification: Performance of matching and sorting (n=72): time 0.006378/0.3101, allocations: 3.326 MB / 0.5067 GB, free: 14.62 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.773e-05/0.3102, allocations: 141.1 kB / 0.5068 GB, free: 14.45 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007732/0.311, allocations: 0.6804 MB / 0.5075 GB, free: 13.76 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.689e-05/0.311, allocations: 37.7 kB / 0.5075 GB, free: 13.71 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003163/0.3114, allocations: 491.2 kB / 0.508 GB, free: 13.23 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002007/0.3116, allocations: 244.4 kB / 0.5082 GB, free: 12.98 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.728e-05/0.3116, allocations: 16 kB / 0.5082 GB, free: 12.97 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001262/0.3118, allocations: 345.9 kB / 0.5085 GB, free: 12.62 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006078/0.3124, allocations: 373.8 kB / 0.5089 GB, free: 12.26 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007451/0.3131, allocations: 0.5865 MB / 0.5095 GB, free: 11.58 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007496/0.3206, allocations: 2.434 MB / 0.5119 GB, free: 9.035 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.021e-06/0.3207, allocations: 4 kB / 0.5119 GB, free: 9.031 MB / 346.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.005535/0.3262, allocations: 2.055 MB / 0.5139 GB, free: 6.941 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000194/0.3264, allocations: 283.6 kB / 0.5141 GB, free: 6.57 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.445e-05/0.3264, allocations: 7.938 kB / 0.5141 GB, free: 6.562 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004484/0.3309, allocations: 1.047 MB / 0.5152 GB, free: 5.508 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005159/0.3315, allocations: 131.8 kB / 0.5153 GB, free: 5.379 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01438/0.3458, allocations: 9.178 MB / 0.5243 GB, free: 11.93 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006963/0.3466, allocations: 48.03 kB / 0.5243 GB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.433e-05/0.3467, allocations: 36 kB / 0.5243 GB, free: 11.85 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.125e-06/0.3467, allocations: 4 kB / 0.5243 GB, free: 11.84 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004959/0.3517, allocations: 1.84 MB / 0.5261 GB, free: 9.977 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.339e-05/0.3517, allocations: 12.06 kB / 0.5261 GB, free: 9.965 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004202/0.3559, allocations: 0.9926 MB / 0.5271 GB, free: 8.965 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005121/0.3564, allocations: 139.7 kB / 0.5273 GB, free: 8.828 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01304/0.3695, allocations: 8.906 MB / 0.5359 GB, free: 15.65 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006857/0.3702, allocations: 36.05 kB / 0.536 GB, free: 15.61 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.949e-05/0.3703, allocations: 35.98 kB / 0.536 GB, free: 15.58 MB / 378.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $DER.asm_ctrl.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,PI_i_q.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 63 * 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 35} Notification: Performance of prepare postOptimizeDAE: time 0.0006014/0.3709, allocations: 409.5 kB / 0.5364 GB, free: 15.17 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000174/0.3711, allocations: 94.81 kB / 0.5365 GB, free: 15.07 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002098/0.3732, allocations: 1.245 MB / 0.5377 GB, free: 13.77 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.17e-05/0.3732, allocations: 8 kB / 0.5377 GB, free: 13.76 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.614e-06/0.3732, allocations: 12.06 kB / 0.5377 GB, free: 13.75 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.328e-06/0.3732, allocations: 7.984 kB / 0.5377 GB, free: 13.74 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003608/0.3769, allocations: 2.417 MB / 0.5401 GB, free: 11.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.212e-06/0.3769, allocations: 4.062 kB / 0.5401 GB, free: 11.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008323/0.3777, allocations: 167.8 kB / 0.5403 GB, free: 11.03 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004376/0.3782, allocations: 151.3 kB / 0.5404 GB, free: 10.87 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.203e-05/0.3782, allocations: 23.98 kB / 0.5404 GB, free: 10.85 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003531/0.3818, allocations: 5.393 MB / 0.5457 GB, free: 4.922 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.017e-06/0.3818, allocations: 4.031 kB / 0.5457 GB, free: 4.918 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002559/0.3844, allocations: 1.872 MB / 0.5475 GB, free: 2.973 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000378/0.3848, allocations: 232 kB / 0.5478 GB, free: 2.727 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000134/0.3849, allocations: 19.94 kB / 0.5478 GB, free: 2.707 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004921/0.3854, allocations: 35.97 kB / 0.5478 GB, free: 2.672 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001225/0.3855, allocations: 60.58 kB / 0.5479 GB, free: 2.613 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.303e-05/0.3856, allocations: 23.98 kB / 0.5479 GB, free: 2.59 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00057/0.3862, allocations: 479 kB / 0.5483 GB, free: 2.129 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.3e-07/0.3862, allocations: 192 / 0.5483 GB, free: 2.129 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001537/0.3877, allocations: 456 kB / 0.5488 GB, free: 1.684 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 9 (asm_ctrl.motor.i[3],asm_ctrl.motor.psi_s[1],asm_ctrl.motor.psi_s[2],asm_ctrl.motor.psi_rd[1],asm_ctrl.motor.psi_rq[1],asm_ctrl.motor.phiRotorflux,loadInertia.w,frictTorq.phi,PI_i_q.I.y) * 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 (79): * Single equations (assignments): 74 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001483/0.3879, allocations: 127.1 kB / 0.5489 GB, free: 1.551 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004481/0.3924, allocations: 2.607 MB / 0.5514 GB, free: 14.89 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.556e-06/0.3924, allocations: 256 / 0.5514 GB, free: 14.89 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001135/0.3935, allocations: 0.9163 MB / 0.5523 GB, free: 13.92 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001207/0.3947, allocations: 231.2 kB / 0.5526 GB, free: 13.7 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003635/0.3984, allocations: 3.008 MB / 0.5555 GB, free: 10.65 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007053/0.3991, allocations: 1.174 MB / 0.5566 GB, free: 9.445 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002452/0.3994, allocations: 75.41 kB / 0.5567 GB, free: 9.371 MB / 394.7 MB Notification: Performance of SimCode: time 6.81e-07/0.3994, allocations: 0 / 0.5567 GB, free: 9.371 MB / 394.7 MB Notification: Performance of Templates: time 0.02891/0.4283, allocations: 27.61 MB / 0.5837 GB, free: 13.71 MB / 426.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.pipe 2>&1)