Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.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.ASMcharacteristic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic") translateModel(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001026/0.001026, allocations: 90.03 kB / 16.31 MB, free: 5.539 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.0009918/0.0009918, allocations: 183.6 kB / 17.21 MB, free: 5.457 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.381/1.381, allocations: 205.4 MB / 223.4 MB, free: 13.14 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1857/0.1857, allocations: 38.05 MB / 309.7 MB, free: 6.027 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.0005292/0.0005293, allocations: 12 kB / 376.5 MB, free: 3.105 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2393/0.2399, allocations: 56.35 MB / 432.8 MB, free: 18.82 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic): time 0.004932/0.2449, allocations: 5.37 MB / 438.2 MB, free: 13.42 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004848/0.2497, allocations: 3.991 MB / 442.2 MB, free: 9.422 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004429/0.2502, allocations: 31.81 kB / 442.2 MB, free: 9.391 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006397/0.2566, allocations: 4.375 MB / 446.6 MB, free: 5.008 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009902/0.2576, allocations: 362.2 kB / 447 MB, free: 4.652 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006208/0.2583, allocations: 191.7 kB / 447.2 MB, free: 4.465 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001629/0.2599, allocations: 1.754 MB / 448.9 MB, free: 2.707 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008833/0.2608, allocations: 0.642 MB / 449.5 MB, free: 2.031 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003063/0.2611, allocations: 302.7 kB / 449.8 MB, free: 1.734 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004268/0.2616, allocations: 394.6 kB / 450.2 MB, free: 1.348 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.621e-05/0.2616, allocations: 28 kB / 450.3 MB, free: 1.32 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001278/0.2617, allocations: 35.98 kB / 450.3 MB, free: 1.285 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001658/0.2619, allocations: 211.4 kB / 450.5 MB, free: 1.078 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001059/0.262, allocations: 145.4 kB / 450.6 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004249/0.2625, allocations: 0.6311 MB / 451.3 MB, free: 304 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.2625, allocations: 0 / 451.3 MB, free: 304 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2625, allocations: 0 / 451.3 MB, free: 304 kB / 318.1 MB Notification: Performance of Transformations before backend: time 7.564e-06/0.2625, allocations: 0 / 451.3 MB, free: 304 kB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 121 * Number of variables: 121 Notification: Performance of Generate backend data structure: time 0.001314/0.2638, allocations: 0.7693 MB / 452 MB, free: 15.48 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/0.2639, allocations: 12.03 kB / 452.1 MB, free: 15.46 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002614/0.2641, allocations: 71.19 kB / 452.1 MB, free: 15.39 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008606/0.265, allocations: 0.5328 MB / 452.7 MB, free: 14.82 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.46e-05/0.2651, allocations: 37 kB / 452.7 MB, free: 14.78 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.367e-05/0.2651, allocations: 40 kB / 452.7 MB, free: 14.74 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008931/0.266, allocations: 0.6258 MB / 453.4 MB, free: 14.07 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.208e-05/0.2661, allocations: 0 / 453.4 MB, free: 14.07 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.411e-05/0.2661, allocations: 23.94 kB / 453.4 MB, free: 14.05 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001097/0.2662, allocations: 48.97 kB / 453.4 MB, free: 14 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006905/0.2669, allocations: 459.6 kB / 453.9 MB, free: 13.55 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002777/0.2697, allocations: 2.53 MB / 456.4 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004257/0.2702, allocations: 281.1 kB / 456.7 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002066/0.2704, allocations: 137.7 kB / 456.8 MB, free: 10.45 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.017e-05/0.2704, allocations: 4.5 kB / 456.8 MB, free: 10.44 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.721e-05/0.2705, allocations: 38.56 kB / 456.9 MB, free: 10.39 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.813e-06/0.2705, allocations: 0 / 456.9 MB, free: 10.39 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.002937/0.2734, allocations: 1.58 MB / 458.4 MB, free: 8.699 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.433e-05/0.2735, allocations: 85.11 kB / 458.5 MB, free: 8.598 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000409/0.2739, allocations: 413.7 kB / 458.9 MB, free: 8.191 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.686e-05/0.2739, allocations: 33.7 kB / 459 MB, free: 8.152 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001792/0.2741, allocations: 307.6 kB / 459.3 MB, free: 7.848 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.752e-05/0.2742, allocations: 110.3 kB / 459.4 MB, free: 7.738 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.833e-05/0.2742, allocations: 8 kB / 459.4 MB, free: 7.73 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001251/0.2744, allocations: 358.8 kB / 459.7 MB, free: 7.371 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001983/0.2746, allocations: 124.8 kB / 459.8 MB, free: 7.25 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002769/0.2749, allocations: 282.8 kB / 460.1 MB, free: 6.91 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000262/0.2751, allocations: 184.1 kB / 460.3 MB, free: 6.73 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.2752, allocations: 4 kB / 460.3 MB, free: 6.727 MB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001073/0.2762, allocations: 0.6752 MB / 461 MB, free: 6.02 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.263e-05/0.2763, allocations: 8 kB / 461 MB, free: 6.012 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.277e-06/0.2763, allocations: 7.938 kB / 461 MB, free: 6.004 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004347/0.2767, allocations: 149.9 kB / 461.1 MB, free: 5.852 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002868/0.277, allocations: 75.84 kB / 461.2 MB, free: 5.777 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003042/0.2801, allocations: 3.397 MB / 464.6 MB, free: 2.109 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002643/0.2804, allocations: 15.91 kB / 464.6 MB, free: 2.094 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.827e-05/0.2804, allocations: 23.98 kB / 464.7 MB, free: 2.07 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 6,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000356/0.2808, allocations: 241.6 kB / 464.9 MB, free: 1.824 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.019e-05/0.2808, allocations: 43.53 kB / 464.9 MB, free: 1.781 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009262/0.2818, allocations: 0.5674 MB / 465.5 MB, free: 1.184 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.2818, allocations: 8 kB / 465.5 MB, free: 1.176 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0006899/0.2825, allocations: 490.3 kB / 466 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.2825, allocations: 0 / 466 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001378/0.2839, allocations: 1.005 MB / 467 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.387e-06/0.2839, allocations: 3.938 kB / 467 MB, free: 15.58 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001842/0.2841, allocations: 40.08 kB / 467 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002456/0.2844, allocations: 92.7 kB / 467.1 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.211e-05/0.2844, allocations: 8 kB / 467.1 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001675/0.2861, allocations: 1.859 MB / 469 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.2861, allocations: 4.031 kB / 469 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008408/0.2869, allocations: 0.6399 MB / 469.6 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001286/0.2871, allocations: 136.5 kB / 469.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.589e-05/0.2871, allocations: 12.06 kB / 469.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001672/0.2873, allocations: 7.984 kB / 469.8 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.559e-05/0.2874, allocations: 31.86 kB / 469.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.465e-05/0.2874, allocations: 8 kB / 469.8 MB, free: 12.56 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003105/0.2877, allocations: 299.1 kB / 470.1 MB, free: 12.27 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2877, allocations: 0 / 470.1 MB, free: 12.27 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005075/0.2882, allocations: 120 kB / 470.2 MB, free: 12.15 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (asm.rotor.phi,asm.rotor.w) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001187/0.2884, allocations: 107.2 kB / 470.3 MB, free: 12.04 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009283/0.2893, allocations: 0.6153 MB / 471 MB, free: 11.4 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.2893, allocations: 3.938 kB / 471 MB, free: 11.39 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004027/0.2897, allocations: 290.6 kB / 471.2 MB, free: 11.1 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006075/0.2903, allocations: 110.8 kB / 471.3 MB, free: 10.99 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001765/0.2921, allocations: 1.378 MB / 472.7 MB, free: 9.574 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000452/0.2926, allocations: 0.9167 MB / 473.6 MB, free: 8.633 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002626/0.2928, allocations: 80.31 kB / 473.7 MB, free: 8.555 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.478e-05/0.2929, allocations: 35.44 kB / 473.8 MB, free: 8.52 MB / 350.1 MB Notification: Performance of SimCode: time 2.6e-07/0.2929, allocations: 0 / 473.8 MB, free: 8.52 MB / 350.1 MB Notification: Performance of Templates: time 0.009145/0.3021, allocations: 5.197 MB / 479 MB, free: 3.34 MB / 350.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.makefile Environment - environmentSimulation: (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe 2>&1) Environment - environmentSimulation: