Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_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 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: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASMav,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASMav",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASMav,fileNamePrefix="PowerSystems_latest_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.0007214/0.0007214, allocations: 94.34 kB / 16.65 MB, free: 6.289 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.0009754/0.0009755, allocations: 180.4 kB / 17.56 MB, free: 5.895 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.261/1.261, allocations: 223.2 MB / 241.6 MB, free: 224 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1636/0.1636, allocations: 38.09 MB / 330.8 MB, free: 8.832 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003336/0.0003337, allocations: 8 kB / 400.8 MB, free: 34.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09626/0.09661, allocations: 59.17 MB / 460 MB, free: 6.965 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav): time 0.007881/0.1045, allocations: 7.891 MB / 467.9 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00806/0.1126, allocations: 5.525 MB / 473.4 MB, free: 9.492 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001051/0.1137, allocations: 55.62 kB / 473.5 MB, free: 9.438 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009495/0.1232, allocations: 5.428 MB / 478.9 MB, free: 4.004 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001414/0.1247, allocations: 0.494 MB / 479.4 MB, free: 3.508 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001255/0.1259, allocations: 447.3 kB / 479.8 MB, free: 3.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003397/0.1293, allocations: 2.947 MB / 482.8 MB, free: 116 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001681/0.131, allocations: 1.017 MB / 483.8 MB, free: 15.05 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009392/0.132, allocations: 497.8 kB / 484.3 MB, free: 14.57 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001092/0.1331, allocations: 0.7201 MB / 485 MB, free: 13.84 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002081/0.1333, allocations: 47.94 kB / 485 MB, free: 13.8 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006389/0.134, allocations: 207.8 kB / 485.2 MB, free: 13.59 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005074/0.1345, allocations: 446.7 kB / 485.7 MB, free: 13.16 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008078/0.1353, allocations: 0.538 MB / 486.2 MB, free: 12.61 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001704/0.137, allocations: 1.464 MB / 487.7 MB, free: 11.14 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.137, allocations: 0 / 487.7 MB, free: 11.14 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.614e-06/0.137, allocations: 0 / 487.7 MB, free: 11.14 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.852e-05/0.1371, allocations: 0 / 487.7 MB, free: 11.14 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: 220 * Number of variables: 220 Notification: Performance of Generate backend data structure: time 0.002671/0.1398, allocations: 1.265 MB / 488.9 MB, free: 9.82 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.624e-05/0.1398, allocations: 12.02 kB / 488.9 MB, free: 9.809 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000172/0.14, allocations: 135.6 kB / 489.1 MB, free: 9.668 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005924/0.1406, allocations: 151.5 kB / 489.2 MB, free: 9.52 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001744/0.1423, allocations: 0.8819 MB / 490.1 MB, free: 8.598 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.161e-05/0.1424, allocations: 58 kB / 490.2 MB, free: 8.539 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001791/0.1426, allocations: 91.89 kB / 490.3 MB, free: 8.449 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001716/0.1443, allocations: 1.233 MB / 491.5 MB, free: 7.148 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.033e-05/0.1444, allocations: 4 kB / 491.5 MB, free: 7.145 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.002e-05/0.1445, allocations: 32 kB / 491.5 MB, free: 7.113 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002178/0.1447, allocations: 89.88 kB / 491.6 MB, free: 7.023 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001464/0.1462, allocations: 1.003 MB / 492.6 MB, free: 6.023 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005824/0.152, allocations: 4.936 MB / 497.6 MB, free: 0.8711 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008756/0.1529, allocations: 0.6497 MB / 498.2 MB, free: 188 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005176/0.1534, allocations: 363.3 kB / 498.6 MB, free: 15.82 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.88e-05/0.1535, allocations: 12.47 kB / 498.6 MB, free: 15.81 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006042/0.1541, allocations: 457.6 kB / 499 MB, free: 15.34 MB / 382.1 MB Notification: Performance of pre-optimization done (n=62): time 2.054e-06/0.1541, allocations: 4 kB / 499 MB, free: 15.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=65): time 0.004282/0.1584, allocations: 2.712 MB / 0.49 GB, free: 12.49 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.447e-05/0.1585, allocations: 111.4 kB / 0.4901 GB, free: 12.36 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008574/0.1594, allocations: 0.7467 MB / 0.4908 GB, free: 11.6 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.354e-05/0.1594, allocations: 37.7 kB / 0.4908 GB, free: 11.56 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003295/0.1598, allocations: 0.4948 MB / 0.4913 GB, free: 11.05 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001777/0.1599, allocations: 236.6 kB / 0.4916 GB, free: 10.82 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001127/0.1601, allocations: 85.67 kB / 0.4916 GB, free: 10.73 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001675/0.1602, allocations: 402.7 kB / 0.492 GB, free: 10.33 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005445/0.1608, allocations: 373.8 kB / 0.4924 GB, free: 9.961 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007088/0.1615, allocations: 0.6578 MB / 0.493 GB, free: 9.176 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001271/0.1628, allocations: 1.053 MB / 0.494 GB, free: 8 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.831e-06/0.1628, allocations: 4 kB / 0.494 GB, free: 7.996 MB / 382.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002852/0.1656, allocations: 1.623 MB / 0.4956 GB, free: 6.34 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.364e-05/0.1657, allocations: 12.5 kB / 0.4956 GB, free: 6.328 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.458e-05/0.1657, allocations: 12 kB / 0.4957 GB, free: 6.316 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001479/0.1672, allocations: 485.3 kB / 0.4961 GB, free: 5.836 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006113/0.1678, allocations: 171.7 kB / 0.4963 GB, free: 5.668 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2091/0.3769, allocations: 6.515 MB / 0.5026 GB, free: 40.17 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007838/0.3777, allocations: 47.53 kB / 0.5027 GB, free: 40.17 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001447/0.3779, allocations: 46.39 kB / 0.5027 GB, free: 40.17 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 (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 {(6,23)} Notification: Performance of prepare postOptimizeDAE: time 0.0007162/0.3786, allocations: 347.5 kB / 0.5031 GB, free: 40.06 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001987/0.3788, allocations: 87.75 kB / 0.5032 GB, free: 40.06 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002131/0.381, allocations: 1.113 MB / 0.5042 GB, free: 39.79 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.608e-06/0.381, allocations: 8.656 kB / 0.5042 GB, free: 39.79 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.915e-06/0.381, allocations: 2.5 kB / 0.5042 GB, free: 39.79 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.162e-05/0.381, allocations: 4.562 kB / 0.5043 GB, free: 39.79 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00327/0.3843, allocations: 2.128 MB / 0.5063 GB, free: 39.24 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.462e-06/0.3843, allocations: 4.062 kB / 0.5063 GB, free: 39.24 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007027/0.385, allocations: 121.4 kB / 0.5064 GB, free: 39.24 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005031/0.3855, allocations: 166 kB / 0.5066 GB, free: 39.21 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.247e-05/0.3856, allocations: 21.69 kB / 0.5066 GB, free: 39.21 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002955/0.3886, allocations: 4.451 MB / 0.511 GB, free: 35.47 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.3886, allocations: 9.062 kB / 0.511 GB, free: 35.47 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002131/0.3907, allocations: 1.533 MB / 0.5125 GB, free: 35.07 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000277/0.391, allocations: 217.9 kB / 0.5127 GB, free: 34.97 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001106/0.3911, allocations: 20.19 kB / 0.5127 GB, free: 34.97 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004127/0.3915, allocations: 29.92 kB / 0.5127 GB, free: 34.97 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001518/0.3917, allocations: 60.61 kB / 0.5128 GB, free: 34.97 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.922e-05/0.3918, allocations: 23 kB / 0.5128 GB, free: 34.97 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007004/0.3925, allocations: 0.5107 MB / 0.5133 GB, free: 34.87 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3925, allocations: 0 / 0.5133 GB, free: 34.87 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00108/0.3936, allocations: 264 kB / 0.5136 GB, free: 34.87 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(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.003047/0.3966, allocations: 2.399 MB / 0.5159 GB, free: 33.88 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002583/0.3992, allocations: 1.324 MB / 0.5172 GB, free: 33.61 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.3992, allocations: 0.9062 kB / 0.5172 GB, free: 33.61 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001072/0.4003, allocations: 0.7818 MB / 0.518 GB, free: 33.27 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001102/0.4014, allocations: 194.6 kB / 0.5182 GB, free: 33.26 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01356/0.415, allocations: 10.7 MB / 0.5286 GB, free: 27.61 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005975/0.4156, allocations: 1.15 MB / 0.5297 GB, free: 26.84 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007133/0.4163, allocations: 228.4 kB / 0.5299 GB, free: 26.8 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003805/0.4167, allocations: 369.6 kB / 0.5303 GB, free: 26.53 MB / 382.1 MB Notification: Performance of SimCode: time 6.51e-07/0.4167, allocations: 0 / 0.5303 GB, free: 26.53 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03353/0.4503, allocations: 22.25 MB / 0.552 GB, free: 8.523 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001756/0.4505, allocations: 276.6 kB / 0.5523 GB, free: 8.156 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.276/2.727, allocations: 2.406 kB / 0.5523 GB, free: 8.156 MB / 382.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASMav_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASMav.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe 2>&1)