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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.001172/0.001172, allocations: 191.9 kB / 17.27 MB, free: 4.5 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.27/1.27, allocations: 194.2 MB / 212.2 MB, free: 2.359 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001689/0.001689, allocations: 128.8 kB / 256.6 MB, free: 4.293 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1657/0.1657, allocations: 37.94 MB / 338.8 MB, free: 2.219 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00118/0.001181, allocations: 63.91 kB / 401.8 MB, free: 68.74 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09105/0.09225, allocations: 52.19 MB / 454 MB, free: 16.56 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic): time 0.00546/0.09775, allocations: 6.048 MB / 460 MB, free: 10.48 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.005004/0.1028, allocations: 4.403 MB / 464.4 MB, free: 6.062 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004831/0.1033, allocations: 31.81 kB / 464.5 MB, free: 6.031 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006505/0.1098, allocations: 4.711 MB / 469.2 MB, free: 1.312 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007286/0.1106, allocations: 310.6 kB / 469.5 MB, free: 1.008 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004148/0.111, allocations: 199.7 kB / 469.7 MB, free: 0.8125 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0019/0.1129, allocations: 2.07 MB / 471.8 MB, free: 14.74 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007355/0.1136, allocations: 0.5017 MB / 472.3 MB, free: 14.23 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004065/0.1141, allocations: 310.7 kB / 472.6 MB, free: 13.93 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000525/0.1146, allocations: 422.5 kB / 473 MB, free: 13.51 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 7.316e-05/0.1147, allocations: 32 kB / 473 MB, free: 13.48 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001618/0.1149, allocations: 55.92 kB / 473.1 MB, free: 13.43 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002263/0.1151, allocations: 227.4 kB / 473.3 MB, free: 13.2 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002846/0.1154, allocations: 298.5 kB / 473.6 MB, free: 12.91 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006796/0.1161, allocations: 0.7865 MB / 474.4 MB, free: 12.12 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.1161, allocations: 0 / 474.4 MB, free: 12.12 MB / 330.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.1161, allocations: 0 / 474.4 MB, free: 12.12 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.784e-06/0.1161, allocations: 0 / 474.4 MB, free: 12.12 MB / 330.7 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.001599/0.1177, allocations: 0.8668 MB / 475.2 MB, free: 11.2 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.534e-05/0.1178, allocations: 8.031 kB / 475.2 MB, free: 11.2 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002829/0.1181, allocations: 72.09 kB / 475.3 MB, free: 11.12 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008956/0.119, allocations: 0.5488 MB / 475.9 MB, free: 10.54 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.89e-05/0.119, allocations: 36.98 kB / 475.9 MB, free: 10.5 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.279e-05/0.1191, allocations: 40 kB / 475.9 MB, free: 10.46 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008375/0.1199, allocations: 0.6258 MB / 476.6 MB, free: 9.793 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.563e-05/0.12, allocations: 11.92 kB / 476.6 MB, free: 9.781 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.873e-05/0.12, allocations: 23.98 kB / 476.6 MB, free: 9.758 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001114/0.1201, allocations: 44.97 kB / 476.6 MB, free: 9.715 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006479/0.1208, allocations: 467.6 kB / 477.1 MB, free: 9.258 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002809/0.1236, allocations: 2.511 MB / 479.6 MB, free: 6.605 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004169/0.124, allocations: 285.1 kB / 479.9 MB, free: 6.309 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001958/0.1242, allocations: 141.7 kB / 480 MB, free: 6.164 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.758e-05/0.1243, allocations: 4 kB / 480 MB, free: 6.16 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.975e-05/0.1243, allocations: 42.5 kB / 480.1 MB, free: 6.109 MB / 330.7 MB Notification: Performance of pre-optimization done (n=30): time 4.879e-06/0.1243, allocations: 3.984 kB / 480.1 MB, free: 6.105 MB / 330.7 MB Notification: Performance of matching and sorting (n=33): time 0.003115/0.1274, allocations: 1.869 MB / 481.9 MB, free: 4.082 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.923e-05/0.1275, allocations: 81.11 kB / 482 MB, free: 3.984 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004272/0.1279, allocations: 417.8 kB / 482.4 MB, free: 3.574 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.741e-05/0.128, allocations: 29.7 kB / 482.5 MB, free: 3.539 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000203/0.1282, allocations: 295.6 kB / 482.7 MB, free: 3.246 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.949e-05/0.1283, allocations: 122.3 kB / 482.9 MB, free: 3.125 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001249/0.1284, allocations: 86.03 kB / 482.9 MB, free: 3.035 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.1286, allocations: 354.7 kB / 483.3 MB, free: 2.68 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002091/0.1288, allocations: 132.8 kB / 483.4 MB, free: 2.551 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003012/0.1291, allocations: 282.2 kB / 483.7 MB, free: 2.215 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000558/0.1297, allocations: 466.1 kB / 484.2 MB, free: 1.695 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.272e-06/0.1297, allocations: 4 kB / 484.2 MB, free: 1.691 MB / 330.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001042/0.1307, allocations: 0.6871 MB / 484.8 MB, free: 0.9727 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.805e-05/0.1308, allocations: 11.94 kB / 484.9 MB, free: 0.9609 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.979e-06/0.1308, allocations: 4 kB / 484.9 MB, free: 0.957 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004319/0.1312, allocations: 141.6 kB / 485 MB, free: 0.8125 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002889/0.1315, allocations: 79.83 kB / 485.1 MB, free: 0.7344 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00315/0.1347, allocations: 3.393 MB / 488.5 MB, free: 13.07 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002548/0.135, allocations: 16.05 kB / 488.5 MB, free: 13.05 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.512e-05/0.135, allocations: 27.94 kB / 488.5 MB, free: 13.02 MB / 346.7 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 (43): * Single equations (assignments): 41 * 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.0002902/0.1353, allocations: 237.6 kB / 488.7 MB, free: 12.78 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.037e-05/0.1354, allocations: 43.44 kB / 488.8 MB, free: 12.74 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009153/0.1363, allocations: 0.5769 MB / 489.4 MB, free: 12.13 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.1363, allocations: 4 kB / 489.4 MB, free: 12.13 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0007012/0.137, allocations: 497.8 kB / 489.9 MB, free: 11.61 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.137, allocations: 0 / 489.9 MB, free: 11.61 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001388/0.1384, allocations: 1.012 MB / 490.9 MB, free: 10.53 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.1384, allocations: 0 / 490.9 MB, free: 10.53 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001983/0.1386, allocations: 47.91 kB / 490.9 MB, free: 10.48 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002571/0.1389, allocations: 88.78 kB / 491 MB, free: 10.39 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.642e-05/0.1389, allocations: 8 kB / 491 MB, free: 10.38 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001791/0.1407, allocations: 1.867 MB / 492.9 MB, free: 8.383 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.753e-06/0.1408, allocations: 7.969 kB / 492.9 MB, free: 8.375 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002188/0.143, allocations: 2.003 MB / 494.9 MB, free: 6.219 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000146/0.1431, allocations: 140.5 kB / 495 MB, free: 6.062 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.517e-05/0.1432, allocations: 15.88 kB / 495 MB, free: 6.047 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001748/0.1434, allocations: 8.062 kB / 495 MB, free: 6.039 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.333e-05/0.1434, allocations: 27.91 kB / 495.1 MB, free: 6.012 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.352e-05/0.1434, allocations: 11.98 kB / 495.1 MB, free: 6 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002959/0.1437, allocations: 299.1 kB / 495.4 MB, free: 5.707 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1438, allocations: 4 kB / 495.4 MB, free: 5.703 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006161/0.1444, allocations: 152 kB / 495.5 MB, free: 5.555 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (asm.motor.phi_el,asm.motor.w_el) * 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 (23): * Single equations (assignments): 21 * 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.0001345/0.1445, allocations: 103.5 kB / 495.6 MB, free: 5.445 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0009894/0.1455, allocations: 0.6151 MB / 496.2 MB, free: 4.805 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.1455, allocations: 4.375 kB / 496.2 MB, free: 4.801 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004458/0.146, allocations: 310.4 kB / 496.5 MB, free: 4.484 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006403/0.1466, allocations: 110.5 kB / 496.7 MB, free: 4.375 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001965/0.1486, allocations: 1.569 MB / 498.2 MB, free: 2.758 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004753/0.1491, allocations: 0.9283 MB / 499.2 MB, free: 1.801 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002582/0.1494, allocations: 84.31 kB / 499.2 MB, free: 1.715 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.628e-05/0.1494, allocations: 31.44 kB / 499.3 MB, free: 1.684 MB / 346.7 MB Notification: Performance of SimCode: time 3.41e-07/0.1495, allocations: 0 / 499.3 MB, free: 1.684 MB / 346.7 MB Notification: Performance of Templates: time 0.009833/0.1593, allocations: 5.72 MB / 0.4932 GB, free: 11.96 MB / 362.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.makefile (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)