Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 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: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASMav_icontrol",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASMav_icontrol",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008273/0.0008276, allocations: 90.09 kB / 16.65 MB, free: 6.598 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.001094/0.001094, allocations: 183.3 kB / 17.56 MB, free: 6.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.386/1.386, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1662/0.1662, allocations: 38.05 MB / 310.1 MB, free: 5.922 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005027/0.000503, allocations: 15.12 kB / 377.3 MB, free: 2.613 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2093/0.2098, allocations: 56.32 MB / 433.6 MB, free: 18.66 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol): time 0.005826/0.2157, allocations: 7.89 MB / 441.5 MB, free: 10.73 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005862/0.2216, allocations: 5.377 MB / 446.9 MB, free: 5.34 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007013/0.2223, allocations: 51.69 kB / 446.9 MB, free: 5.289 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007025/0.2294, allocations: 5.475 MB / 452.4 MB, free: 15.8 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001457/0.2308, allocations: 0.4978 MB / 452.9 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001202/0.2321, allocations: 0.5184 MB / 453.4 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003404/0.2355, allocations: 3.224 MB / 456.6 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001622/0.2371, allocations: 1.168 MB / 457.8 MB, free: 10.33 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009239/0.238, allocations: 0.5638 MB / 458.4 MB, free: 9.762 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001043/0.2391, allocations: 0.821 MB / 459.2 MB, free: 8.938 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001431/0.2393, allocations: 56 kB / 459.2 MB, free: 8.883 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004538/0.2397, allocations: 127.9 kB / 459.4 MB, free: 8.758 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004608/0.2402, allocations: 438.7 kB / 459.8 MB, free: 8.328 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006374/0.2408, allocations: 0.6117 MB / 460.4 MB, free: 7.707 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001761/0.2426, allocations: 1.767 MB / 462.2 MB, free: 5.934 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.2426, allocations: 0 / 462.2 MB, free: 5.934 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.2426, allocations: 3.938 kB / 462.2 MB, free: 5.93 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.606e-05/0.2427, allocations: 0 / 462.2 MB, free: 5.93 MB / 334.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.003312/0.246, allocations: 1.46 MB / 463.6 MB, free: 4.418 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.222e-05/0.246, allocations: 11.97 kB / 463.6 MB, free: 4.406 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001953/0.2462, allocations: 143.9 kB / 463.8 MB, free: 4.258 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004124/0.2467, allocations: 151.2 kB / 463.9 MB, free: 4.109 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002003/0.2487, allocations: 1.058 MB / 465 MB, free: 3.008 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.274e-05/0.2487, allocations: 73.92 kB / 465.1 MB, free: 2.934 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001661/0.2489, allocations: 95.89 kB / 465.2 MB, free: 2.84 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001921/0.2508, allocations: 1.332 MB / 466.5 MB, free: 1.457 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.994e-05/0.2509, allocations: 3.938 kB / 466.5 MB, free: 1.453 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001084/0.251, allocations: 36 kB / 466.5 MB, free: 1.418 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003189/0.2513, allocations: 93.92 kB / 466.6 MB, free: 1.324 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001753/0.2531, allocations: 1.148 MB / 467.8 MB, free: 184 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006527/0.2596, allocations: 4.974 MB / 472.7 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001357/0.261, allocations: 0.953 MB / 473.7 MB, free: 10.03 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007749/0.2618, allocations: 0.5277 MB / 474.2 MB, free: 9.492 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.866e-05/0.2619, allocations: 20.53 kB / 474.2 MB, free: 9.473 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008903/0.2628, allocations: 0.6268 MB / 474.9 MB, free: 8.824 MB / 350.1 MB Notification: Performance of pre-optimization done (n=79): time 2.234e-06/0.2628, allocations: 0 / 474.9 MB, free: 8.824 MB / 350.1 MB Notification: Performance of matching and sorting (n=81): time 0.008444/0.2712, allocations: 4.186 MB / 479.1 MB, free: 4.477 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.21e-05/0.2713, allocations: 170.8 kB / 479.2 MB, free: 4.273 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009803/0.2723, allocations: 0.8415 MB / 480.1 MB, free: 3.406 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.142e-05/0.2724, allocations: 41.7 kB / 480.1 MB, free: 3.359 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003494/0.2727, allocations: 0.519 MB / 480.6 MB, free: 2.832 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002272/0.273, allocations: 295.8 kB / 480.9 MB, free: 2.539 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001204/0.2731, allocations: 85.67 kB / 481 MB, free: 2.449 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001135/0.2732, allocations: 346 kB / 481.3 MB, free: 2.105 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007368/0.274, allocations: 485.7 kB / 481.8 MB, free: 1.633 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008954/0.2749, allocations: 0.7208 MB / 482.5 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001649/0.2765, allocations: 1.23 MB / 483.8 MB, free: 15.49 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.407e-06/0.2765, allocations: 0 / 483.8 MB, free: 15.49 MB / 366.1 MB Notification: Performance of matching and sorting (n=122) (initialization): time 0.008574/0.2851, allocations: 2.946 MB / 486.7 MB, free: 12.51 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001769/0.2853, allocations: 293.9 kB / 487 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.272e-05/0.2854, allocations: 11.94 kB / 487 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008294/0.2937, allocations: 1.908 MB / 488.9 MB, free: 10.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005768/0.2942, allocations: 135.8 kB / 489 MB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01864/0.3129, allocations: 11.56 MB / 0.4889 GB, free: 14.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008837/0.3138, allocations: 60.14 kB / 0.4889 GB, free: 14.17 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.351e-05/0.3139, allocations: 43.98 kB / 0.489 GB, free: 14.13 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.109e-05/0.3139, allocations: 7.938 kB / 0.489 GB, free: 14.12 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008235/0.3222, allocations: 2.715 MB / 0.4916 GB, free: 11.39 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.865e-05/0.3222, allocations: 8 kB / 0.4916 GB, free: 11.38 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008187/0.3304, allocations: 1.842 MB / 0.4934 GB, free: 9.531 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006297/0.3311, allocations: 147.8 kB / 0.4936 GB, free: 9.387 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01775/0.3488, allocations: 11.29 MB / 0.5046 GB, free: 13.82 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008335/0.3497, allocations: 63.89 kB / 0.5047 GB, free: 13.76 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.677e-05/0.3498, allocations: 47.98 kB / 0.5047 GB, free: 13.71 MB / 398.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.000645/0.3505, allocations: 448.7 kB / 0.5051 GB, free: 13.27 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001541/0.3506, allocations: 106.7 kB / 0.5052 GB, free: 13.16 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002895/0.3535, allocations: 1.658 MB / 0.5068 GB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.698e-06/0.3535, allocations: 8 kB / 0.5069 GB, free: 11.44 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.3536, allocations: 8 kB / 0.5069 GB, free: 11.43 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.001e-05/0.3536, allocations: 3.984 kB / 0.5069 GB, free: 11.43 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004399/0.358, allocations: 2.91 MB / 0.5097 GB, free: 8.406 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.478e-06/0.358, allocations: 4 kB / 0.5097 GB, free: 8.402 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009405/0.359, allocations: 167.8 kB / 0.5099 GB, free: 8.238 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001307/0.3603, allocations: 407 kB / 0.5103 GB, free: 7.828 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.466e-05/0.3604, allocations: 23.98 kB / 0.5103 GB, free: 7.805 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005347/0.3657, allocations: 6.304 MB / 0.5164 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.3657, allocations: 0 / 0.5164 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1797/0.5455, allocations: 2.309 MB / 0.5187 GB, free: 84.82 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004492/0.5459, allocations: 271.3 kB / 0.519 GB, free: 84.72 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001314/0.5461, allocations: 25.33 kB / 0.519 GB, free: 84.72 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005964/0.5467, allocations: 46.84 kB / 0.519 GB, free: 84.72 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002136/0.5469, allocations: 78.09 kB / 0.5191 GB, free: 84.72 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.58e-05/0.547, allocations: 30.08 kB / 0.5191 GB, free: 84.72 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007262/0.5477, allocations: 0.5833 MB / 0.5197 GB, free: 84.61 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5477, allocations: 0 / 0.5197 GB, free: 84.61 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001684/0.5494, allocations: 0.5521 MB / 0.5202 GB, free: 84.61 MB / 398.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.004228/0.5537, allocations: 3.171 MB / 0.5233 GB, free: 83.57 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.005685/0.5594, allocations: 3.206 MB / 0.5265 GB, free: 82.38 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.999e-06/0.5594, allocations: 0.5 kB / 0.5265 GB, free: 82.38 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001707/0.5611, allocations: 1.149 MB / 0.5276 GB, free: 81.7 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001306/0.5624, allocations: 259.4 kB / 0.5278 GB, free: 81.62 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02503/0.5874, allocations: 14.37 MB / 0.5419 GB, free: 72.37 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006663/0.5882, allocations: 1.241 MB / 0.5431 GB, free: 71.1 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0009231/0.5891, allocations: 252.2 kB / 0.5433 GB, free: 70.85 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004711/0.5896, allocations: 435.3 kB / 0.5437 GB, free: 70.43 MB / 398.1 MB Notification: Performance of SimCode: time 1.182e-06/0.5896, allocations: 0 / 0.5437 GB, free: 70.43 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05216/0.6417, allocations: 40.69 MB / 0.5835 GB, free: 29.68 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001698/0.6419, allocations: 279.6 kB / 0.5837 GB, free: 29.31 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.753/3.395, allocations: 0 / 0.5837 GB, free: 29.31 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASMav_icontrol_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASMav_icontrol.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.pipe 2>&1)