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.001069/0.001069, allocations: 90.19 kB / 16.65 MB, free: 6.582 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.001403/0.001403, allocations: 186.8 kB / 17.57 MB, free: 6.199 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.61/1.61, 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.1876/0.1876, allocations: 38.06 MB / 310.1 MB, free: 5.91 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.0005456/0.0005457, allocations: 16 kB / 377.2 MB, free: 2.727 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2863/0.2869, allocations: 56.33 MB / 433.5 MB, free: 18.69 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic): time 0.005808/0.2928, allocations: 5.667 MB / 439.2 MB, free: 12.99 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006168/0.299, allocations: 4.317 MB / 443.5 MB, free: 8.66 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009608/0.3, allocations: 35.81 kB / 443.5 MB, free: 8.625 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008455/0.3085, allocations: 4.579 MB / 448.1 MB, free: 4.039 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008827/0.3094, allocations: 310.7 kB / 448.4 MB, free: 3.734 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006192/0.31, allocations: 195.8 kB / 448.6 MB, free: 3.543 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002203/0.3122, allocations: 2.051 MB / 450.6 MB, free: 1.488 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001122/0.3134, allocations: 0.6935 MB / 451.3 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004565/0.3139, allocations: 298.7 kB / 451.6 MB, free: 476 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005157/0.3144, allocations: 402.4 kB / 452 MB, free: 72 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.551e-05/0.3145, allocations: 24 kB / 452 MB, free: 48 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001697/0.3146, allocations: 39.98 kB / 452.1 MB, free: 8 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002531/0.3149, allocations: 215.4 kB / 452.3 MB, free: 15.8 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003439/0.3153, allocations: 308.2 kB / 452.6 MB, free: 15.49 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007259/0.316, allocations: 0.7706 MB / 453.4 MB, free: 14.71 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.805e-06/0.316, allocations: 0 / 453.4 MB, free: 14.71 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.475e-06/0.316, allocations: 0 / 453.4 MB, free: 14.71 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.642e-05/0.3161, allocations: 0 / 453.4 MB, free: 14.71 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: 121 * Number of variables: 121 Notification: Performance of Generate backend data structure: time 0.001557/0.3176, allocations: 0.7539 MB / 454.1 MB, free: 13.91 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.092e-05/0.3177, allocations: 8.031 kB / 454.1 MB, free: 13.9 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003197/0.318, allocations: 72.19 kB / 454.2 MB, free: 13.83 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009407/0.3189, allocations: 0.541 MB / 454.7 MB, free: 13.25 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.933e-05/0.319, allocations: 36.98 kB / 454.8 MB, free: 13.21 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.03e-05/0.3191, allocations: 55.84 kB / 454.8 MB, free: 13.16 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009856/0.3201, allocations: 0.6297 MB / 455.4 MB, free: 12.48 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.728e-05/0.3201, allocations: 11.92 kB / 455.5 MB, free: 12.47 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.604e-05/0.3202, allocations: 16 kB / 455.5 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001286/0.3203, allocations: 52.97 kB / 455.5 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007143/0.321, allocations: 463.6 kB / 456 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003102/0.3242, allocations: 2.526 MB / 458.5 MB, free: 9.285 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004542/0.3246, allocations: 281.1 kB / 458.8 MB, free: 8.992 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002086/0.3249, allocations: 150.2 kB / 458.9 MB, free: 8.84 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.436e-05/0.3249, allocations: 4 kB / 458.9 MB, free: 8.836 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.167e-05/0.3249, allocations: 42.5 kB / 459 MB, free: 8.785 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 2.554e-06/0.3249, allocations: 0 / 459 MB, free: 8.785 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.00297/0.3279, allocations: 1.537 MB / 460.5 MB, free: 7.133 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.34e-05/0.328, allocations: 81.11 kB / 460.6 MB, free: 7.035 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005037/0.3285, allocations: 417.9 kB / 461 MB, free: 6.625 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.993e-05/0.3286, allocations: 33.7 kB / 461 MB, free: 6.586 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002369/0.3288, allocations: 303.5 kB / 461.3 MB, free: 6.285 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001163/0.3289, allocations: 110.4 kB / 461.4 MB, free: 6.176 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.933e-05/0.329, allocations: 41.7 kB / 461.5 MB, free: 6.129 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001658/0.3292, allocations: 358.7 kB / 461.8 MB, free: 5.77 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002036/0.3294, allocations: 128.8 kB / 462 MB, free: 5.645 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002847/0.3297, allocations: 282.2 kB / 462.2 MB, free: 5.305 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000528/0.3302, allocations: 457.9 kB / 462.7 MB, free: 4.793 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.3302, allocations: 3.984 kB / 462.7 MB, free: 4.789 MB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001085/0.3313, allocations: 0.6754 MB / 463.4 MB, free: 4.082 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.35e-05/0.3314, allocations: 12.03 kB / 463.4 MB, free: 4.07 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.221e-05/0.3314, allocations: 11.88 kB / 463.4 MB, free: 4.059 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000458/0.3318, allocations: 141.6 kB / 463.5 MB, free: 3.914 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002865/0.3321, allocations: 79.83 kB / 463.6 MB, free: 3.836 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003716/0.3359, allocations: 3.389 MB / 467 MB, free: 180 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003489/0.3362, allocations: 20.05 kB / 467 MB, free: 160 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.39e-05/0.3363, allocations: 20 kB / 467 MB, free: 140 kB / 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 (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): 2 systems {(2,6,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004726/0.3368, allocations: 249.6 kB / 467.3 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001378/0.3369, allocations: 43.44 kB / 467.3 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001172/0.3381, allocations: 0.5675 MB / 467.9 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.176e-05/0.3381, allocations: 7.938 kB / 467.9 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0008352/0.339, allocations: 490.3 kB / 468.4 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.628e-06/0.339, allocations: 3.984 kB / 468.4 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0023/0.3413, allocations: 1.009 MB / 469.4 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.461e-06/0.3413, allocations: 3.938 kB / 469.4 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002454/0.3416, allocations: 43.91 kB / 469.4 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003343/0.3419, allocations: 84.78 kB / 469.5 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.552e-05/0.342, allocations: 8 kB / 469.5 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002547/0.3445, allocations: 1.867 MB / 471.4 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.3445, allocations: 0 / 471.4 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001115/0.3457, allocations: 0.6554 MB / 472 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000204/0.3459, allocations: 144.5 kB / 472.2 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.107e-05/0.346, allocations: 3.984 kB / 472.2 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002063/0.3462, allocations: 8 kB / 472.2 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.965e-05/0.3462, allocations: 27.91 kB / 472.2 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.468e-05/0.3463, allocations: 12 kB / 472.2 MB, free: 10.6 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000406/0.3467, allocations: 303.2 kB / 472.5 MB, free: 10.3 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3467, allocations: 0 / 472.5 MB, free: 10.3 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006543/0.3473, allocations: 120 kB / 472.6 MB, free: 10.18 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002238/0.3476, allocations: 107.2 kB / 472.7 MB, free: 10.07 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001227/0.3488, allocations: 0.6068 MB / 473.3 MB, free: 9.438 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.903e-06/0.3488, allocations: 0 / 473.3 MB, free: 9.438 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004984/0.3493, allocations: 295.3 kB / 473.6 MB, free: 9.137 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007481/0.3501, allocations: 114 kB / 473.7 MB, free: 9.027 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00212/0.3522, allocations: 1.405 MB / 475.2 MB, free: 7.582 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005279/0.3528, allocations: 0.9206 MB / 476.1 MB, free: 6.637 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002762/0.3531, allocations: 76.33 kB / 476.1 MB, free: 6.562 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.657e-05/0.3532, allocations: 35.44 kB / 476.2 MB, free: 6.527 MB / 350.1 MB Notification: Performance of SimCode: time 1.172e-06/0.3532, allocations: 0 / 476.2 MB, free: 6.527 MB / 350.1 MB Notification: Performance of Templates: time 0.01279/0.366, allocations: 5.332 MB / 481.5 MB, free: 1.211 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: