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.0008874/0.0008874, allocations: 89.39 kB / 16.32 MB, free: 6.453 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.0009167/0.0009167, allocations: 176.2 kB / 17.21 MB, free: 6.328 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.551/1.551, allocations: 205.4 MB / 223.4 MB, free: 5.566 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3191/0.3191, allocations: 38.05 MB / 309.7 MB, free: 8.883 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.0005167/0.0005168, allocations: 12 kB / 376.6 MB, free: 15.02 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1458/0.1464, allocations: 56.32 MB / 432.9 MB, free: 6.598 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol): time 0.01087/0.1573, allocations: 7.463 MB / 440.4 MB, free: 15.11 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01102/0.1684, allocations: 5.014 MB / 445.4 MB, free: 10.08 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001985/0.1704, allocations: 47.69 kB / 445.5 MB, free: 10.03 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0132/0.1836, allocations: 5.374 MB / 450.8 MB, free: 4.648 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002584/0.1862, allocations: 0.5324 MB / 451.4 MB, free: 4.113 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001984/0.1882, allocations: 455.2 kB / 451.8 MB, free: 3.668 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005062/0.1933, allocations: 2.799 MB / 454.6 MB, free: 0.8633 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2918/0.4852, allocations: 1.043 MB / 455.7 MB, free: 38.62 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001399/0.4866, allocations: 0.5765 MB / 456.2 MB, free: 38.62 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001008/0.4876, allocations: 0.7885 MB / 457 MB, free: 38.62 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000126/0.4878, allocations: 54.81 kB / 457.1 MB, free: 38.62 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004117/0.4882, allocations: 122.8 kB / 457.2 MB, free: 38.62 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000399/0.4886, allocations: 438.4 kB / 457.6 MB, free: 38.62 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002676/0.4889, allocations: 255.7 kB / 457.9 MB, free: 38.59 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001228/0.4901, allocations: 1.472 MB / 459.4 MB, free: 38.54 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.464e-06/0.4901, allocations: 0 / 459.4 MB, free: 38.54 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.015e-06/0.4901, allocations: 3.781 kB / 459.4 MB, free: 38.54 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.002e-05/0.4902, allocations: 1.594 kB / 459.4 MB, free: 38.54 MB / 382.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.00325/0.4934, allocations: 1.476 MB / 460.8 MB, free: 37.78 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.815e-05/0.4935, allocations: 9.656 kB / 460.8 MB, free: 37.78 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002402/0.4937, allocations: 145.5 kB / 461 MB, free: 37.74 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005296/0.4943, allocations: 144.8 kB / 461.1 MB, free: 37.67 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001941/0.4962, allocations: 1.034 MB / 462.2 MB, free: 37.36 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.549e-05/0.4963, allocations: 66.7 kB / 462.2 MB, free: 37.36 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001566/0.4965, allocations: 100.2 kB / 462.3 MB, free: 37.35 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001998/0.4985, allocations: 1.319 MB / 463.6 MB, free: 37.17 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.276e-05/0.4985, allocations: 5.719 kB / 463.6 MB, free: 37.17 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.492e-05/0.4986, allocations: 37.12 kB / 463.7 MB, free: 37.17 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002628/0.4989, allocations: 95.97 kB / 463.8 MB, free: 37.17 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001798/0.5007, allocations: 1.147 MB / 464.9 MB, free: 37.16 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005801/0.5065, allocations: 4.947 MB / 469.9 MB, free: 35.39 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001179/0.5077, allocations: 0.9578 MB / 470.8 MB, free: 35.21 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006782/0.5084, allocations: 0.5308 MB / 471.4 MB, free: 35.19 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.944e-05/0.5085, allocations: 9.625 kB / 471.4 MB, free: 35.19 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008312/0.5093, allocations: 0.6192 MB / 472 MB, free: 35.11 MB / 382.1 MB Notification: Performance of pre-optimization done (n=79): time 3.066e-06/0.5093, allocations: 4 kB / 472 MB, free: 35.1 MB / 382.1 MB Notification: Performance of matching and sorting (n=81): time 0.00828/0.5176, allocations: 4.22 MB / 476.2 MB, free: 33.84 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.961e-05/0.5177, allocations: 175.9 kB / 476.4 MB, free: 33.65 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001157/0.5189, allocations: 0.8389 MB / 477.2 MB, free: 33.49 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.832e-05/0.519, allocations: 39.33 kB / 477.3 MB, free: 33.46 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003529/0.5193, allocations: 0.5213 MB / 477.8 MB, free: 33.24 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002158/0.5195, allocations: 285 kB / 478.1 MB, free: 33.06 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.145e-05/0.5196, allocations: 21.84 kB / 478.1 MB, free: 33.06 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.00012/0.5197, allocations: 351.6 kB / 478.4 MB, free: 32.75 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006863/0.5204, allocations: 478.5 kB / 478.9 MB, free: 32.75 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008184/0.5213, allocations: 0.7134 MB / 479.6 MB, free: 32.48 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008386/0.5221, allocations: 0.5686 MB / 480.2 MB, free: 32.46 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.27e-05/0.5221, allocations: 6.578 kB / 480.2 MB, free: 32.46 MB / 382.1 MB Notification: Performance of matching and sorting (n=122) (initialization): time 0.007481/0.5296, allocations: 2.923 MB / 483.1 MB, free: 31.88 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000181/0.5298, allocations: 292.4 kB / 483.4 MB, free: 31.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.459e-05/0.5298, allocations: 8.75 kB / 483.4 MB, free: 31.52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007428/0.5373, allocations: 1.926 MB / 485.3 MB, free: 31.25 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006356/0.5379, allocations: 143.6 kB / 485.5 MB, free: 31.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02264/0.5606, allocations: 11.53 MB / 497 MB, free: 25.15 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00121/0.5618, allocations: 61.11 kB / 497.1 MB, free: 25.13 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002184/0.5621, allocations: 50.62 kB / 497.1 MB, free: 25.12 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.333e-05/0.5621, allocations: 4.562 kB / 497.1 MB, free: 25.12 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00883/0.571, allocations: 2.701 MB / 499.8 MB, free: 24.34 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.702e-05/0.571, allocations: 7.812 kB / 499.8 MB, free: 24.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008265/0.5793, allocations: 1.849 MB / 0.4899 GB, free: 24.08 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000726/0.58, allocations: 143.6 kB / 0.49 GB, free: 24.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01944/0.5995, allocations: 11.27 MB / 0.5011 GB, free: 18.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009932/0.6005, allocations: 57.48 kB / 0.5011 GB, free: 18 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002034/0.6007, allocations: 45.5 kB / 0.5011 GB, free: 17.99 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 (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 {9 40} Notification: Performance of prepare postOptimizeDAE: time 0.001103/0.6019, allocations: 443.5 kB / 0.5016 GB, free: 17.68 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003776/0.6022, allocations: 105.8 kB / 0.5017 GB, free: 17.63 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003136/0.6054, allocations: 1.66 MB / 0.5033 GB, free: 16.6 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.174e-05/0.6054, allocations: 10.97 kB / 0.5033 GB, free: 16.6 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.307e-05/0.6054, allocations: 2.125 kB / 0.5033 GB, free: 16.6 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.176e-05/0.6055, allocations: 3.984 kB / 0.5033 GB, free: 16.6 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00528/0.6107, allocations: 2.909 MB / 0.5062 GB, free: 14.7 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.468e-06/0.6108, allocations: 5.359 kB / 0.5062 GB, free: 14.69 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009084/0.6117, allocations: 168.8 kB / 0.5063 GB, free: 14.65 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001158/0.6129, allocations: 398 kB / 0.5067 GB, free: 14.45 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.253e-05/0.613, allocations: 22.86 kB / 0.5067 GB, free: 14.43 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004707/0.6177, allocations: 6.293 MB / 0.5129 GB, free: 8.438 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.6177, allocations: 3.953 kB / 0.5129 GB, free: 8.434 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0039/0.6216, allocations: 2.306 MB / 0.5151 GB, free: 7.027 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006741/0.6223, allocations: 273.3 kB / 0.5154 GB, free: 6.801 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002781/0.6226, allocations: 21.12 kB / 0.5154 GB, free: 6.789 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007003/0.6233, allocations: 49.98 kB / 0.5154 GB, free: 6.762 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001953/0.6235, allocations: 67.5 kB / 0.5155 GB, free: 6.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.467e-05/0.6236, allocations: 34.7 kB / 0.5155 GB, free: 6.711 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0009734/0.6246, allocations: 0.5778 MB / 0.5161 GB, free: 6.121 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.6246, allocations: 0 / 0.5161 GB, free: 6.121 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002592/0.6272, allocations: 0.5609 MB / 0.5167 GB, free: 5.562 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 (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 {(2,100.0%) 2,(1,100.0%) 3,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00427/0.6315, allocations: 3.17 MB / 0.5198 GB, free: 2.363 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006928/0.6384, allocations: 3.209 MB / 0.5229 GB, free: 15.12 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 8.797e-06/0.6384, allocations: 0 / 0.5229 GB, free: 15.12 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002254/0.6407, allocations: 1.143 MB / 0.524 GB, free: 13.92 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001832/0.6425, allocations: 263.1 kB / 0.5243 GB, free: 13.66 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02417/0.6667, allocations: 9.888 MB / 0.5339 GB, free: 3.438 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001476/0.6683, allocations: 1.249 MB / 0.5351 GB, free: 2.156 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001275/0.6696, allocations: 252.2 kB / 0.5354 GB, free: 1.906 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008406/0.6704, allocations: 435.3 kB / 0.5358 GB, free: 1.48 MB / 398.1 MB Notification: Performance of SimCode: time 8.62e-07/0.6704, allocations: 0 / 0.5358 GB, free: 1.48 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08542/0.7559, allocations: 40.66 MB / 0.5755 GB, free: 8.773 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002621/0.7562, allocations: 256.9 kB / 0.5757 GB, free: 8.438 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.9/3.656, allocations: 1.859 kB / 0.5757 GB, free: 8.438 MB / 446.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/linux/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) Environment - environmentSimulation: