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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009912/0.0009912, allocations: 87.67 kB / 20.95 MB, free: 3.453 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008589/0.0008589, allocations: 162 kB / 24.26 MB, free: 144 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8907/0.8907, allocations: 177.1 MB / 204.6 MB, free: 5.594 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.2229/0.2229, allocations: 29.42 MB / 290.5 MB, free: 2.441 MB / 266.7 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.383e-06/1.383e-06, allocations: 0 / 368.4 MB, free: 11.83 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.397e-06/1.078e-05, allocations: 2.312 kB / 368.4 MB, free: 11.83 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM): time 0.006798/0.006808, allocations: 7.073 MB / 375.5 MB, free: 4.719 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.006236/0.01304, allocations: 4.977 MB / 380.4 MB, free: 15.72 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004618/0.01351, allocations: 39.69 kB / 380.5 MB, free: 15.68 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007144/0.02065, allocations: 6.549 MB / 387 MB, free: 9.121 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001214/0.02186, allocations: 0.7732 MB / 387.8 MB, free: 8.344 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009897/0.02285, allocations: 0.5534 MB / 388.3 MB, free: 7.789 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.002224/0.02508, allocations: 2.783 MB / 391.1 MB, free: 5 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001158/0.02624, allocations: 1.162 MB / 392.3 MB, free: 3.816 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001124/0.02736, allocations: 1.068 MB / 393.4 MB, free: 2.746 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009755/0.02834, allocations: 0.8923 MB / 394.2 MB, free: 1.852 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002427/0.02858, allocations: 144 kB / 394.4 MB, free: 1.711 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009201/0.0295, allocations: 0.7059 MB / 395.1 MB, free: 1.004 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003979/0.0299, allocations: 0.6897 MB / 395.8 MB, free: 320 kB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004209/0.03032, allocations: 0.5223 MB / 396.3 MB, free: 15.79 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001761/0.03208, allocations: 2.376 MB / 398.7 MB, free: 13.41 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.946e-06/0.03208, allocations: 0 / 398.7 MB, free: 13.41 MB / 378.7 MB Notification: Performance of FrontEnd: time 9.61e-07/0.03208, allocations: 0 / 398.7 MB, free: 13.41 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.672e-05/0.0321, allocations: 0 / 398.7 MB, free: 13.41 MB / 378.7 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.002519/0.03462, allocations: 1.933 MB / 400.6 MB, free: 11.41 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.683e-05/0.03466, allocations: 11.98 kB / 400.6 MB, free: 11.39 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001657/0.03482, allocations: 177.5 kB / 400.8 MB, free: 11.21 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006538/0.03547, allocations: 327.8 kB / 401.1 MB, free: 10.89 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001276/0.03675, allocations: 1.021 MB / 402.1 MB, free: 9.84 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001886/0.03694, allocations: 345.3 kB / 402.5 MB, free: 9.445 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001442/0.03708, allocations: 107.9 kB / 402.6 MB, free: 9.34 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002034/0.03912, allocations: 1.888 MB / 404.5 MB, free: 7.371 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.576e-05/0.03914, allocations: 4 kB / 404.5 MB, free: 7.367 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001132/0.03926, allocations: 43.98 kB / 404.5 MB, free: 7.324 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000176/0.03943, allocations: 125.9 kB / 404.6 MB, free: 7.203 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001978/0.04141, allocations: 1.593 MB / 406.2 MB, free: 5.605 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005885/0.0473, allocations: 5.406 MB / 411.6 MB, free: 40 kB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001522/0.04882, allocations: 1.043 MB / 412.7 MB, free: 14.98 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009124/0.04973, allocations: 0.6795 MB / 413.4 MB, free: 14.29 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.993e-05/0.04979, allocations: 17 kB / 413.4 MB, free: 14.28 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001131/0.05092, allocations: 0.9806 MB / 414.4 MB, free: 13.28 MB / 394.7 MB Notification: Performance of pre-optimization done (n=116): time 2.244e-06/0.05092, allocations: 0 / 414.4 MB, free: 13.28 MB / 394.7 MB Notification: Performance of matching and sorting (n=119): time 0.005857/0.05678, allocations: 4.354 MB / 418.7 MB, free: 8.891 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.828e-05/0.05684, allocations: 135.7 kB / 418.8 MB, free: 8.734 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006543/0.05749, allocations: 0.8055 MB / 419.7 MB, free: 7.922 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.124e-05/0.05756, allocations: 57.69 kB / 419.7 MB, free: 7.859 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002814/0.05785, allocations: 0.5205 MB / 420.2 MB, free: 7.332 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002308/0.05808, allocations: 420.5 kB / 420.6 MB, free: 6.918 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002565/0.05833, allocations: 242.8 kB / 420.9 MB, free: 6.672 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001049/0.05844, allocations: 365.9 kB / 421.2 MB, free: 6.309 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007021/0.05914, allocations: 0.735 MB / 422 MB, free: 5.566 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001133/0.06027, allocations: 1.042 MB / 423 MB, free: 4.414 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001451/0.06172, allocations: 1.678 MB / 424.7 MB, free: 2.629 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.27e-06/0.06173, allocations: 11.92 kB / 424.7 MB, free: 2.617 MB / 394.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.002423/0.06415, allocations: 2.338 MB / 427 MB, free: 260 kB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.261e-05/0.06421, allocations: 61.67 kB / 427.1 MB, free: 192 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.223e-05/0.06422, allocations: 8 kB / 427.1 MB, free: 184 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007326/0.06495, allocations: 421.5 kB / 427.5 MB, free: 15.76 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004436/0.06539, allocations: 215.7 kB / 427.7 MB, free: 15.55 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00508/0.07047, allocations: 5.991 MB / 433.7 MB, free: 9.332 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004398/0.07091, allocations: 107.8 kB / 433.8 MB, free: 9.227 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000101/0.07101, allocations: 87.88 kB / 433.9 MB, free: 9.141 MB / 410.7 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.0004401/0.07145, allocations: 461.3 kB / 434.4 MB, free: 8.68 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001875/0.07164, allocations: 167.2 kB / 434.5 MB, free: 8.516 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002196/0.07384, allocations: 1.796 MB / 436.3 MB, free: 6.695 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.336e-05/0.07386, allocations: 24 kB / 436.3 MB, free: 6.672 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.07387, allocations: 0 / 436.3 MB, free: 6.672 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.748e-06/0.07388, allocations: 7.969 kB / 436.4 MB, free: 6.664 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003758/0.07764, allocations: 3.114 MB / 439.5 MB, free: 3.488 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.851e-06/0.07764, allocations: 7.938 kB / 439.5 MB, free: 3.48 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004856/0.07813, allocations: 171.7 kB / 439.6 MB, free: 3.312 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000283/0.07841, allocations: 162.4 kB / 439.8 MB, free: 3.145 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.38e-05/0.07847, allocations: 35.97 kB / 439.8 MB, free: 3.109 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1406/0.2191, allocations: 4.49 MB / 444.3 MB, free: 107.8 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.2191, allocations: 0 / 444.3 MB, free: 107.8 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003434/0.2225, allocations: 2.783 MB / 447.1 MB, free: 107.6 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003697/0.2229, allocations: 246 kB / 447.3 MB, free: 107.5 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001493/0.223, allocations: 84.88 kB / 447.4 MB, free: 107.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000474/0.2235, allocations: 109.8 kB / 447.5 MB, free: 107.5 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001409/0.2236, allocations: 80.5 kB / 447.6 MB, free: 107.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.003e-05/0.2237, allocations: 43.09 kB / 447.7 MB, free: 107.4 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004478/0.2241, allocations: 0.5415 MB / 448.2 MB, free: 107.2 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2241, allocations: 2.906 kB / 448.2 MB, free: 107.2 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0008919/0.225, allocations: 377.7 kB / 448.6 MB, free: 107.2 MB / 410.7 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.004027/0.2291, allocations: 3.823 MB / 452.4 MB, free: 105.6 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002497/0.2316, allocations: 2.171 MB / 454.6 MB, free: 104.7 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.736e-06/0.2316, allocations: 0 / 454.6 MB, free: 104.7 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001135/0.2327, allocations: 1.162 MB / 455.7 MB, free: 104.2 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008493/0.2335, allocations: 247.7 kB / 456 MB, free: 104.1 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01317/0.2467, allocations: 12.97 MB / 468.9 MB, free: 98.03 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005281/0.2472, allocations: 0.693 MB / 469.6 MB, free: 97.82 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0006253/0.2479, allocations: 301.4 kB / 469.9 MB, free: 97.77 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004642/0.2483, allocations: 448.7 kB / 470.4 MB, free: 97.44 MB / 410.7 MB Notification: Performance of SimCode: time 1.403e-06/0.2483, allocations: 0 / 470.4 MB, free: 97.44 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0491/0.2974, allocations: 32.15 MB / 0.4907 GB, free: 80.36 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.786/9.083, allocations: 3.984 kB / 0.4907 GB, free: 80.35 MB / 410.7 MB " [Timeout remaining time 651] (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 & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASM.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.129621733911335] Failed to read output from testmodel.py, exit status != 0: 9.206102925352752 9.218583777 9.18433456 Calling exit ...