Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.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-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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: translateModel(PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2400,variableFilter="Time|asm_ctrl.motor.tau_el|tabLoad.vVehicle",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol") translateModel(PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2400,variableFilter="Time|asm_ctrl.motor.tau_el|tabLoad.vVehicle",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00156/0.00156, allocations: 112.9 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.001825/0.001826, allocations: 196 kB / 18.01 MB, free: 5.074 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.506/1.506, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.233/0.233, allocations: 38.05 MB / 329.9 MB, free: 8.723 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001175/0.001175, allocations: 59.91 kB / 458.2 MB, free: 6.816 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3568/0.358, allocations: 58.05 MB / 0.5041 GB, free: 7.891 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol): time 0.01028/0.3683, allocations: 7.542 MB / 0.5115 GB, free: 2.617 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0117/0.3801, allocations: 5.118 MB / 0.5165 GB, free: 15.06 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001516/0.3816, allocations: 39.97 kB / 0.5165 GB, free: 15.05 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01292/0.3946, allocations: 5.605 MB / 0.522 GB, free: 13.49 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00215/0.3967, allocations: 0.5351 MB / 0.5225 GB, free: 13.16 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001713/0.3985, allocations: 0.5839 MB / 0.5231 GB, free: 12.83 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003986/0.4025, allocations: 2.594 MB / 0.5256 GB, free: 11.83 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001849/0.4043, allocations: 1.284 MB / 0.5269 GB, free: 11.21 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001388/0.4057, allocations: 0.7142 MB / 0.5276 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001172/0.4069, allocations: 0.8524 MB / 0.5284 GB, free: 10.26 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002153/0.4071, allocations: 143.2 kB / 0.5285 GB, free: 10.26 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004893/0.4076, allocations: 221.3 kB / 0.5287 GB, free: 10.22 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005076/0.4082, allocations: 0.5151 MB / 0.5292 GB, free: 9.855 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006922/0.4089, allocations: 0.6966 MB / 0.5299 GB, free: 9.348 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002444/0.4113, allocations: 1.914 MB / 0.5318 GB, free: 7.961 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.4113, allocations: 0 / 0.5318 GB, free: 7.961 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.4113, allocations: 0 / 0.5318 GB, free: 7.961 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.954e-05/0.4114, allocations: 0 / 0.5318 GB, free: 7.961 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: 231 * Number of variables: 231 Notification: Performance of Generate backend data structure: time 0.004067/0.4155, allocations: 1.733 MB / 0.5335 GB, free: 6.695 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.325e-05/0.4155, allocations: 16.52 kB / 0.5335 GB, free: 6.688 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004832/0.416, allocations: 157.2 kB / 0.5337 GB, free: 6.605 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002313/0.4183, allocations: 1.1 MB / 0.5347 GB, free: 5.777 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.293e-05/0.4184, allocations: 64.73 kB / 0.5348 GB, free: 5.746 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001957/0.4186, allocations: 91.33 kB / 0.5349 GB, free: 5.715 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002128/0.4208, allocations: 1.336 MB / 0.5362 GB, free: 4.871 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.959e-05/0.4208, allocations: 9.391 kB / 0.5362 GB, free: 4.863 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.796e-05/0.4209, allocations: 32.44 kB / 0.5362 GB, free: 4.84 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003094/0.4212, allocations: 92.59 kB / 0.5363 GB, free: 4.809 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001872/0.4231, allocations: 1.143 MB / 0.5374 GB, free: 4.246 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007142/0.4303, allocations: 4.921 MB / 0.5422 GB, free: 448 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001518/0.4318, allocations: 0.9436 MB / 0.5432 GB, free: 15.85 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008445/0.4327, allocations: 0.5238 MB / 0.5437 GB, free: 15.57 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.784e-05/0.4328, allocations: 16.38 kB / 0.5437 GB, free: 15.56 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009387/0.4337, allocations: 0.6264 MB / 0.5443 GB, free: 15.01 MB / 414.1 MB Notification: Performance of pre-optimization done (n=79): time 2.264e-06/0.4337, allocations: 0 / 0.5443 GB, free: 15.01 MB / 414.1 MB Notification: Performance of matching and sorting (n=81): time 0.008771/0.4425, allocations: 4.195 MB / 0.5484 GB, free: 10.65 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.813e-05/0.4426, allocations: 170.9 kB / 0.5486 GB, free: 10.45 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001079/0.4437, allocations: 0.8334 MB / 0.5494 GB, free: 9.59 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.983e-05/0.4438, allocations: 41.7 kB / 0.5494 GB, free: 9.543 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003778/0.4442, allocations: 0.5356 MB / 0.5499 GB, free: 9 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002793/0.4445, allocations: 305.4 kB / 0.5502 GB, free: 8.699 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000352/0.4448, allocations: 190.6 kB / 0.5504 GB, free: 8.508 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001525/0.445, allocations: 345.9 kB / 0.5507 GB, free: 8.164 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007953/0.4458, allocations: 484.6 kB / 0.5512 GB, free: 7.688 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009059/0.4467, allocations: 0.717 MB / 0.5519 GB, free: 6.871 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001736/0.4485, allocations: 1.23 MB / 0.5531 GB, free: 5.547 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.109e-06/0.4485, allocations: 4 kB / 0.5531 GB, free: 5.543 MB / 414.1 MB Notification: Performance of matching and sorting (n=122) (initialization): time 0.01173/0.4602, allocations: 2.896 MB / 0.5559 GB, free: 2.617 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.57e-05/0.4603, allocations: 8 kB / 0.5559 GB, free: 2.609 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.146e-05/0.4603, allocations: 11.94 kB / 0.5559 GB, free: 2.598 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01212/0.4725, allocations: 1.877 MB / 0.5578 GB, free: 0.707 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001016/0.4735, allocations: 139.8 kB / 0.5579 GB, free: 0.5703 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02157/0.4951, allocations: 12.54 MB / 0.5702 GB, free: 3.754 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001327/0.4965, allocations: 55.89 kB / 0.5702 GB, free: 3.699 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001303/0.4966, allocations: 47.98 kB / 0.5703 GB, free: 3.652 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001569/0.4982, allocations: 0.7478 MB / 0.571 GB, free: 2.898 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009428/0.4992, allocations: 0.7014 MB / 0.5717 GB, free: 2.098 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001676/0.5009, allocations: 1.207 MB / 0.5729 GB, free: 0.8047 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.092e-06/0.5009, allocations: 0 / 0.5729 GB, free: 0.8047 MB / 430.1 MB Notification: Performance of matching and sorting (n=122) (initialization_lambda0): time 0.01011/0.511, allocations: 2.822 MB / 0.5756 GB, free: 13.95 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.482e-05/0.5111, allocations: 12.25 kB / 0.5756 GB, free: 13.94 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.315e-05/0.5111, allocations: 8 kB / 0.5756 GB, free: 13.93 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008728/0.5199, allocations: 1.865 MB / 0.5774 GB, free: 12.05 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007522/0.5207, allocations: 139.8 kB / 0.5776 GB, free: 11.91 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0202/0.5409, allocations: 12.32 MB / 0.5896 GB, free: 15.32 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001107/0.5421, allocations: 55.95 kB / 0.5897 GB, free: 15.27 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.524e-05/0.5422, allocations: 47.98 kB / 0.5897 GB, free: 15.22 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 3 (system.initime,$whenCondition1,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 (71): * Single equations (assignments): 69 * 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 {(9,40)} Notification: Performance of prepare postOptimizeDAE: time 0.0003281/0.5425, allocations: 240 kB / 0.5899 GB, free: 14.98 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001678/0.5427, allocations: 111.3 kB / 0.59 GB, free: 14.87 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003089/0.5458, allocations: 1.642 MB / 0.5916 GB, free: 13.16 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.307e-05/0.5458, allocations: 15.94 kB / 0.5917 GB, free: 13.15 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/0.5458, allocations: 0 / 0.5917 GB, free: 13.15 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.473e-05/0.5458, allocations: 7.984 kB / 0.5917 GB, free: 13.14 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004974/0.5508, allocations: 2.894 MB / 0.5945 GB, free: 10.14 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.16e-06/0.5508, allocations: 0 / 0.5945 GB, free: 10.14 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009437/0.5518, allocations: 163.8 kB / 0.5947 GB, free: 9.977 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001343/0.5531, allocations: 379 kB / 0.595 GB, free: 9.594 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.695e-05/0.5532, allocations: 27.98 kB / 0.595 GB, free: 9.566 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006402/0.5596, allocations: 6.797 MB / 0.6017 GB, free: 2.207 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.569e-06/0.5597, allocations: 3.938 kB / 0.6017 GB, free: 2.203 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003904/0.5636, allocations: 2.305 MB / 0.6039 GB, free: 15.82 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005234/0.5641, allocations: 276.2 kB / 0.6042 GB, free: 15.53 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001473/0.5643, allocations: 20 kB / 0.6042 GB, free: 15.51 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006046/0.5649, allocations: 43.95 kB / 0.6043 GB, free: 15.47 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001911/0.5651, allocations: 64.84 kB / 0.6043 GB, free: 15.41 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.503e-05/0.5652, allocations: 39.98 kB / 0.6044 GB, free: 15.37 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0007932/0.566, allocations: 0.5815 MB / 0.6049 GB, free: 14.77 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.566, allocations: 0 / 0.6049 GB, free: 14.77 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002004/0.568, allocations: 0.5469 MB / 0.6055 GB, free: 14.23 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 (asm_ctrl.rotor.phi,asm_ctrl.rotor.w,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_rd[2],asm_ctrl.motor.psi_rq[1],asm_ctrl.motor.psi_rq[2],asm_ctrl.motor.phiRotorflux,tabLoad.s,PI_i_q.I.y) * 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 (82): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,2,100.0%), (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.001048/0.5691, allocations: 426.8 kB / 0.6059 GB, free: 13.95 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006918/0.576, allocations: 3.251 MB / 0.609 GB, free: 10.66 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.127e-05/0.576, allocations: 0 / 0.609 GB, free: 10.66 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002049/0.5781, allocations: 1.149 MB / 0.6102 GB, free: 9.453 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001611/0.5797, allocations: 277.1 kB / 0.6104 GB, free: 9.188 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007054/0.5868, allocations: 2.969 MB / 0.6133 GB, free: 6.18 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001285/0.5881, allocations: 1.245 MB / 0.6145 GB, free: 4.906 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0009847/0.5891, allocations: 256.1 kB / 0.6148 GB, free: 4.652 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002815/0.5894, allocations: 83.41 kB / 0.6149 GB, free: 4.57 MB / 478.1 MB Notification: Performance of SimCode: time 1.863e-06/0.5894, allocations: 4 kB / 0.6149 GB, free: 4.566 MB / 478.1 MB Notification: Performance of Templates: time 0.05329/0.6427, allocations: 33.02 MB / 0.6471 GB, free: 3.699 MB / 0.4981 GB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.pipe 2>&1)