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.001244/0.001244, allocations: 103.9 kB / 16.51 MB, free: 6.699 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.001324/0.001324, allocations: 191.5 kB / 17.42 MB, free: 6.086 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.335/1.335, allocations: 205.1 MB / 223.3 MB, free: 12.48 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1653/0.1653, allocations: 38 MB / 308.6 MB, free: 6.242 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.001341/0.001341, allocations: 71.03 kB / 374.7 MB, free: 4.016 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2482/0.2495, allocations: 55.24 MB / 430 MB, free: 19.78 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav): time 0.007953/0.2575, allocations: 8.351 MB / 438.3 MB, free: 11.39 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007723/0.2653, allocations: 5.575 MB / 443.9 MB, free: 5.797 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001524/0.2669, allocations: 59.69 kB / 444 MB, free: 5.738 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01812/0.285, allocations: 5.67 MB / 449.6 MB, free: 60 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002229/0.2873, allocations: 497.9 kB / 450.1 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001737/0.289, allocations: 425.8 kB / 450.5 MB, free: 15.15 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004442/0.2935, allocations: 2.951 MB / 453.5 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001278/0.2948, allocations: 0.7908 MB / 454.3 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001091/0.2959, allocations: 0.5212 MB / 454.8 MB, free: 10.87 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001052/0.297, allocations: 0.7435 MB / 455.5 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001329/0.2971, allocations: 60 kB / 455.6 MB, free: 10.07 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006103/0.2977, allocations: 219.7 kB / 455.8 MB, free: 9.852 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004675/0.2982, allocations: 466.8 kB / 456.3 MB, free: 9.395 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005676/0.2988, allocations: 0.5323 MB / 456.8 MB, free: 8.859 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001459/0.3003, allocations: 1.503 MB / 458.3 MB, free: 7.352 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.501e-06/0.3003, allocations: 0 / 458.3 MB, free: 7.352 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.62e-07/0.3003, allocations: 0 / 458.3 MB, free: 7.352 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.624e-05/0.3003, allocations: 0 / 458.3 MB, free: 7.352 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: 220 * Number of variables: 220 Notification: Performance of Generate backend data structure: time 0.002962/0.3033, allocations: 1.449 MB / 459.7 MB, free: 5.848 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.38e-05/0.3033, allocations: 8.031 kB / 459.8 MB, free: 5.84 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001685/0.3035, allocations: 139.6 kB / 459.9 MB, free: 5.695 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000611/0.3041, allocations: 151.4 kB / 460 MB, free: 5.547 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001511/0.3056, allocations: 0.8741 MB / 460.9 MB, free: 4.633 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.503e-05/0.3057, allocations: 62 kB / 461 MB, free: 4.57 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001431/0.3059, allocations: 95.95 kB / 461.1 MB, free: 4.477 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001681/0.3076, allocations: 1.231 MB / 462.3 MB, free: 3.176 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.803e-05/0.3076, allocations: 11.84 kB / 462.3 MB, free: 3.164 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.295e-05/0.3077, allocations: 32 kB / 462.3 MB, free: 3.133 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002396/0.3079, allocations: 93.88 kB / 462.4 MB, free: 3.039 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001459/0.3094, allocations: 0.9992 MB / 463.4 MB, free: 2.043 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006221/0.3156, allocations: 4.928 MB / 468.4 MB, free: 12.9 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009634/0.3166, allocations: 0.6566 MB / 469 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005721/0.3172, allocations: 355.3 kB / 469.4 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.548e-05/0.3173, allocations: 8.562 kB / 469.4 MB, free: 11.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007037/0.318, allocations: 453.7 kB / 469.8 MB, free: 11.38 MB / 350.1 MB Notification: Performance of pre-optimization done (n=62): time 2.394e-06/0.318, allocations: 3.938 kB / 469.8 MB, free: 11.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=65): time 0.004626/0.3226, allocations: 2.719 MB / 472.5 MB, free: 8.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.364e-05/0.3227, allocations: 111.4 kB / 472.6 MB, free: 8.387 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009712/0.3237, allocations: 0.7467 MB / 473.4 MB, free: 7.629 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.57e-05/0.3238, allocations: 41.7 kB / 473.4 MB, free: 7.582 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000377/0.3242, allocations: 0.4909 MB / 473.9 MB, free: 7.082 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002154/0.3244, allocations: 244.6 kB / 474.2 MB, free: 6.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002601/0.3247, allocations: 174.5 kB / 474.3 MB, free: 6.66 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001987/0.3249, allocations: 402.7 kB / 474.7 MB, free: 6.258 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005648/0.3254, allocations: 373.7 kB / 475.1 MB, free: 5.895 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007492/0.3262, allocations: 0.6654 MB / 475.8 MB, free: 5.102 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001301/0.3275, allocations: 1.057 MB / 476.8 MB, free: 3.918 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.119e-06/0.3275, allocations: 4 kB / 476.8 MB, free: 3.914 MB / 350.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002898/0.3304, allocations: 1.627 MB / 478.4 MB, free: 2.254 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.003e-05/0.3305, allocations: 8 kB / 478.5 MB, free: 2.246 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.923e-05/0.3305, allocations: 12 kB / 478.5 MB, free: 2.234 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001601/0.3321, allocations: 486.2 kB / 478.9 MB, free: 1.754 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006134/0.3327, allocations: 171.7 kB / 479.1 MB, free: 1.586 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008968/0.3417, allocations: 6.508 MB / 485.6 MB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008183/0.3426, allocations: 48.03 kB / 485.7 MB, free: 10.76 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.117e-05/0.3427, allocations: 47.94 kB / 485.7 MB, free: 10.71 MB / 366.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.0005719/0.3432, allocations: 349.4 kB / 486 MB, free: 10.36 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001358/0.3434, allocations: 82.97 kB / 486.1 MB, free: 10.28 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001878/0.3453, allocations: 1.118 MB / 487.2 MB, free: 9.105 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.016e-05/0.3453, allocations: 15.98 kB / 487.3 MB, free: 9.09 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.3453, allocations: 4 kB / 487.3 MB, free: 9.086 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.151e-05/0.3453, allocations: 7.922 kB / 487.3 MB, free: 9.078 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003918/0.3492, allocations: 2.103 MB / 489.4 MB, free: 6.859 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.546e-06/0.3493, allocations: 4 kB / 489.4 MB, free: 6.855 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007541/0.35, allocations: 123.8 kB / 489.5 MB, free: 6.734 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000526/0.3506, allocations: 158.4 kB / 489.7 MB, free: 6.57 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.341e-05/0.3507, allocations: 24.11 kB / 489.7 MB, free: 6.547 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003798/0.3545, allocations: 4.462 MB / 494.1 MB, free: 1.688 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.3545, allocations: 0 / 494.1 MB, free: 1.688 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002283/0.3568, allocations: 1.533 MB / 495.7 MB, free: 80 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003848/0.3572, allocations: 219.9 kB / 495.9 MB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00012/0.3573, allocations: 20 kB / 495.9 MB, free: 15.82 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004396/0.3578, allocations: 27.97 kB / 495.9 MB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001552/0.3579, allocations: 56.42 kB / 496 MB, free: 15.74 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.27e-05/0.358, allocations: 23.98 kB / 496 MB, free: 15.72 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000673/0.3587, allocations: 0.5068 MB / 496.5 MB, free: 15.22 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3587, allocations: 4 kB / 496.5 MB, free: 15.21 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001021/0.3597, allocations: 264.1 kB / 496.8 MB, free: 14.96 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.00325/0.3629, allocations: 2.395 MB / 499.2 MB, free: 12.52 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00237/0.3653, allocations: 1.315 MB / 0.4888 GB, free: 11.19 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.3654, allocations: 12 kB / 0.4888 GB, free: 11.18 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00119/0.3666, allocations: 0.7688 MB / 0.4895 GB, free: 10.36 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001095/0.3677, allocations: 203.6 kB / 0.4897 GB, free: 10.16 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01586/0.3835, allocations: 10.46 MB / 0.4999 GB, free: 15.2 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008239/0.3844, allocations: 1.151 MB / 0.5011 GB, free: 14.02 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008001/0.3852, allocations: 231.3 kB / 0.5013 GB, free: 13.79 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005031/0.3857, allocations: 363.3 kB / 0.5016 GB, free: 13.43 MB / 398.1 MB Notification: Performance of SimCode: time 1.082e-06/0.3857, allocations: 0 / 0.5016 GB, free: 13.43 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2373/0.623, allocations: 22.67 MB / 0.5238 GB, free: 85.91 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001862/0.6233, allocations: 276.6 kB / 0.524 GB, free: 85.56 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.386/3.009, allocations: 0 / 0.524 GB, free: 85.56 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)