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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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_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.0009425/0.0009425, allocations: 108.3 kB / 16.92 MB, free: 5.84 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.001012/0.001012, allocations: 191.3 kB / 17.85 MB, free: 5.176 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.3/1.3, allocations: 222.9 MB / 241.5 MB, free: 15.31 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1685/0.1685, allocations: 38.02 MB / 329.7 MB, free: 8.812 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001197, allocations: 56.08 kB / 398.9 MB, free: 33.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09164/0.09285, allocations: 58.06 MB / 457 MB, free: 7.969 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav): time 0.008533/0.1014, allocations: 7.107 MB / 464.1 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007491/0.1089, allocations: 5.092 MB / 469.2 MB, free: 11.72 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000682/0.1097, allocations: 31.81 kB / 469.2 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009999/0.1197, allocations: 5.7 MB / 474.9 MB, free: 5.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001335/0.121, allocations: 0.5131 MB / 475.4 MB, free: 5.465 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001236/0.1223, allocations: 491 kB / 475.9 MB, free: 4.984 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00256/0.1248, allocations: 2.257 MB / 478.1 MB, free: 2.719 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001038/0.1259, allocations: 0.9236 MB / 479.1 MB, free: 1.781 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007523/0.1267, allocations: 0.6111 MB / 479.7 MB, free: 1.168 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000814/0.1275, allocations: 0.7162 MB / 480.4 MB, free: 460 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001525/0.1276, allocations: 100 kB / 480.5 MB, free: 360 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000517/0.1282, allocations: 255.7 kB / 480.7 MB, free: 104 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004836/0.1287, allocations: 498.8 kB / 481.2 MB, free: 15.61 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006205/0.1293, allocations: 0.5754 MB / 481.8 MB, free: 15.04 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001814/0.1311, allocations: 1.526 MB / 483.3 MB, free: 13.5 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.716e-06/0.1311, allocations: 12 kB / 483.3 MB, free: 13.49 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.1312, allocations: 0 / 483.3 MB, free: 13.49 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.86e-05/0.1312, allocations: 0 / 483.3 MB, free: 13.49 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.003019/0.1342, allocations: 1.455 MB / 484.8 MB, free: 11.99 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.059e-05/0.1343, allocations: 11.89 kB / 484.8 MB, free: 11.98 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001628/0.1344, allocations: 139.6 kB / 484.9 MB, free: 11.83 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006573/0.1351, allocations: 155.3 kB / 485.1 MB, free: 11.68 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00153/0.1366, allocations: 0.8741 MB / 486 MB, free: 10.76 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.268e-05/0.1367, allocations: 65.92 kB / 486 MB, free: 10.7 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001518/0.1369, allocations: 87.98 kB / 486.1 MB, free: 10.61 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001685/0.1386, allocations: 1.227 MB / 487.3 MB, free: 9.312 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.698e-05/0.1386, allocations: 3.906 kB / 487.4 MB, free: 9.309 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.641e-05/0.1387, allocations: 39.98 kB / 487.4 MB, free: 9.27 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002147/0.1389, allocations: 93.88 kB / 487.5 MB, free: 9.18 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001521/0.1404, allocations: 1.007 MB / 488.5 MB, free: 8.172 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006283/0.1467, allocations: 4.916 MB / 493.4 MB, free: 3.047 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009315/0.1477, allocations: 0.6498 MB / 494.1 MB, free: 2.363 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005574/0.1483, allocations: 363.3 kB / 494.4 MB, free: 2.004 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.121e-05/0.1483, allocations: 8.562 kB / 494.4 MB, free: 1.996 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006696/0.149, allocations: 449.7 kB / 494.9 MB, free: 1.535 MB / 366.1 MB Notification: Performance of pre-optimization done (n=62): time 1.944e-06/0.149, allocations: 0 / 494.9 MB, free: 1.535 MB / 366.1 MB Notification: Performance of matching and sorting (n=65): time 0.004434/0.1535, allocations: 2.712 MB / 497.6 MB, free: 14.69 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.117e-05/0.1535, allocations: 107.4 kB / 497.7 MB, free: 14.55 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008501/0.1544, allocations: 0.7506 MB / 498.4 MB, free: 13.79 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.077e-05/0.1545, allocations: 41.7 kB / 498.5 MB, free: 13.75 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003136/0.1548, allocations: 0.4987 MB / 499 MB, free: 13.24 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001739/0.155, allocations: 240.6 kB / 499.2 MB, free: 13 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002532/0.1552, allocations: 182.5 kB / 499.4 MB, free: 12.82 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001635/0.1554, allocations: 398.7 kB / 499.8 MB, free: 12.42 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005464/0.1559, allocations: 373.8 kB / 0.4884 GB, free: 12.05 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007159/0.1567, allocations: 0.6655 MB / 0.4891 GB, free: 11.26 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001289/0.158, allocations: 1.045 MB / 0.4901 GB, free: 10.09 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.941e-06/0.158, allocations: 4 kB / 0.4901 GB, free: 10.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002793/0.1608, allocations: 1.63 MB / 0.4917 GB, free: 8.422 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.068e-05/0.1608, allocations: 11.98 kB / 0.4917 GB, free: 8.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.217e-05/0.1608, allocations: 8 kB / 0.4917 GB, free: 8.402 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001454/0.1623, allocations: 486.3 kB / 0.4922 GB, free: 7.922 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006153/0.1629, allocations: 171.7 kB / 0.4923 GB, free: 7.754 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009361/0.1723, allocations: 7.089 MB / 0.4992 GB, free: 388 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006794/0.173, allocations: 56.16 kB / 0.4993 GB, free: 332 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001009/0.1731, allocations: 47.98 kB / 0.4993 GB, free: 284 kB / 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.0005503/0.1737, allocations: 345.4 kB / 0.4997 GB, free: 15.93 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000174/0.1738, allocations: 86.88 kB / 0.4998 GB, free: 15.84 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001868/0.1757, allocations: 1.118 MB / 0.5009 GB, free: 14.67 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/0.1757, allocations: 8 kB / 0.5009 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.113e-06/0.1757, allocations: 8 kB / 0.5009 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.926e-06/0.1758, allocations: 3.984 kB / 0.5009 GB, free: 14.65 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00357/0.1793, allocations: 2.119 MB / 0.5029 GB, free: 12.41 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.1794, allocations: 4.031 kB / 0.5029 GB, free: 12.41 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007325/0.1801, allocations: 119.8 kB / 0.5031 GB, free: 12.29 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005248/0.1806, allocations: 162.3 kB / 0.5032 GB, free: 12.12 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.906e-05/0.1807, allocations: 23.98 kB / 0.5032 GB, free: 12.1 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00408/0.1848, allocations: 4.808 MB / 0.5079 GB, free: 6.879 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/0.1848, allocations: 4.031 kB / 0.5079 GB, free: 6.875 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002245/0.1871, allocations: 1.534 MB / 0.5094 GB, free: 5.266 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003475/0.1875, allocations: 215.9 kB / 0.5096 GB, free: 5.035 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001374/0.1876, allocations: 16 kB / 0.5097 GB, free: 5.02 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000452/0.1881, allocations: 31.97 kB / 0.5097 GB, free: 4.988 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001425/0.1882, allocations: 56.36 kB / 0.5097 GB, free: 4.934 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.98e-05/0.1883, allocations: 27.98 kB / 0.5098 GB, free: 4.906 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007323/0.189, allocations: 0.5107 MB / 0.5103 GB, free: 4.398 MB / 398.1 MB Notification: Performance of sort global known variables: time 2e-07/0.189, allocations: 0 / 0.5103 GB, free: 4.398 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001053/0.1901, allocations: 264 kB / 0.5105 GB, free: 4.141 MB / 398.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.003472/0.1936, allocations: 2.393 MB / 0.5129 GB, free: 1.809 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003021/0.1966, allocations: 1.458 MB / 0.5143 GB, free: 332 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.604e-06/0.1966, allocations: 4 kB / 0.5143 GB, free: 328 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1751/0.3718, allocations: 0.7708 MB / 0.515 GB, free: 70.95 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001299/0.3731, allocations: 207.5 kB / 0.5152 GB, free: 70.94 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01339/0.3865, allocations: 10.12 MB / 0.5251 GB, free: 66.46 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006519/0.3872, allocations: 1.144 MB / 0.5262 GB, free: 65.7 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007766/0.388, allocations: 230 kB / 0.5265 GB, free: 65.67 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004451/0.3884, allocations: 366.6 kB / 0.5268 GB, free: 65.41 MB / 398.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3884, allocations: 0 / 0.5268 GB, free: 65.41 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05568/0.4441, allocations: 23.47 MB / 0.5497 GB, free: 51.13 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.65/12.09, allocations: 11.53 kB / 0.5497 GB, free: 51.12 MB / 398.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/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)