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.001635/0.001635, allocations: 110.2 kB / 17.74 MB, free: 5.359 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.001879/0.001879, allocations: 185.4 kB / 18.67 MB, free: 4.438 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.378/1.378, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.179/0.179, allocations: 38.05 MB / 330.6 MB, free: 8.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 63.91 kB / 458.8 MB, free: 6.844 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2924/0.2937, allocations: 58.05 MB / 0.5048 GB, free: 7.758 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol): time 0.007815/0.3015, allocations: 7.543 MB / 0.5121 GB, free: 2.488 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00766/0.3092, allocations: 5.128 MB / 0.5171 GB, free: 14.93 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009205/0.3102, allocations: 35.22 kB / 0.5172 GB, free: 14.92 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01172/0.3219, allocations: 5.6 MB / 0.5227 GB, free: 13.37 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001888/0.3238, allocations: 0.5513 MB / 0.5232 GB, free: 13.02 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001533/0.3254, allocations: 0.5796 MB / 0.5238 GB, free: 12.7 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003452/0.3288, allocations: 2.587 MB / 0.5263 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001612/0.3305, allocations: 1.299 MB / 0.5275 GB, free: 11.08 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001079/0.3315, allocations: 0.7164 MB / 0.5282 GB, free: 10.75 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009841/0.3325, allocations: 0.8598 MB / 0.5291 GB, free: 10.2 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001897/0.3327, allocations: 143.2 kB / 0.5292 GB, free: 10.2 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000436/0.3332, allocations: 212.8 kB / 0.5294 GB, free: 10.17 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004525/0.3336, allocations: 0.5229 MB / 0.5299 GB, free: 9.801 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006344/0.3343, allocations: 0.693 MB / 0.5306 GB, free: 9.297 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001884/0.3362, allocations: 1.903 MB / 0.5325 GB, free: 7.922 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.3362, allocations: 3.938 kB / 0.5325 GB, free: 7.918 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.063e-06/0.3362, allocations: 1.281 kB / 0.5325 GB, free: 7.918 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.865e-05/0.3362, allocations: 4 kB / 0.5325 GB, free: 7.914 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.003783/0.34, allocations: 1.69 MB / 0.5341 GB, free: 6.691 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.015e-05/0.3401, allocations: 16.55 kB / 0.5341 GB, free: 6.684 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000447/0.3405, allocations: 147 kB / 0.5343 GB, free: 6.609 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002083/0.3426, allocations: 1.099 MB / 0.5354 GB, free: 5.781 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.735e-05/0.3427, allocations: 62.28 kB / 0.5354 GB, free: 5.754 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001891/0.3429, allocations: 98.58 kB / 0.5355 GB, free: 5.715 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002067/0.345, allocations: 1.327 MB / 0.5368 GB, free: 4.879 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.165e-05/0.345, allocations: 6.125 kB / 0.5368 GB, free: 4.875 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001045/0.3451, allocations: 36.95 kB / 0.5369 GB, free: 4.848 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003261/0.3455, allocations: 93.3 kB / 0.5369 GB, free: 4.816 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001904/0.3474, allocations: 1.147 MB / 0.5381 GB, free: 4.25 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006917/0.3543, allocations: 4.896 MB / 0.5428 GB, free: 476 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001395/0.3557, allocations: 0.9465 MB / 0.5438 GB, free: 15.88 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008102/0.3565, allocations: 0.5284 MB / 0.5443 GB, free: 15.59 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.412e-05/0.3566, allocations: 17.3 kB / 0.5443 GB, free: 15.58 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009604/0.3576, allocations: 0.6257 MB / 0.5449 GB, free: 15.1 MB / 414.1 MB Notification: Performance of pre-optimization done (n=79): time 2.925e-06/0.3576, allocations: 4 kB / 0.5449 GB, free: 15.09 MB / 414.1 MB Notification: Performance of matching and sorting (n=81): time 0.008671/0.3663, allocations: 4.157 MB / 0.549 GB, free: 10.77 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.603e-05/0.3664, allocations: 166.9 kB / 0.5491 GB, free: 10.57 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001039/0.3674, allocations: 0.8488 MB / 0.55 GB, free: 9.699 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.47e-05/0.3675, allocations: 41.7 kB / 0.55 GB, free: 9.652 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003542/0.3679, allocations: 0.5152 MB / 0.5505 GB, free: 9.129 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002356/0.3681, allocations: 291.8 kB / 0.5508 GB, free: 8.84 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002989/0.3684, allocations: 182.5 kB / 0.551 GB, free: 8.656 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001307/0.3686, allocations: 341.9 kB / 0.5513 GB, free: 8.316 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007659/0.3693, allocations: 492.6 kB / 0.5518 GB, free: 7.832 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009154/0.3703, allocations: 0.713 MB / 0.5525 GB, free: 7.02 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001663/0.3719, allocations: 1.226 MB / 0.5536 GB, free: 5.699 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.372, allocations: 0 / 0.5536 GB, free: 5.699 MB / 414.1 MB Notification: Performance of matching and sorting (n=122) (initialization): time 0.008688/0.3806, allocations: 2.903 MB / 0.5565 GB, free: 2.766 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.343e-05/0.3807, allocations: 11.98 kB / 0.5565 GB, free: 2.754 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.301e-05/0.3807, allocations: 4 kB / 0.5565 GB, free: 2.75 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00858/0.3893, allocations: 1.885 MB / 0.5583 GB, free: 0.8516 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000628/0.3899, allocations: 143.8 kB / 0.5585 GB, free: 0.7109 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02033/0.4103, allocations: 12.52 MB / 0.5707 GB, free: 3.922 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009163/0.4112, allocations: 59.95 kB / 0.5708 GB, free: 3.863 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.635e-05/0.4113, allocations: 55.92 kB / 0.5708 GB, free: 3.809 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001175/0.4125, allocations: 0.7478 MB / 0.5715 GB, free: 3.055 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008391/0.4134, allocations: 0.6936 MB / 0.5722 GB, free: 2.262 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001589/0.415, allocations: 1.207 MB / 0.5734 GB, free: 0.9688 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.717e-06/0.415, allocations: 4 kB / 0.5734 GB, free: 0.9648 MB / 430.1 MB Notification: Performance of matching and sorting (n=122) (initialization_lambda0): time 0.008314/0.4233, allocations: 2.813 MB / 0.5761 GB, free: 14.12 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.4233, allocations: 11.94 kB / 0.5762 GB, free: 14.11 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.859e-06/0.4233, allocations: 4 kB / 0.5762 GB, free: 14.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008291/0.4316, allocations: 1.873 MB / 0.578 GB, free: 12.21 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005747/0.4322, allocations: 135.8 kB / 0.5781 GB, free: 12.08 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01904/0.4513, allocations: 12.31 MB / 0.5901 GB, free: 15.48 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008654/0.4522, allocations: 47.97 kB / 0.5902 GB, free: 15.44 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000111/0.4523, allocations: 48.17 kB / 0.5902 GB, free: 15.39 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.0002805/0.4526, allocations: 236.1 kB / 0.5905 GB, free: 15.15 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000186/0.4528, allocations: 114.6 kB / 0.5906 GB, free: 15.04 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003048/0.4558, allocations: 1.646 MB / 0.5922 GB, free: 13.33 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.189e-05/0.4558, allocations: 7.969 kB / 0.5922 GB, free: 13.32 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/0.4559, allocations: 4 kB / 0.5922 GB, free: 13.32 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004097/0.4563, allocations: 255.7 kB / 0.5924 GB, free: 13.05 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001719/0.4564, allocations: 27.98 kB / 0.5925 GB, free: 13.02 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005671/0.457, allocations: 39.95 kB / 0.5925 GB, free: 12.98 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001722/0.4572, allocations: 76.83 kB / 0.5926 GB, free: 12.91 MB / 462.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003535/0.4607, allocations: 1.725 MB / 0.5943 GB, free: 11.16 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002606/0.4634, allocations: 2.031 MB / 0.5962 GB, free: 9.117 MB / 462.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0007279/0.4641, allocations: 0.5231 MB / 0.5967 GB, free: 8.594 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0007795/0.4649, allocations: 0.5815 MB / 0.5973 GB, free: 8 MB / 462.1 MB Notification: Performance of Backend: time 6.22e-07/0.4649, allocations: 3.938 kB / 0.5973 GB, free: 7.996 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007068/0.472, allocations: 3.246 MB / 0.6005 GB, free: 4.867 MB / 462.1 MB Notification: Performance of SimCode: time 0.004364/0.4764, allocations: 3.304 MB / 0.6037 GB, free: 1.523 MB / 462.1 MB Notification: Performance of Templates: time 0.05008/0.5265, allocations: 35.07 MB / 0.638 GB, free: 14.6 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)