Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv") translateModel(PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001056/0.001056, allocations: 177.1 kB / 15.78 MB, free: 6.352 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.39/1.39, allocations: 205.4 MB / 221.9 MB, free: 13.74 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008153/0.0008153, allocations: 90.3 kB / 270.3 MB, free: 13.28 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1741/0.1741, allocations: 38.06 MB / 356.6 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003823/0.0003824, allocations: 12 kB / 422.7 MB, free: 26.42 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1383/0.1387, allocations: 56.34 MB / 479.1 MB, free: 2.023 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv): time 0.01068/0.1494, allocations: 7.543 MB / 486.6 MB, free: 10.45 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.009334/0.1588, allocations: 4.826 MB / 491.4 MB, free: 5.609 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001697/0.1606, allocations: 55.62 kB / 491.5 MB, free: 5.555 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01036/0.171, allocations: 4.492 MB / 496 MB, free: 1.055 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002324/0.1734, allocations: 0.5168 MB / 496.5 MB, free: 0.5352 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001809/0.1752, allocations: 411.1 kB / 496.9 MB, free: 140 kB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.004129/0.1794, allocations: 2.561 MB / 499.5 MB, free: 13.56 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002268/0.1816, allocations: 1.031 MB / 0.4888 GB, free: 12.48 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001226/0.1829, allocations: 0.5483 MB / 0.4893 GB, free: 11.94 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001466/0.1844, allocations: 0.7122 MB / 0.49 GB, free: 11.22 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003417/0.1847, allocations: 51.94 kB / 0.49 GB, free: 11.17 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005604/0.1853, allocations: 59.94 kB / 0.4901 GB, free: 11.11 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006193/0.1859, allocations: 374.9 kB / 0.4905 GB, free: 10.75 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005121/0.1865, allocations: 233.1 kB / 0.4907 GB, free: 10.51 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001788/0.1882, allocations: 1.243 MB / 0.4919 GB, free: 9.266 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/0.1883, allocations: 4 kB / 0.4919 GB, free: 9.262 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.605e-06/0.1883, allocations: 0 / 0.4919 GB, free: 9.262 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.859e-05/0.1884, allocations: 4 kB / 0.4919 GB, free: 9.258 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.003794/0.1922, allocations: 1.249 MB / 0.4931 GB, free: 7.953 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.371e-05/0.1922, allocations: 15.97 kB / 0.4931 GB, free: 7.938 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006449/0.1929, allocations: 126.6 kB / 0.4933 GB, free: 7.812 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002151/0.195, allocations: 0.8597 MB / 0.4941 GB, free: 6.91 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.018e-05/0.1951, allocations: 65.97 kB / 0.4942 GB, free: 6.848 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002543/0.1954, allocations: 91.91 kB / 0.4943 GB, free: 6.758 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002486/0.1979, allocations: 1.222 MB / 0.4954 GB, free: 5.48 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.092e-05/0.1979, allocations: 8 kB / 0.4955 GB, free: 5.473 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001019/0.1981, allocations: 35.98 kB / 0.4955 GB, free: 5.438 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000239/0.1983, allocations: 73.95 kB / 0.4956 GB, free: 5.367 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002165/0.2005, allocations: 1.011 MB / 0.4965 GB, free: 4.355 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007876/0.2084, allocations: 4.441 MB / 0.5009 GB, free: 15.76 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001501/0.2099, allocations: 0.8961 MB / 0.5018 GB, free: 14.82 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007233/0.2106, allocations: 448.1 kB / 0.5022 GB, free: 14.37 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.548e-05/0.2107, allocations: 12.55 kB / 0.5022 GB, free: 14.36 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.423e-05/0.2108, allocations: 39.12 kB / 0.5022 GB, free: 14.31 MB / 362.7 MB Notification: Performance of pre-optimization done (n=70): time 3.126e-06/0.2108, allocations: 0 / 0.5022 GB, free: 14.31 MB / 362.7 MB Notification: Performance of matching and sorting (n=72): time 0.007347/0.2181, allocations: 3.342 MB / 0.5055 GB, free: 10.81 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.283e-05/0.2183, allocations: 137.1 kB / 0.5056 GB, free: 10.64 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009753/0.2193, allocations: 0.6921 MB / 0.5063 GB, free: 9.941 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.648e-05/0.2193, allocations: 37.7 kB / 0.5063 GB, free: 9.898 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003752/0.2197, allocations: 483.2 kB / 0.5068 GB, free: 9.418 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002431/0.22, allocations: 256.3 kB / 0.507 GB, free: 9.164 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.197e-05/0.22, allocations: 19.94 kB / 0.5071 GB, free: 9.145 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001396/0.2202, allocations: 341.9 kB / 0.5074 GB, free: 8.805 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007305/0.2209, allocations: 377.8 kB / 0.5078 GB, free: 8.438 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000899/0.2218, allocations: 0.5938 MB / 0.5083 GB, free: 7.75 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007065/0.2289, allocations: 1.519 MB / 0.5098 GB, free: 6.211 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.005e-05/0.229, allocations: 0 / 0.5098 GB, free: 6.211 MB / 362.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.006437/0.2354, allocations: 2.063 MB / 0.5118 GB, free: 4.113 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003051/0.2357, allocations: 272 kB / 0.5121 GB, free: 3.754 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.434e-05/0.2358, allocations: 12 kB / 0.5121 GB, free: 3.742 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005085/0.2409, allocations: 1.051 MB / 0.5131 GB, free: 2.684 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006561/0.2416, allocations: 135.8 kB / 0.5133 GB, free: 2.551 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2613/0.5028, allocations: 9.213 MB / 0.5223 GB, free: 49.04 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001061/0.504, allocations: 48.19 kB / 0.5223 GB, free: 49.03 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001064/0.5041, allocations: 35.72 kB / 0.5223 GB, free: 49.02 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.097e-05/0.5041, allocations: 4.75 kB / 0.5223 GB, free: 49.02 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006105/0.5102, allocations: 1.84 MB / 0.5241 GB, free: 48.41 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.886e-05/0.5103, allocations: 6.5 kB / 0.5241 GB, free: 48.41 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004824/0.5151, allocations: 1.002 MB / 0.5251 GB, free: 48.25 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000578/0.5157, allocations: 134.3 kB / 0.5252 GB, free: 48.24 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01418/0.5299, allocations: 8.961 MB / 0.534 GB, free: 43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007579/0.5307, allocations: 39.3 kB / 0.534 GB, free: 42.98 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001291/0.5308, allocations: 40.11 kB / 0.5341 GB, free: 42.97 MB / 362.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $DER.asm_ctrl.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,PI_i_q.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 63 * 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: 1 {(1,100.0%) 3} * Non-linear torn systems: 1 {6 35} Notification: Performance of prepare postOptimizeDAE: time 0.0008531/0.5317, allocations: 408.5 kB / 0.5345 GB, free: 42.65 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002492/0.532, allocations: 92.92 kB / 0.5346 GB, free: 42.64 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002347/0.5343, allocations: 1.258 MB / 0.5358 GB, free: 41.81 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.153e-05/0.5343, allocations: 8.188 kB / 0.5358 GB, free: 41.81 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/0.5344, allocations: 6.156 kB / 0.5358 GB, free: 41.81 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.088e-05/0.5344, allocations: 5.453 kB / 0.5358 GB, free: 41.81 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003325/0.5377, allocations: 2.411 MB / 0.5382 GB, free: 40.15 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.047e-06/0.5377, allocations: 0 / 0.5382 GB, free: 40.15 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008014/0.5385, allocations: 161.7 kB / 0.5383 GB, free: 40.11 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004421/0.539, allocations: 158.4 kB / 0.5385 GB, free: 40.01 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.298e-05/0.539, allocations: 23.61 kB / 0.5385 GB, free: 40 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002798/0.5419, allocations: 5.402 MB / 0.5438 GB, free: 34.49 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.065e-06/0.5419, allocations: 3.906 kB / 0.5438 GB, free: 34.49 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002337/0.5442, allocations: 1.873 MB / 0.5456 GB, free: 33.28 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003015/0.5445, allocations: 233.6 kB / 0.5458 GB, free: 33.08 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001054/0.5446, allocations: 29.02 kB / 0.5458 GB, free: 33.06 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000467/0.5451, allocations: 31.16 kB / 0.5459 GB, free: 33.04 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001171/0.5452, allocations: 61.95 kB / 0.5459 GB, free: 33.01 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.304e-05/0.5453, allocations: 26.67 kB / 0.546 GB, free: 33 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005339/0.5458, allocations: 474.7 kB / 0.5464 GB, free: 32.64 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5458, allocations: 0 / 0.5464 GB, free: 32.64 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001728/0.5476, allocations: 460 kB / 0.5468 GB, free: 32.19 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 9 (asm_ctrl.motor.i[3],asm_ctrl.motor.psi_s[1],asm_ctrl.motor.psi_s[2],asm_ctrl.motor.psi_rd[1],asm_ctrl.motor.psi_rq[1],asm_ctrl.motor.phiRotorflux,loadInertia.w,frictTorq.phi,PI_i_q.I.y) * 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 (79): * Single equations (assignments): 74 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001905/0.5478, allocations: 130.8 kB / 0.547 GB, free: 32.06 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004517/0.5523, allocations: 2.579 MB / 0.5495 GB, free: 29.44 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.5523, allocations: 1.125 kB / 0.5495 GB, free: 29.44 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009938/0.5533, allocations: 0.9241 MB / 0.5504 GB, free: 28.46 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001117/0.5545, allocations: 236.1 kB / 0.5506 GB, free: 28.24 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003598/0.5581, allocations: 2.991 MB / 0.5535 GB, free: 25.2 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000684/0.5588, allocations: 1.177 MB / 0.5547 GB, free: 23.99 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002404/0.559, allocations: 75.41 kB / 0.5548 GB, free: 23.92 MB / 362.7 MB Notification: Performance of SimCode: time 1.773e-06/0.559, allocations: 4 kB / 0.5548 GB, free: 23.91 MB / 362.7 MB Notification: Performance of Templates: time 0.02998/0.589, allocations: 27.63 MB / 0.5817 GB, free: 12.25 MB / 378.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.pipe 2>&1)