Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM.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.ASM,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASM,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASM",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.001292/0.001292, allocations: 109.1 kB / 16.51 MB, free: 6.707 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.001178/0.001178, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.369/1.369, allocations: 205.1 MB / 223.3 MB, free: 12.49 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1679/0.1679, allocations: 37.99 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.001405/0.001404, allocations: 67.03 kB / 374.7 MB, free: 4.02 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2495/0.2509, allocations: 55.24 MB / 430 MB, free: 19.76 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM): time 0.007391/0.2583, allocations: 8.658 MB / 438.6 MB, free: 11.06 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007068/0.2654, allocations: 5.735 MB / 444.4 MB, free: 5.309 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001269/0.2667, allocations: 59.62 kB / 444.4 MB, free: 5.25 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008777/0.2755, allocations: 5.692 MB / 450.1 MB, free: 15.55 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00225/0.2778, allocations: 0.6421 MB / 450.7 MB, free: 14.9 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001265/0.2791, allocations: 462.7 kB / 451.2 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00479/0.2839, allocations: 3.415 MB / 454.6 MB, free: 11.03 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002165/0.2861, allocations: 1.159 MB / 455.8 MB, free: 9.852 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001656/0.2878, allocations: 0.6615 MB / 456.4 MB, free: 9.188 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001834/0.2896, allocations: 0.9424 MB / 457.4 MB, free: 8.242 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004044/0.29, allocations: 83.94 kB / 457.5 MB, free: 8.16 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001687/0.2917, allocations: 0.6513 MB / 458.1 MB, free: 7.508 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009586/0.2927, allocations: 0.5922 MB / 458.7 MB, free: 6.914 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00112/0.2938, allocations: 0.688 MB / 459.4 MB, free: 6.223 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002277/0.2961, allocations: 2.126 MB / 461.5 MB, free: 4.09 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.2961, allocations: 0 / 461.5 MB, free: 4.09 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2962, allocations: 0 / 461.5 MB, free: 4.09 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.138e-05/0.2962, allocations: 0 / 461.5 MB, free: 4.09 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: 293 * Number of variables: 293 Notification: Performance of Generate backend data structure: time 0.004572/0.3008, allocations: 1.956 MB / 463.5 MB, free: 2.051 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.764e-05/0.3008, allocations: 12.03 kB / 463.5 MB, free: 2.039 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002234/0.3011, allocations: 177.5 kB / 463.7 MB, free: 1.855 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006765/0.3017, allocations: 175.2 kB / 463.8 MB, free: 1.684 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001845/0.3036, allocations: 1.022 MB / 464.9 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001893/0.3038, allocations: 179.1 kB / 465 MB, free: 436 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001964/0.304, allocations: 112 kB / 465.1 MB, free: 324 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003246/0.3073, allocations: 1.863 MB / 467 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.543e-05/0.3073, allocations: 8 kB / 467 MB, free: 14.37 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001255/0.3074, allocations: 35.98 kB / 467 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002966/0.3077, allocations: 129.9 kB / 467.2 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002856/0.3106, allocations: 1.604 MB / 468.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008918/0.3195, allocations: 5.744 MB / 474.5 MB, free: 6.688 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002554/0.3222, allocations: 1.199 MB / 475.7 MB, free: 5.453 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001454/0.3236, allocations: 0.7464 MB / 476.5 MB, free: 4.699 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.334e-05/0.3237, allocations: 9 kB / 476.5 MB, free: 4.691 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001761/0.3255, allocations: 0.9883 MB / 477.5 MB, free: 3.684 MB / 350.1 MB Notification: Performance of pre-optimization done (n=116): time 3.116e-06/0.3255, allocations: 0 / 477.5 MB, free: 3.684 MB / 350.1 MB Notification: Performance of matching and sorting (n=119): time 0.009608/0.3351, allocations: 4.669 MB / 482.1 MB, free: 14.88 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001004/0.3353, allocations: 131.8 kB / 482.3 MB, free: 14.73 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001133/0.3364, allocations: 0.7859 MB / 483 MB, free: 13.93 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001202/0.3365, allocations: 53.7 kB / 483.1 MB, free: 13.87 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004502/0.337, allocations: 0.5075 MB / 483.6 MB, free: 13.36 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003889/0.3374, allocations: 410.3 kB / 484 MB, free: 12.95 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003902/0.3378, allocations: 242.8 kB / 484.2 MB, free: 12.71 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002126/0.338, allocations: 422.7 kB / 484.7 MB, free: 12.29 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009834/0.339, allocations: 0.6865 MB / 485.3 MB, free: 11.6 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001231/0.3402, allocations: 0.9725 MB / 486.3 MB, free: 10.53 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002152/0.3424, allocations: 1.67 MB / 488 MB, free: 8.746 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.804e-06/0.3424, allocations: 4 kB / 488 MB, free: 8.742 MB / 366.1 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.00397/0.3464, allocations: 2.321 MB / 490.3 MB, free: 6.379 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.255e-05/0.3465, allocations: 61.67 kB / 490.4 MB, free: 6.312 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.808e-05/0.3465, allocations: 8 kB / 490.4 MB, free: 6.305 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001322/0.3479, allocations: 417.2 kB / 490.8 MB, free: 5.891 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007897/0.3487, allocations: 227.6 kB / 491 MB, free: 5.668 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007603/0.3563, allocations: 5.694 MB / 496.7 MB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001165/0.3575, allocations: 91.81 kB / 496.8 MB, free: 15.62 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001523/0.3576, allocations: 95.88 kB / 496.9 MB, free: 15.52 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 29 (system.initime,inverter.modulator.t0[3],$PRE.inverter.modulator.t0[3],inverter.modulator.t0[2],$PRE.inverter.modulator.t0[2],inverter.modulator.t0[1],$PRE.inverter.modulator.t0[1],inverter.modulator.sigdel_t[3],$PRE.inverter.modulator.sigdel_t[3],inverter.modulator.sigdel_t[2],$PRE.inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[1],$PRE.inverter.modulator.sigdel_t[1],inverter.modulator.gates[6],$PRE.inverter.modulator.gates[6],inverter.modulator.gates[5],$PRE.inverter.modulator.gates[5],inverter.modulator.gates[4],$PRE.inverter.modulator.gates[4],inverter.modulator.gates[3],$PRE.inverter.modulator.gates[3],inverter.modulator.gates[2],$PRE.inverter.modulator.gates[2],inverter.modulator.gates[1],$PRE.inverter.modulator.gates[1],$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (121): * Single equations (assignments): 115 * Array equations: 3 * Algorithm blocks: 1 * 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 {(4,21)} Notification: Performance of prepare postOptimizeDAE: time 0.0008854/0.3585, allocations: 457.3 kB / 497.3 MB, free: 15.07 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002469/0.3588, allocations: 102.8 kB / 497.4 MB, free: 14.96 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003799/0.3626, allocations: 1.973 MB / 499.4 MB, free: 12.93 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.74e-05/0.3626, allocations: 23.98 kB / 499.4 MB, free: 12.91 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.668e-05/0.3627, allocations: 7.938 kB / 499.4 MB, free: 12.9 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.061e-05/0.3627, allocations: 3.984 kB / 499.4 MB, free: 12.9 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00582/0.3685, allocations: 3.42 MB / 0.4911 GB, free: 9.371 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.132e-06/0.3685, allocations: 0 / 0.4911 GB, free: 9.371 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009156/0.3695, allocations: 167.8 kB / 0.4912 GB, free: 9.207 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005165/0.37, allocations: 158.4 kB / 0.4914 GB, free: 9.043 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001142/0.3701, allocations: 43.89 kB / 0.4914 GB, free: 9 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003584/0.3737, allocations: 4.466 MB / 0.4958 GB, free: 4.133 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.3737, allocations: 3.938 kB / 0.4958 GB, free: 4.129 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005086/0.3788, allocations: 2.89 MB / 0.4986 GB, free: 1.176 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004922/0.3793, allocations: 307.6 kB / 0.4989 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000233/0.3796, allocations: 91.88 kB / 0.499 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008912/0.3805, allocations: 111.8 kB / 0.4991 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002179/0.3807, allocations: 76.89 kB / 0.4992 GB, free: 0.582 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.41e-05/0.3808, allocations: 43.95 kB / 0.4992 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006505/0.3815, allocations: 0.538 MB / 0.4997 GB, free: 4 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3815, allocations: 0 / 0.4997 GB, free: 4 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.00116/0.3826, allocations: 352.1 kB / 0.5001 GB, free: 15.66 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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: 17 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.sigdel_t[1],inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[3],inverter.modulator.t0[1],inverter.modulator.t0[2],inverter.modulator.t0[3],system.initime) * Number of discrete states: 12 (inverter.modulator.t0[3],inverter.modulator.sigdel_t[3],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.t0[2],inverter.modulator.sigdel_t[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.t0[1],inverter.modulator.sigdel_t[1],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (98): * Single equations (assignments): 79 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * 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.006375/0.389, allocations: 3.841 MB / 0.5038 GB, free: 11.79 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004045/0.3931, allocations: 2.302 MB / 0.5061 GB, free: 9.445 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.672e-06/0.3931, allocations: 4.188 kB / 0.5061 GB, free: 9.441 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002363/0.3955, allocations: 1.208 MB / 0.5073 GB, free: 8.195 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001382/0.3969, allocations: 239.5 kB / 0.5075 GB, free: 7.961 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2011/0.598, allocations: 13.84 MB / 0.521 GB, free: 86.01 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007664/0.5988, allocations: 1.28 MB / 0.5223 GB, free: 85.23 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0009451/0.5998, allocations: 295.1 kB / 0.5225 GB, free: 85.21 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005693/0.6004, allocations: 445.1 kB / 0.523 GB, free: 84.89 MB / 398.1 MB Notification: Performance of SimCode: time 7.72e-07/0.6004, allocations: 0 / 0.523 GB, free: 84.89 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07523/0.6756, allocations: 28.53 MB / 0.5508 GB, free: 62.59 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000174/0.6758, allocations: 262.5 kB / 0.5511 GB, free: 62.27 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.483/3.159, allocations: 0 / 0.5511 GB, free: 62.27 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASM_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASM.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM.pipe 2>&1)