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 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.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.001239/0.001239, allocations: 110.4 kB / 16.92 MB, free: 5.797 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.00132/0.00132, allocations: 191.3 kB / 17.85 MB, free: 5.188 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.317/1.317, allocations: 222.9 MB / 241.5 MB, free: 15.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1713/0.1713, allocations: 38.02 MB / 329.7 MB, free: 8.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001228, allocations: 61.73 kB / 398.9 MB, free: 33.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0973/0.09854, allocations: 58.06 MB / 457 MB, free: 7.965 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM): time 0.009236/0.1078, allocations: 7.414 MB / 464.4 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008068/0.1159, allocations: 5.238 MB / 469.6 MB, free: 11.26 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006378/0.1166, allocations: 31.88 kB / 469.6 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01051/0.1271, allocations: 5.735 MB / 475.4 MB, free: 5.484 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001802/0.1289, allocations: 0.6844 MB / 476.1 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001339/0.1303, allocations: 0.5146 MB / 476.6 MB, free: 4.281 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003242/0.1335, allocations: 2.635 MB / 479.2 MB, free: 1.637 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001827/0.1354, allocations: 1.361 MB / 480.6 MB, free: 260 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001327/0.1367, allocations: 0.7672 MB / 481.3 MB, free: 15.48 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001522/0.1383, allocations: 0.9229 MB / 482.3 MB, free: 14.56 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004346/0.1387, allocations: 144 kB / 482.4 MB, free: 14.42 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001523/0.1402, allocations: 0.7099 MB / 483.1 MB, free: 13.71 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009052/0.1412, allocations: 0.6547 MB / 483.8 MB, free: 13.05 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001348/0.1425, allocations: 0.7544 MB / 484.5 MB, free: 12.29 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002552/0.1451, allocations: 2.17 MB / 486.7 MB, free: 10.12 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.1451, allocations: 0 / 486.7 MB, free: 10.12 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1451, allocations: 0 / 486.7 MB, free: 10.12 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.601e-05/0.1452, allocations: 0 / 486.7 MB, free: 10.12 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: 293 * Number of variables: 293 Notification: Performance of Generate backend data structure: time 0.00563/0.1508, allocations: 1.959 MB / 488.7 MB, free: 8.078 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.663e-05/0.1509, allocations: 19.83 kB / 488.7 MB, free: 8.059 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005527/0.1515, allocations: 177.5 kB / 488.8 MB, free: 7.875 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001035/0.1525, allocations: 175.2 kB / 489 MB, free: 7.703 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002062/0.1546, allocations: 1.003 MB / 490 MB, free: 6.656 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001824/0.1548, allocations: 191.1 kB / 490.2 MB, free: 6.449 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002644/0.155, allocations: 112 kB / 490.3 MB, free: 6.34 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00352/0.1586, allocations: 1.859 MB / 492.2 MB, free: 4.406 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.733e-05/0.1586, allocations: 11.94 kB / 492.2 MB, free: 4.395 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001292/0.1588, allocations: 39.98 kB / 492.2 MB, free: 4.355 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003007/0.1591, allocations: 125.9 kB / 492.3 MB, free: 4.234 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003037/0.1621, allocations: 1.596 MB / 493.9 MB, free: 2.637 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008398/0.1705, allocations: 5.759 MB / 499.7 MB, free: 12.71 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002455/0.173, allocations: 1.191 MB / 0.4892 GB, free: 11.48 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001467/0.1745, allocations: 0.7502 MB / 0.4899 GB, free: 10.72 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.584e-05/0.1746, allocations: 13.09 kB / 0.4899 GB, free: 10.71 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00176/0.1763, allocations: 0.9883 MB / 0.4909 GB, free: 9.699 MB / 382.1 MB Notification: Performance of pre-optimization done (n=116): time 3.687e-06/0.1763, allocations: 0 / 0.4909 GB, free: 9.699 MB / 382.1 MB Notification: Performance of matching and sorting (n=119): time 0.01025/0.1866, allocations: 4.661 MB / 0.4954 GB, free: 4.906 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001035/0.1867, allocations: 127.8 kB / 0.4955 GB, free: 4.758 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001075/0.1878, allocations: 0.7859 MB / 0.4963 GB, free: 3.961 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001205/0.1879, allocations: 57.69 kB / 0.4964 GB, free: 3.898 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000424/0.1884, allocations: 0.5037 MB / 0.4969 GB, free: 3.387 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003638/0.1887, allocations: 410.3 kB / 0.4972 GB, free: 2.98 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003976/0.1891, allocations: 246.7 kB / 0.4975 GB, free: 2.734 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001981/0.1894, allocations: 418.7 kB / 0.4979 GB, free: 2.316 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001061/0.1904, allocations: 0.6904 MB / 0.4986 GB, free: 1.621 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001257/0.1917, allocations: 0.9725 MB / 0.4995 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1877/0.3794, allocations: 1.673 MB / 0.5011 GB, free: 56.74 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.526e-06/0.3794, allocations: 2.312 kB / 0.5011 GB, free: 56.74 MB / 382.1 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.00377/0.3832, allocations: 2.325 MB / 0.5034 GB, free: 56.11 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.148e-05/0.3833, allocations: 64.58 kB / 0.5035 GB, free: 56.07 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.805e-05/0.3833, allocations: 8.578 kB / 0.5035 GB, free: 56.07 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001257/0.3846, allocations: 416.5 kB / 0.5039 GB, free: 55.96 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007871/0.3854, allocations: 221.2 kB / 0.5041 GB, free: 55.94 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007018/0.3924, allocations: 6.237 MB / 0.5102 GB, free: 51.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000972/0.3934, allocations: 101.9 kB / 0.5103 GB, free: 51.64 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001489/0.3935, allocations: 80.61 kB / 0.5104 GB, free: 51.64 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.0007176/0.3943, allocations: 462.1 kB / 0.5108 GB, free: 51.38 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002201/0.3945, allocations: 108.4 kB / 0.5109 GB, free: 51.38 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004078/0.3986, allocations: 1.961 MB / 0.5128 GB, free: 50.54 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.611e-05/0.3986, allocations: 29.48 kB / 0.5128 GB, free: 50.54 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.3987, allocations: 2.344 kB / 0.5128 GB, free: 50.54 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.343e-05/0.3987, allocations: 6.438 kB / 0.5128 GB, free: 50.54 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00574/0.4044, allocations: 3.423 MB / 0.5162 GB, free: 49.07 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.803e-06/0.4044, allocations: 2.531 kB / 0.5162 GB, free: 49.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008964/0.4053, allocations: 173.4 kB / 0.5164 GB, free: 49.06 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004999/0.4059, allocations: 158.7 kB / 0.5165 GB, free: 49.01 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.507e-05/0.406, allocations: 43.84 kB / 0.5165 GB, free: 48.99 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002923/0.4089, allocations: 4.814 MB / 0.5213 GB, free: 44.54 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.4089, allocations: 1.5 kB / 0.5213 GB, free: 44.54 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004929/0.4138, allocations: 2.886 MB / 0.5241 GB, free: 43.34 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004302/0.4143, allocations: 310.4 kB / 0.5244 GB, free: 43.14 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002033/0.4145, allocations: 81.05 kB / 0.5244 GB, free: 43.11 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008764/0.4154, allocations: 114.8 kB / 0.5246 GB, free: 43.09 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002052/0.4156, allocations: 74.12 kB / 0.5246 GB, free: 43.08 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.132e-05/0.4157, allocations: 45.02 kB / 0.5247 GB, free: 43.07 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006529/0.4164, allocations: 0.5422 MB / 0.5252 GB, free: 42.83 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4164, allocations: 0 / 0.5252 GB, free: 42.83 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001223/0.4176, allocations: 363.2 kB / 0.5255 GB, free: 42.79 MB / 382.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.00574/0.4233, allocations: 3.843 MB / 0.5293 GB, free: 40.53 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004815/0.4282, allocations: 2.971 MB / 0.5322 GB, free: 38.21 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/0.4282, allocations: 0 / 0.5322 GB, free: 38.21 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001893/0.4301, allocations: 1.224 MB / 0.5334 GB, free: 36.95 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0012/0.4313, allocations: 240.8 kB / 0.5336 GB, free: 36.71 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01543/0.4468, allocations: 13.4 MB / 0.5467 GB, free: 22.89 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005654/0.4474, allocations: 1.277 MB / 0.548 GB, free: 21.59 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007419/0.4481, allocations: 296.5 kB / 0.5482 GB, free: 21.29 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004865/0.4486, allocations: 443.3 kB / 0.5487 GB, free: 20.86 MB / 382.1 MB Notification: Performance of SimCode: time 7.42e-07/0.4486, allocations: 0 / 0.5487 GB, free: 20.86 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07346/0.5221, allocations: 29.54 MB / 0.5775 GB, free: 7.535 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.94/12.46, allocations: 18.28 kB / 0.5775 GB, free: 7.52 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)