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.001784/0.001784, allocations: 111.1 kB / 17.28 MB, free: 6.199 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.002245/0.002245, allocations: 193.3 kB / 18.21 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.37/2.37, allocations: 222.9 MB / 241.9 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.3324/0.3324, allocations: 38.03 MB / 330.1 MB, free: 9.043 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001945/0.001945, allocations: 68.72 kB / 398.9 MB, free: 34.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1466/0.1485, allocations: 58.06 MB / 457 MB, free: 8.434 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol): time 0.01723/0.1658, allocations: 8.346 MB / 465.4 MB, free: 44 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01435/0.1803, allocations: 5.38 MB / 470.7 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001835/0.1821, allocations: 51.69 kB / 470.8 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01845/0.2006, allocations: 5.717 MB / 476.5 MB, free: 4.867 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002697/0.2034, allocations: 0.4928 MB / 477 MB, free: 4.375 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002856/0.2063, allocations: 0.5299 MB / 477.5 MB, free: 3.848 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00674/0.213, allocations: 2.64 MB / 480.2 MB, free: 1.199 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003589/0.2167, allocations: 1.3 MB / 481.5 MB, free: 15.88 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00244/0.2192, allocations: 0.7278 MB / 482.2 MB, free: 15.14 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002315/0.2215, allocations: 0.8875 MB / 483.1 MB, free: 14.25 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006828/0.2223, allocations: 144 kB / 483.2 MB, free: 14.11 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00117/0.2235, allocations: 215.9 kB / 483.4 MB, free: 13.9 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001246/0.2247, allocations: 0.5298 MB / 484 MB, free: 13.37 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001865/0.2266, allocations: 0.6882 MB / 484.7 MB, free: 12.68 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003258/0.2299, allocations: 1.524 MB / 486.2 MB, free: 11.15 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.616e-06/0.23, allocations: 0 / 486.2 MB, free: 11.15 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.926e-06/0.23, allocations: 4 kB / 486.2 MB, free: 11.15 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.441e-05/0.2301, allocations: 0 / 486.2 MB, free: 11.15 MB / 366.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.006921/0.237, allocations: 1.689 MB / 487.9 MB, free: 9.402 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.284e-05/0.2371, allocations: 11.89 kB / 487.9 MB, free: 9.391 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008215/0.2379, allocations: 147.2 kB / 488 MB, free: 9.246 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00346/0.2414, allocations: 1.062 MB / 489.1 MB, free: 8.141 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.652e-05/0.2415, allocations: 62 kB / 489.1 MB, free: 8.082 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003678/0.2419, allocations: 99.89 kB / 489.2 MB, free: 7.984 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003551/0.2455, allocations: 1.324 MB / 490.6 MB, free: 6.605 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.224e-05/0.2456, allocations: 7.938 kB / 490.6 MB, free: 6.598 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001731/0.2457, allocations: 35.98 kB / 490.6 MB, free: 6.562 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004705/0.2462, allocations: 93.92 kB / 490.7 MB, free: 6.473 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002987/0.2492, allocations: 1.144 MB / 491.8 MB, free: 5.328 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01091/0.2602, allocations: 4.939 MB / 496.8 MB, free: 224 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002065/0.2623, allocations: 0.9352 MB / 497.7 MB, free: 15.23 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00121/0.2635, allocations: 0.5276 MB / 498.2 MB, free: 14.7 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001033/0.2636, allocations: 24.5 kB / 498.3 MB, free: 14.68 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001422/0.2651, allocations: 0.6216 MB / 498.9 MB, free: 14.03 MB / 382.1 MB Notification: Performance of pre-optimization done (n=79): time 3.968e-06/0.2651, allocations: 0 / 498.9 MB, free: 14.03 MB / 382.1 MB Notification: Performance of matching and sorting (n=81): time 0.01264/0.2778, allocations: 4.171 MB / 0.4913 GB, free: 9.703 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001192/0.2779, allocations: 162.9 kB / 0.4914 GB, free: 9.508 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001682/0.2796, allocations: 0.8449 MB / 0.4923 GB, free: 8.637 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001249/0.2798, allocations: 41.7 kB / 0.4923 GB, free: 8.59 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005501/0.2803, allocations: 0.5151 MB / 0.4928 GB, free: 8.066 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003978/0.2807, allocations: 287.8 kB / 0.4931 GB, free: 7.781 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004747/0.2812, allocations: 190.5 kB / 0.4933 GB, free: 7.586 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000177/0.2814, allocations: 345.9 kB / 0.4936 GB, free: 7.242 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001138/0.2826, allocations: 484.6 kB / 0.494 GB, free: 6.766 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001412/0.284, allocations: 0.7208 MB / 0.4948 GB, free: 5.949 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002599/0.2866, allocations: 1.218 MB / 0.4959 GB, free: 4.641 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.307e-05/0.2866, allocations: 4 kB / 0.4959 GB, free: 4.637 MB / 382.1 MB Notification: Performance of matching and sorting (n=122) (initialization): time 0.0129/0.2995, allocations: 2.895 MB / 0.4988 GB, free: 1.699 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.77e-05/0.2996, allocations: 9.203 kB / 0.4988 GB, free: 1.691 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.436e-05/0.2996, allocations: 11.94 kB / 0.4988 GB, free: 1.68 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2983/0.5979, allocations: 1.884 MB / 0.5006 GB, free: 55.56 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001269/0.5993, allocations: 138.6 kB / 0.5008 GB, free: 55.56 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03661/0.6359, allocations: 12.56 MB / 0.513 GB, free: 49.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001675/0.6376, allocations: 57.47 kB / 0.5131 GB, free: 49.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003323/0.638, allocations: 51.77 kB / 0.5131 GB, free: 49.65 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002577/0.6406, allocations: 0.7505 MB / 0.5139 GB, free: 49.3 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001666/0.6423, allocations: 0.6989 MB / 0.5145 GB, free: 48.84 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00319/0.6455, allocations: 1.209 MB / 0.5157 GB, free: 48.15 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.888e-05/0.6455, allocations: 1.281 kB / 0.5157 GB, free: 48.15 MB / 382.1 MB Notification: Performance of matching and sorting (n=122) (initialization_lambda0): time 0.01532/0.6609, allocations: 2.815 MB / 0.5185 GB, free: 47.28 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.469e-05/0.661, allocations: 15.89 kB / 0.5185 GB, free: 47.28 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.89e-05/0.661, allocations: 9.531 kB / 0.5185 GB, free: 47.28 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01304/0.6741, allocations: 1.86 MB / 0.5203 GB, free: 47 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001015/0.6751, allocations: 149.2 kB / 0.5205 GB, free: 46.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02586/0.701, allocations: 12.34 MB / 0.5325 GB, free: 38.62 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001214/0.7023, allocations: 59.39 kB / 0.5326 GB, free: 38.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001241/0.7024, allocations: 47.98 kB / 0.5326 GB, free: 38.52 MB / 382.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.0004122/0.7028, allocations: 231.8 kB / 0.5328 GB, free: 38.29 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002143/0.7031, allocations: 104 kB / 0.5329 GB, free: 38.19 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00351/0.7066, allocations: 1.643 MB / 0.5345 GB, free: 36.48 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.238e-05/0.7066, allocations: 12 kB / 0.5345 GB, free: 36.47 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.121e-05/0.7067, allocations: 4.875 kB / 0.5346 GB, free: 36.47 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.826e-05/0.7067, allocations: 7.984 kB / 0.5346 GB, free: 36.46 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005551/0.7122, allocations: 2.891 MB / 0.5374 GB, free: 33.49 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.318e-06/0.7123, allocations: 0 / 0.5374 GB, free: 33.49 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001288/0.7136, allocations: 167.8 kB / 0.5375 GB, free: 33.33 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001635/0.7153, allocations: 380.8 kB / 0.5379 GB, free: 32.95 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001285/0.7154, allocations: 34.67 kB / 0.5379 GB, free: 32.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006001/0.7214, allocations: 6.81 MB / 0.5446 GB, free: 25.56 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.377e-06/0.7215, allocations: 0 / 0.5446 GB, free: 25.56 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004717/0.7262, allocations: 2.279 MB / 0.5468 GB, free: 23.21 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005985/0.7268, allocations: 261.2 kB / 0.5471 GB, free: 22.93 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002271/0.7271, allocations: 27.98 kB / 0.5471 GB, free: 22.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009761/0.7281, allocations: 43.95 kB / 0.5471 GB, free: 22.86 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002934/0.7284, allocations: 76.78 kB / 0.5472 GB, free: 22.79 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001097/0.7285, allocations: 35.98 kB / 0.5472 GB, free: 22.75 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001026/0.7295, allocations: 0.5776 MB / 0.5478 GB, free: 22.16 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.7295, allocations: 0 / 0.5478 GB, free: 22.16 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003069/0.7326, allocations: 0.5493 MB / 0.5483 GB, free: 21.62 MB / 382.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.001548/0.7342, allocations: 436.7 kB / 0.5488 GB, free: 21.38 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.009743/0.744, allocations: 3.471 MB / 0.5521 GB, free: 17.88 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.127e-05/0.744, allocations: 4.062 kB / 0.5522 GB, free: 17.88 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002197/0.7462, allocations: 1.133 MB / 0.5533 GB, free: 16.69 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001948/0.7482, allocations: 276.5 kB / 0.5535 GB, free: 16.43 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006573/0.7548, allocations: 3.472 MB / 0.5569 GB, free: 12.95 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009981/0.7558, allocations: 1.245 MB / 0.5581 GB, free: 11.68 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006326/0.7565, allocations: 87.39 kB / 0.5582 GB, free: 11.59 MB / 382.1 MB Notification: Performance of SimCode: time 9.52e-07/0.7565, allocations: 0 / 0.5582 GB, free: 11.59 MB / 382.1 MB Notification: Performance of Templates: time 0.06823/0.8248, allocations: 32.42 MB / 0.5899 GB, free: 11.2 MB / 414.1 MB 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)