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: 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.0008266/0.0008338, allocations: 89.8 kB / 16.65 MB, free: 6.535 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.0008995/0.0008996, allocations: 175.5 kB / 17.56 MB, free: 6.18 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.688/1.688, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1819/0.1819, allocations: 38.05 MB / 310.1 MB, free: 5.996 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.0006115/0.0006115, allocations: 15.98 kB / 377.2 MB, free: 2.809 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3005/0.3011, allocations: 56.34 MB / 433.5 MB, free: 18.7 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM): time 0.006909/0.3081, allocations: 8.179 MB / 441.7 MB, free: 10.48 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007678/0.3158, allocations: 5.649 MB / 447.3 MB, free: 4.816 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008922/0.3167, allocations: 47.69 kB / 447.4 MB, free: 4.77 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007228/0.3239, allocations: 5.425 MB / 452.8 MB, free: 15.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001819/0.3258, allocations: 0.646 MB / 453.4 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001105/0.3269, allocations: 469.8 kB / 453.9 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003429/0.3303, allocations: 3.411 MB / 457.3 MB, free: 10.81 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001978/0.3323, allocations: 1.345 MB / 458.7 MB, free: 9.41 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001041/0.3334, allocations: 0.6186 MB / 459.3 MB, free: 8.789 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001162/0.3346, allocations: 0.8955 MB / 460.2 MB, free: 7.891 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001318/0.3347, allocations: 60 kB / 460.2 MB, free: 7.832 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001166/0.3359, allocations: 0.6473 MB / 460.9 MB, free: 7.184 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005661/0.3364, allocations: 0.5611 MB / 461.4 MB, free: 6.621 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006998/0.3372, allocations: 0.678 MB / 462.1 MB, free: 5.934 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002057/0.3392, allocations: 2.079 MB / 464.2 MB, free: 3.848 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.3392, allocations: 4 kB / 464.2 MB, free: 3.844 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.3392, allocations: 0 / 464.2 MB, free: 3.844 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.898e-05/0.3393, allocations: 0 / 464.2 MB, free: 3.844 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.003555/0.3428, allocations: 1.684 MB / 465.9 MB, free: 2.078 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.068e-05/0.3429, allocations: 8.031 kB / 465.9 MB, free: 2.07 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006398/0.3435, allocations: 179.1 kB / 466.1 MB, free: 1.895 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001698/0.3452, allocations: 1.018 MB / 467.1 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001919/0.3454, allocations: 179.1 kB / 467.3 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002189/0.3457, allocations: 115.9 kB / 467.4 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003191/0.3489, allocations: 1.883 MB / 469.3 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.475e-05/0.3489, allocations: 4 kB / 469.3 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001293/0.3491, allocations: 47.91 kB / 469.3 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002913/0.3494, allocations: 121.9 kB / 469.4 MB, free: 14.4 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002776/0.3521, allocations: 1.635 MB / 471.1 MB, free: 12.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007536/0.3597, allocations: 5.767 MB / 476.8 MB, free: 6.824 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002463/0.3622, allocations: 1.246 MB / 478.1 MB, free: 5.543 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001389/0.3636, allocations: 0.7621 MB / 478.8 MB, free: 4.773 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.356e-05/0.3637, allocations: 24.92 kB / 478.9 MB, free: 4.75 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001711/0.3654, allocations: 0.9964 MB / 479.9 MB, free: 3.734 MB / 350.1 MB Notification: Performance of pre-optimization done (n=116): time 2.815e-06/0.3654, allocations: 0 / 479.9 MB, free: 3.734 MB / 350.1 MB Notification: Performance of matching and sorting (n=119): time 0.009633/0.3751, allocations: 4.794 MB / 484.7 MB, free: 14.8 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.267e-05/0.3752, allocations: 127.8 kB / 484.8 MB, free: 14.66 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001106/0.3763, allocations: 0.7858 MB / 485.6 MB, free: 13.86 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001086/0.3764, allocations: 57.7 kB / 485.6 MB, free: 13.8 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004671/0.3769, allocations: 0.5076 MB / 486.1 MB, free: 13.28 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003774/0.3773, allocations: 410.3 kB / 486.5 MB, free: 12.88 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001724/0.3775, allocations: 121.6 kB / 486.6 MB, free: 12.75 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002456/0.3777, allocations: 418.7 kB / 487.1 MB, free: 12.33 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001042/0.3788, allocations: 0.6904 MB / 487.7 MB, free: 11.64 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001169/0.3799, allocations: 0.9686 MB / 488.7 MB, free: 10.57 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002083/0.382, allocations: 1.674 MB / 490.4 MB, free: 8.789 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.911e-06/0.3821, allocations: 4 kB / 490.4 MB, free: 8.785 MB / 366.1 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.004104/0.3862, allocations: 2.317 MB / 492.7 MB, free: 6.43 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.246e-05/0.3863, allocations: 65.67 kB / 492.8 MB, free: 6.359 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.802e-05/0.3863, allocations: 8 kB / 492.8 MB, free: 6.352 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001282/0.3876, allocations: 413.6 kB / 493.2 MB, free: 5.941 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008246/0.3884, allocations: 219.6 kB / 493.4 MB, free: 5.727 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007897/0.3963, allocations: 5.72 MB / 499.1 MB, free: 15.74 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001245/0.3976, allocations: 103.8 kB / 499.2 MB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001951/0.3978, allocations: 87.94 kB / 499.3 MB, free: 15.55 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.001053/0.3989, allocations: 461.2 kB / 499.8 MB, free: 15.09 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003192/0.3992, allocations: 110.7 kB / 499.9 MB, free: 14.98 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004279/0.4035, allocations: 2.005 MB / 0.4901 GB, free: 12.92 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.678e-05/0.4036, allocations: 28 kB / 0.4901 GB, free: 12.89 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/0.4036, allocations: 0 / 0.4901 GB, free: 12.89 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.451e-05/0.4036, allocations: 11.97 kB / 0.4901 GB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007627/0.4112, allocations: 3.47 MB / 0.4935 GB, free: 9.301 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.817e-06/0.4113, allocations: 0 / 0.4935 GB, free: 9.301 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00108/0.4124, allocations: 171.7 kB / 0.4937 GB, free: 9.133 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006216/0.413, allocations: 158.4 kB / 0.4938 GB, free: 8.969 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000126/0.4132, allocations: 35.97 kB / 0.4939 GB, free: 8.934 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004179/0.4174, allocations: 4.47 MB / 0.4982 GB, free: 4.066 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/0.4174, allocations: 7.922 kB / 0.4983 GB, free: 4.059 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006105/0.4235, allocations: 2.964 MB / 0.5011 GB, free: 1.023 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006872/0.4242, allocations: 307.7 kB / 0.5014 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000347/0.4246, allocations: 91.88 kB / 0.5015 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001117/0.4257, allocations: 123.8 kB / 0.5016 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002753/0.426, allocations: 80.89 kB / 0.5017 GB, free: 424 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000104/0.4261, allocations: 39.97 kB / 0.5018 GB, free: 384 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0009344/0.4271, allocations: 0.538 MB / 0.5023 GB, free: 15.84 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4271, allocations: 0 / 0.5023 GB, free: 15.84 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001536/0.4286, allocations: 364 kB / 0.5026 GB, free: 15.48 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.001235/0.4299, allocations: 0.5043 MB / 0.5031 GB, free: 15.03 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004991/0.4349, allocations: 2.321 MB / 0.5054 GB, free: 12.67 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.59e-06/0.4349, allocations: 0 / 0.5054 GB, free: 12.67 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002437/0.4374, allocations: 1.244 MB / 0.5066 GB, free: 11.39 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001869/0.4393, allocations: 235.5 kB / 0.5068 GB, free: 11.16 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007486/0.4468, allocations: 4.173 MB / 0.5109 GB, free: 6.949 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001375/0.4482, allocations: 1.284 MB / 0.5122 GB, free: 5.633 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.00155/0.4498, allocations: 304.5 kB / 0.5125 GB, free: 5.332 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004587/0.4503, allocations: 79.42 kB / 0.5125 GB, free: 5.254 MB / 398.1 MB Notification: Performance of SimCode: time 1.813e-06/0.4503, allocations: 0 / 0.5125 GB, free: 5.254 MB / 398.1 MB Notification: Performance of Templates: time 0.2456/0.6959, allocations: 17.86 MB / 0.53 GB, free: 82.15 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: