Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.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,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASMav",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASMav,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASMav",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.001/0.001, allocations: 91.81 kB / 16.31 MB, free: 6.008 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.001171/0.001171, allocations: 184.8 kB / 17.21 MB, free: 5.902 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.44/1.44, allocations: 205.4 MB / 223.4 MB, free: 5.535 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3264/0.3264, allocations: 38.06 MB / 309.7 MB, free: 8.852 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.0005331/0.0005334, allocations: 14.19 kB / 376.6 MB, free: 15.03 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1336/0.1341, allocations: 56.34 MB / 433 MB, free: 6.586 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav): time 0.00965/0.1438, allocations: 7.456 MB / 440.4 MB, free: 15.1 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.009483/0.1533, allocations: 5.076 MB / 445.5 MB, free: 10.01 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001078/0.1545, allocations: 51.62 kB / 445.5 MB, free: 9.961 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01057/0.1651, allocations: 5.374 MB / 450.9 MB, free: 4.578 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0026/0.1677, allocations: 0.5519 MB / 451.5 MB, free: 4.023 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001647/0.1694, allocations: 435.3 kB / 451.9 MB, free: 3.598 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004156/0.1735, allocations: 2.549 MB / 454.4 MB, free: 1.043 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001763/0.1753, allocations: 0.9559 MB / 455.4 MB, free: 36 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2814/0.4567, allocations: 0.5047 MB / 455.9 MB, free: 38.98 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001144/0.4579, allocations: 0.6964 MB / 456.6 MB, free: 38.98 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000111/0.4581, allocations: 46.47 kB / 456.6 MB, free: 38.98 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005656/0.4586, allocations: 165.3 kB / 456.8 MB, free: 38.98 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003746/0.459, allocations: 447.4 kB / 457.2 MB, free: 38.98 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002474/0.4593, allocations: 225.9 kB / 457.5 MB, free: 38.95 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001134/0.4604, allocations: 1.182 MB / 458.6 MB, free: 38.91 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.123e-06/0.4604, allocations: 6.781 kB / 458.6 MB, free: 38.91 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.4605, allocations: 3.156 kB / 458.6 MB, free: 38.91 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.708e-05/0.4605, allocations: 0 / 458.6 MB, free: 38.91 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: 220 * Number of variables: 220 Notification: Performance of Generate backend data structure: time 0.002429/0.4629, allocations: 1.262 MB / 459.9 MB, free: 38.2 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.07e-05/0.463, allocations: 11 kB / 459.9 MB, free: 38.2 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001769/0.4632, allocations: 137.8 kB / 460.1 MB, free: 38.16 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006125/0.4638, allocations: 147.3 kB / 460.2 MB, free: 38.11 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001403/0.4652, allocations: 0.8571 MB / 461.1 MB, free: 37.81 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.497e-05/0.4653, allocations: 62.84 kB / 461.1 MB, free: 37.81 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000139/0.4654, allocations: 86.31 kB / 461.2 MB, free: 37.81 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001736/0.4672, allocations: 1.224 MB / 462.4 MB, free: 37.59 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.339e-05/0.4672, allocations: 11.25 kB / 462.4 MB, free: 37.59 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.571e-05/0.4673, allocations: 36.64 kB / 462.5 MB, free: 37.59 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001985/0.4675, allocations: 88.42 kB / 462.6 MB, free: 37.59 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001591/0.4691, allocations: 0.9959 MB / 463.6 MB, free: 37.58 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005677/0.4748, allocations: 4.927 MB / 468.5 MB, free: 35.19 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007995/0.4756, allocations: 0.6548 MB / 469.1 MB, free: 35.04 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004847/0.4761, allocations: 360.9 kB / 469.5 MB, free: 35.02 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.593e-05/0.4762, allocations: 11.59 kB / 469.5 MB, free: 35.02 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005743/0.4768, allocations: 448.1 kB / 469.9 MB, free: 34.95 MB / 382.1 MB Notification: Performance of pre-optimization done (n=62): time 3.727e-06/0.4768, allocations: 0 / 469.9 MB, free: 34.95 MB / 382.1 MB Notification: Performance of matching and sorting (n=65): time 0.004757/0.4815, allocations: 2.748 MB / 472.7 MB, free: 33.96 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.043e-05/0.4816, allocations: 114.3 kB / 472.8 MB, free: 33.83 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008532/0.4825, allocations: 0.7418 MB / 473.5 MB, free: 33.69 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.383e-05/0.4825, allocations: 38.42 kB / 473.6 MB, free: 33.66 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004007/0.4829, allocations: 0.4933 MB / 474.1 MB, free: 33.41 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002284/0.4832, allocations: 234 kB / 474.3 MB, free: 33.27 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.961e-05/0.4832, allocations: 21.09 kB / 474.3 MB, free: 33.27 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001767/0.4834, allocations: 401.1 kB / 474.7 MB, free: 32.95 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005278/0.484, allocations: 374 kB / 475.1 MB, free: 32.95 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006964/0.4847, allocations: 0.6546 MB / 475.7 MB, free: 32.61 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006458/0.4853, allocations: 481.2 kB / 476.2 MB, free: 32.59 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.961e-06/0.4853, allocations: 3.25 kB / 476.2 MB, free: 32.59 MB / 382.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002569/0.4879, allocations: 1.612 MB / 477.8 MB, free: 32.36 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.864e-05/0.488, allocations: 12.83 kB / 477.8 MB, free: 32.36 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.6e-05/0.488, allocations: 9.031 kB / 477.8 MB, free: 32.36 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00129/0.4893, allocations: 497.6 kB / 478.3 MB, free: 32.33 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000574/0.4899, allocations: 170.8 kB / 478.5 MB, free: 32.33 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008381/0.4983, allocations: 6.494 MB / 485 MB, free: 29.33 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009501/0.4992, allocations: 45.44 kB / 485 MB, free: 29.31 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.724e-05/0.4993, allocations: 46.98 kB / 485.1 MB, free: 29.3 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 87 * 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 {6 23} Notification: Performance of prepare postOptimizeDAE: time 0.0009555/0.5003, allocations: 354.5 kB / 485.4 MB, free: 29.08 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002455/0.5006, allocations: 88.62 kB / 485.5 MB, free: 29.04 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002241/0.5028, allocations: 1.105 MB / 486.6 MB, free: 28.45 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.224e-05/0.5028, allocations: 9.469 kB / 486.6 MB, free: 28.45 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.026e-05/0.5029, allocations: 0 / 486.6 MB, free: 28.45 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.389e-05/0.5029, allocations: 6.484 kB / 486.6 MB, free: 28.45 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003581/0.5065, allocations: 2.113 MB / 488.7 MB, free: 27.36 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.245e-06/0.5065, allocations: 3.062 kB / 488.7 MB, free: 27.36 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006454/0.5071, allocations: 126.6 kB / 488.9 MB, free: 27.35 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000498/0.5076, allocations: 165.9 kB / 489 MB, free: 27.29 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.878e-05/0.5077, allocations: 20.69 kB / 489 MB, free: 27.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003047/0.5108, allocations: 4.442 MB / 493.5 MB, free: 23.14 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.913e-06/0.5108, allocations: 3.094 kB / 493.5 MB, free: 23.14 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002102/0.5129, allocations: 1.535 MB / 495 MB, free: 22.3 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004239/0.5134, allocations: 214.3 kB / 495.2 MB, free: 22.14 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002268/0.5136, allocations: 21.56 kB / 495.3 MB, free: 22.13 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005284/0.5141, allocations: 33 kB / 495.3 MB, free: 22.12 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001349/0.5143, allocations: 61.47 kB / 495.4 MB, free: 22.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.117e-05/0.5143, allocations: 20.8 kB / 495.4 MB, free: 22.1 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0009356/0.5153, allocations: 0.5057 MB / 495.9 MB, free: 21.89 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.5153, allocations: 0 / 495.9 MB, free: 21.89 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001591/0.5169, allocations: 260.2 kB / 496.1 MB, free: 21.86 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 13 (power.pav[1],power.pav[2],power.pav[3],asm.rotor.phi,asm.rotor.w,asm.motor.i[3],asm.motor.psi_s[1],asm.motor.psi_s[2],asm.motor.psi_rd[1],asm.motor.psi_rd[2],asm.motor.psi_rq[1],asm.motor.psi_rq[2],tabLoad.s) * 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 (59): * Single equations (assignments): 55 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(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.003821/0.5207, allocations: 2.393 MB / 498.5 MB, free: 20.3 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003096/0.5238, allocations: 1.333 MB / 499.9 MB, free: 19.71 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/0.5239, allocations: 0 / 499.9 MB, free: 19.71 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001285/0.5251, allocations: 0.777 MB / 0.4889 GB, free: 19.24 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001288/0.5265, allocations: 211.1 kB / 0.4891 GB, free: 19.16 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01588/0.5423, allocations: 7.586 MB / 0.4965 GB, free: 15.11 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001275/0.5437, allocations: 1.143 MB / 0.4976 GB, free: 14.35 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001015/0.5447, allocations: 235.4 kB / 0.4979 GB, free: 14.3 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005675/0.5453, allocations: 361.2 kB / 0.4982 GB, free: 14.03 MB / 382.1 MB Notification: Performance of SimCode: time 1.543e-06/0.5453, allocations: 0 / 0.4982 GB, free: 14.03 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05467/0.6, allocations: 22.48 MB / 0.5202 GB, free: 2.254 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001582/0.6002, allocations: 250.2 kB / 0.5204 GB, free: 1.965 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.479/3.079, allocations: 0 / 0.5204 GB, free: 1.965 MB / 382.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASMav_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASMav.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe 2>&1) Environment - environmentSimulation: