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: translateModel(PowerSystems.Examples.AC3ph.Drives.ASM,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM") translateModel(PowerSystems.Examples.AC3ph.Drives.ASM,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001821/0.001821, allocations: 109.8 kB / 17.28 MB, free: 6.195 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.00252/0.00252, allocations: 197.3 kB / 18.21 MB, free: 5.27 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.766/2.766, allocations: 222.9 MB / 241.9 MB, free: 15.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.4099/0.4099, allocations: 38.02 MB / 330.1 MB, free: 8.867 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002759/0.002759, allocations: 66.7 kB / 398.9 MB, free: 34.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2034/0.2062, allocations: 58.06 MB / 457 MB, free: 8.379 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM): time 0.02273/0.229, allocations: 8.662 MB / 465.7 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01909/0.2482, allocations: 5.617 MB / 471.3 MB, free: 10.04 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00238/0.2506, allocations: 51.69 kB / 471.3 MB, free: 9.988 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02023/0.2709, allocations: 5.849 MB / 477.2 MB, free: 4.133 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004225/0.2752, allocations: 0.6421 MB / 477.8 MB, free: 3.488 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002694/0.2779, allocations: 486.6 kB / 478.3 MB, free: 3.016 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007658/0.2856, allocations: 2.69 MB / 481 MB, free: 324 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003856/0.2896, allocations: 1.384 MB / 482.4 MB, free: 14.91 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003686/0.2934, allocations: 0.7786 MB / 483.1 MB, free: 14.13 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003021/0.2964, allocations: 0.9814 MB / 484.1 MB, free: 13.14 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006124/0.2971, allocations: 144 kB / 484.3 MB, free: 13 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002638/0.2998, allocations: 0.7099 MB / 485 MB, free: 12.29 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001488/0.3013, allocations: 0.6547 MB / 485.6 MB, free: 11.64 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002147/0.3035, allocations: 0.77 MB / 486.4 MB, free: 10.86 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004178/0.3077, allocations: 1.731 MB / 488.1 MB, free: 9.129 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.349e-05/0.3078, allocations: 8 kB / 488.1 MB, free: 9.121 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.856e-06/0.3078, allocations: 0 / 488.1 MB, free: 9.121 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.58e-05/0.3079, allocations: 0 / 488.1 MB, free: 9.121 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.009009/0.3169, allocations: 1.952 MB / 490.1 MB, free: 7.086 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.442e-05/0.317, allocations: 11.89 kB / 490.1 MB, free: 7.074 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001357/0.3184, allocations: 175.2 kB / 490.3 MB, free: 6.902 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00378/0.3222, allocations: 1.015 MB / 491.3 MB, free: 5.848 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003231/0.3225, allocations: 183.1 kB / 491.5 MB, free: 5.648 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004641/0.323, allocations: 107.9 kB / 491.6 MB, free: 5.543 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006058/0.3291, allocations: 1.863 MB / 493.4 MB, free: 3.605 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.664e-05/0.3292, allocations: 7.938 kB / 493.4 MB, free: 3.598 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002363/0.3294, allocations: 39.98 kB / 493.5 MB, free: 3.559 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006687/0.3301, allocations: 125.9 kB / 493.6 MB, free: 3.438 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005839/0.336, allocations: 1.6 MB / 495.2 MB, free: 1.836 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01798/0.354, allocations: 5.767 MB / 0.4892 GB, free: 11.89 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005143/0.3592, allocations: 1.195 MB / 0.4904 GB, free: 10.66 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00304/0.3624, allocations: 0.746 MB / 0.4911 GB, free: 9.91 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000166/0.3626, allocations: 21.12 kB / 0.4911 GB, free: 9.891 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003593/0.3662, allocations: 0.9807 MB / 0.4921 GB, free: 8.891 MB / 382.1 MB Notification: Performance of pre-optimization done (n=116): time 1.268e-05/0.3663, allocations: 0 / 0.4921 GB, free: 8.891 MB / 382.1 MB Notification: Performance of matching and sorting (n=119): time 0.0209/0.3872, allocations: 4.665 MB / 0.4967 GB, free: 4.086 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001921/0.3874, allocations: 131.8 kB / 0.4968 GB, free: 3.934 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002938/0.3904, allocations: 0.7781 MB / 0.4975 GB, free: 3.145 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000426/0.3909, allocations: 57.69 kB / 0.4976 GB, free: 3.082 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008729/0.3918, allocations: 0.5076 MB / 0.4981 GB, free: 2.566 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001137/0.3929, allocations: 406.2 kB / 0.4985 GB, free: 2.164 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001347/0.3943, allocations: 242.8 kB / 0.4987 GB, free: 1.922 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0004261/0.3948, allocations: 426.7 kB / 0.4991 GB, free: 1.496 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00226/0.3971, allocations: 0.6864 MB / 0.4998 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.4776/0.8747, allocations: 0.9649 MB / 0.5007 GB, free: 56.49 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006917/0.8818, allocations: 1.685 MB / 0.5024 GB, free: 56.16 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-05/0.8819, allocations: 2.312 kB / 0.5024 GB, free: 56.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.009892/0.8918, allocations: 2.322 MB / 0.5047 GB, free: 55.33 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002936/0.8922, allocations: 62.25 kB / 0.5047 GB, free: 55.29 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.738e-05/0.8923, allocations: 7.781 kB / 0.5047 GB, free: 55.29 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002479/0.8948, allocations: 417.4 kB / 0.5051 GB, free: 55.19 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001878/0.8967, allocations: 217.8 kB / 0.5053 GB, free: 55.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01345/0.9102, allocations: 6.23 MB / 0.5114 GB, free: 50.89 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001977/0.9123, allocations: 104 kB / 0.5115 GB, free: 50.87 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006944/0.913, allocations: 88.91 kB / 0.5116 GB, free: 50.86 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.001928/0.915, allocations: 456.4 kB / 0.512 GB, free: 50.61 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000739/0.9157, allocations: 104.9 kB / 0.5121 GB, free: 50.61 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007732/0.9235, allocations: 1.959 MB / 0.514 GB, free: 49.77 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.698e-05/0.9236, allocations: 28.77 kB / 0.5141 GB, free: 49.77 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.089e-05/0.9237, allocations: 5.969 kB / 0.5141 GB, free: 49.77 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.157e-05/0.9237, allocations: 5.484 kB / 0.5141 GB, free: 49.77 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01174/0.9355, allocations: 3.418 MB / 0.5174 GB, free: 48.3 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.601e-05/0.9355, allocations: 1.938 kB / 0.5174 GB, free: 48.3 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001153/0.9367, allocations: 173.7 kB / 0.5176 GB, free: 48.29 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006775/0.9374, allocations: 168 kB / 0.5177 GB, free: 48.23 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002163/0.9377, allocations: 41.11 kB / 0.5178 GB, free: 48.21 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005246/0.9429, allocations: 4.806 MB / 0.5225 GB, free: 43.76 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.59e-06/0.943, allocations: 1.469 kB / 0.5225 GB, free: 43.76 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007919/0.9509, allocations: 2.88 MB / 0.5253 GB, free: 42.54 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001007/0.952, allocations: 310 kB / 0.5256 GB, free: 42.34 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006369/0.9526, allocations: 92.52 kB / 0.5257 GB, free: 42.31 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001245/0.9539, allocations: 109.5 kB / 0.5258 GB, free: 42.3 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003312/0.9543, allocations: 84.89 kB / 0.5259 GB, free: 42.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001296/0.9544, allocations: 42.47 kB / 0.5259 GB, free: 42.27 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001386/0.9558, allocations: 0.5338 MB / 0.5264 GB, free: 42.04 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.7e-07/0.9558, allocations: 0 / 0.5264 GB, free: 42.04 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002499/0.9583, allocations: 355.6 kB / 0.5268 GB, free: 42.01 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.0018/0.9602, allocations: 0.5133 MB / 0.5273 GB, free: 41.83 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006925/0.9671, allocations: 2.98 MB / 0.5302 GB, free: 40.56 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.035e-06/0.9672, allocations: 0 / 0.5302 GB, free: 40.56 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002698/0.9699, allocations: 1.218 MB / 0.5314 GB, free: 39.58 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002917/0.9728, allocations: 255.6 kB / 0.5316 GB, free: 39.34 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01166/0.9846, allocations: 4.007 MB / 0.5355 GB, free: 35.34 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001823/0.9865, allocations: 1.277 MB / 0.5368 GB, free: 34.03 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009391/0.9874, allocations: 91.41 kB / 0.5369 GB, free: 33.94 MB / 382.1 MB Notification: Performance of SimCode: time 1.133e-06/0.9875, allocations: 0 / 0.5369 GB, free: 33.94 MB / 382.1 MB Notification: Performance of Templates: time 0.05094/1.038, allocations: 29.46 MB / 0.5656 GB, free: 4.52 MB / 382.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM.makefile (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 & ./PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM.pipe 2>&1)